-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Poetry Never Updates pywin32 #3077
Comments
Reverting |
Have you tried re-creating the virtual environment? |
Recreating the venv, I still have the error. Not working now with 1.0.10 either. |
Occurs in version 1.1.1 as well. |
I see this as well starting with version |
I have this same problem. Following for solution... |
Actually mine is slightly different. It always tries to upgrade it, even if it's the same version. I see the same thing you do though, and I feel like that's also what you're experiencing. It has version 228 installed, but tries to update to version 228 for some reason. |
It seems this is due to pywin32 installing a |
@jgentil Yes, you are correct. My error is the same as yours. It always tries to "update" from 228 to 228, but nothing ever seems to get resolved (it continues to do this every time I run @absassi Is the |
I get this issue too. |
@absassi @adam-grant-hendry can one of you give me a tree listing of your My guess is that this check is incomplete somehow. poetry/poetry/repositories/installed_repository.py Lines 137 to 149 in 3b3791d
|
There are quite a few folders. The actual one should be the last I guess.
all contain
This is the error-message
|
@haenry the error message is interesting. So it seems pip is unable uninstall the existing packages. I believe this is a seperate issue to the one reported (albeit definitely related). Is the file |
No, they are regular files. Permissions are
same as other files in site-packages
|
Same issue here. OS version and name: Windows 10 Pro, Build 19041 |
Something to try: Make sure you aren't running Moving out of the shell fixed it for me. I had to stop all instances of the shell though. |
Dug into this a further. Found the root cause. poetry/poetry/repositories/installed_repository.py Lines 141 to 148 in 20a3161
We seem to be assuming that a package is a "path" package because the |
When detecting installed packages, this change ensures that packages with .pth files are not incorrectly marked as editable. A package is considered editable only if at least one of the paths detected is not in the environment site. Resolves: python-poetry#3077
When detecting installed packages, this change ensures that packages with .pth files are not incorrectly marked as editable. A package is considered editable only if at least one of the paths detected is not in the environment site. Resolves: python-poetry#3077
Can you please try the fix at #3210. Using pipxpipx install --suffix=@3210 'poetry @ git+https://github.com/python-poetry/poetry.git@refs/pull/3210/head' |
When detecting installed packages, this change ensures that packages with .pth files are not incorrectly marked as editable. A package is considered editable only if at least one of the paths detected is not in the environment site. Resolves: python-poetry#3077
I am still seeing this issue in 1.1.4. I will point out that it is when I have this line in the file: Every single time it updates or installs a package, it then tries to update this one which it cannot because it runs into that permission error. |
Same here, still seeing this issue, is there a workaround? |
WSL and Windows10, poetry 1.1.4. Same bug. |
WSL? You can not install |
Command "poetry update" error, not "pip install pywin32" error.
…---Original---
From: "sinoroc"<notifications@github.com>
Date: Wed, Jan 20, 2021 02:17 AM
To: "python-poetry/poetry"<poetry@noreply.github.com>;
Cc: "Comment"<comment@noreply.github.com>;"Aber"<abersheeran@qq.com>;
Subject: Re: [python-poetry/poetry] Poetry Never Updates pywin32 (#3077)
WSL
WSL? You can not install pywin32 on WSL, can you?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
The issue still persists. I should not have updated poetry. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
-vvv
option).Issue
poetry update
always attempts to updatepywin32
, but never does. Every new install listspywin32
as requiring updateThe
pyproject.toml
file is as follows:I am running Python 3.8.6.
The text was updated successfully, but these errors were encountered: