-
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
self:update failed. Win10, Python 3.7.2 Dead poetry. #977
Comments
The error msg of updating is missing. What happened after re-downloading? |
Ok, so I'm on Win10, and have multiple versions of Python, and I do things the windows way. Which is by using py launcher. So, in order for poetry to run I change poetry.bat python command to py. When updating it redownload then ofcourse it wouldn't run because of the bat changed back to python instead of py. So, I changed it back to py then reran and error still persisted. After deleting poetry folders, setting path to python, it then installed cleanly. Basically, doesn't support py launcher. |
@ST33LDI9ITAL Let me clarify that: you solved it by cleaning up manually and fixing the executable path. The history in your cmd is worth of reserving before figuring the issue out. I'm still wondering the debug msg of self:update command. Will you share it anyway? |
Here ya go: `C:\Python\poetry>poetry self:update --preview -vvv [PermissionError] Exception trace: C:\Users\ST33L.poetry\lib\poetry\console\application.py in do_run() at line 88 C:\Users\ST33L.poetry\lib\poetry_vendor\py3.7\cleo\application.py in do_run() at line 197 C:\Users\ST33L.poetry\lib\poetry\console\commands\command.py in run() at line 77 C:\Users\ST33L.poetry\lib\poetry_vendor\py3.7\cleo\commands\base_command.py in run() at line 146 C:\Users\ST33L.poetry\lib\poetry_vendor\py3.7\cleo\commands\command.py in execute() at line 107 C:\Users\ST33L.poetry\lib\poetry\console\commands\self\update.py in handle() at line 108 C:\Users\ST33L.poetry\lib\poetry\console\commands\self\update.py in update() at line 132 C:\Python\WinPy\python-3.7.2.amd64\lib\shutil.py in rmtree() at line 513 self:update [--preview] [--] []` |
Is it a file permission problem? And you ran the installer as the administrator? What if you re-install the Python on another disk different from Correct: Modify the checkboxes in py launcher. Then also try to install poetry as user making them having the same owner? |
Appears so, but only with itself, the update process. Ran under Administrator cmd. Can delete folder with no locking issues. |
As for the rest of that.. that’s not how I set up python and not about to change. It’s my belief that if you are designing an external supplement for it that you should cover all bases. I’m simply reporting the issue. |
Also getting exactly the same issue using windows 10. I managed to solve by deleting the offending file:
I then ran |
@dilzeem if I do the steps like you did (1. Deleteing the Updating to 1.0.0a3
[OSError]
[WinError 145] The directory is not empty: 'C:\\Users\\Alexa\\.poetry\\l
ib\\poetry\\_vendor'
self:update [--preview] [--] [<version>] Why does installing stuff for Python on Windows has to be such a burden every single time? 😩 |
I ran into this same issue again, and I was able to figure it out. You need to close the windows explorer window after you have deleted the |
Just had the same problem on Github Actions: https://github.com/KelSolaar/colour/runs/238653725#step:5:52 |
I ran into the same problem today.
I suspect the problem is that Windows locks currently executing files and loaded DLLs (and But, I haven't looked at the code, I may be totally wrong. |
I also have the same problem, and the best solution I found for me is to use |
I can confirm: it appens on every |
Here's my solution, which I believe is THE EASIEST. Just copy paste Poetry installation commend, i.e: on your os/linux/bashonwindows terminal, and wait. Done. I'm on: |
Sorry @jaepil-choi but I can call your solution "re-install it on top"... However, the problem persist on windows (10) and also with new |
@nicolaerario Yeah, a workaround is a correct term I guess. It does remedy the problem though, because the worst thing that happens when you initially fail update with Still, I hope this gets fixed in later releases. |
I experienced this error upgrading from 1.0.3 to 1.0.5 (latest) via I think I'll try pipx instead of get-poetry. EDIT: |
just ran into the same issue. Any news on this? |
Probably the only way Poetry can work around this is by renaming any .pyd file before it is replaced during the update, and not importing any more .pyd modules during the update. (I'm pretty sure you can rename an open .dll, just not delete it or overwrite it) Then the renamed .pyd files need to be cleaned up later, by the new version of Poetry. This is the same reason that on Windows, you |
If I open up PowerShell in administrator mode and run
PowerShell without administrator permissions goes on about those pyd files like you're all talking about. |
Running as Administrator is a different issue, it's probably not able to set the path correctly for some reason. Did you install it as Administrator the first time? |
I don't remember how I installed it. I think it might have been with administrator privileges because I must be in administrator mode to run things like |
Yeah, I suspect you will have to clean out Poetry entirely (delete I personally use pipx (which avoids a bunch of these issues) so I can't say for sure that there's not other things you'd need to delete. You virtual envs are probably stored in that directory too. I haven't checked, but perhaps |
I have given up on Poetry due to just experiencing this issue. Best hopes for the future of the project though but I did not find it had the reliability I would want from such a solution. |
The |
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
Went to self:update from 0.12.11 to 1.0.0.a2 preview and got this.
c:\Python\WinPy\python-3.7.2.amd64>poetry show --version
Traceback (most recent call last):
File "C:\Users\ST33L.poetry\bin\poetry", line 11, in
from poetry.console import main
ModuleNotFoundError: No module named 'poetry.console'
c:\Python\WinPy\python-3.7.2.amd64>poetry self:update --preview
Traceback (most recent call last):
File "C:\Users\ST33L.poetry\bin\poetry", line 11, in
from poetry.console import main
ModuleNotFoundError: No module named 'poetry.console'
c:\Python\WinPy\python-3.7.2.amd64>curl -sSL https://github.com/raw/sdispater/poetry/master/get-poetry.py | py
Retrieving Poetry metadata
Latest version already installed.
The text was updated successfully, but these errors were encountered: