-
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 self update --preview
leads to [WinError 5] Access is denied: 'py3.7\\msgpack\\_cmsgpack.cp37-win_amd64.pyd'
#2681
Comments
I'm having the same problem, even with the latest 1.1.0B2 version, I tested powershell, cmd and elevated cmd with the same error.
|
@myliyifei can you try installing with pipx or pip? Just want to make it's not an issue with the installer. |
What you mean is, first I use get-poetry.py to uninstall the version that installed in "C:\Users\xxx.poetry", then I use pip to install poetry into the current version of python site-packages directory, is that correct? |
If the script is working yes. Otherwise, can just remove the directory from path or remove the poetry install directory. Note that the latter is destructive. :) |
I was updating poetry from 1.0.9 version to 1.0.10 using 'poetry self update' on administer prompt and I still get this error |
Just encountered this problem when trying to upgrade 1.1.0 to 1.1.2. Access denied and broken poetry install. |
In windows I never feel comfortable update poetry and always run the get-poetry script it replaces poetry but configs are saved. |
Same here, just tried to update from 1.0.5 to 1.1.2 using
OS version and name: Windows 10 Pro, Build 19041 UPD: It's a shame, my issue seems to be connected to poetry .venv working in some other console. So if you also face this issue, check you don't have poetry running somewhere else. 😅 |
Same here. I think this problem has been around since like before poetry 1.0.0 |
in general, poetry should manage its own dependencies in a separate folder, and not pollute the env it's running in. we only have issues with msgpack in repos that also depend on msgpack. making sure your version matches poetry's version seemed to fix it. related issue: #1584 . basically if your project uses msgpack it has to be the same version as poetry. |
duplicate of #977 |
Still having the same issue in 2021, had to uninstall and use the new install script to get the preview working:
Not finding any definitive solution online and I followed the exact install steps, not sure how to fix it without a full re-install. |
Just got this problem on Windows 11 - had to reinstall using the Powershell method too |
Closing as duplicate of #1031. |
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
I use powershell and
pyenv
on windows with python 3.7. Python 3.7.5 is the newest version according topyenv install -l
Updating to the latest preview does not work as expected, I assumed
poetry self update --preview
would work.But see the log below, I can reproduce it every time with the same error. Installing/using poetry 1.0.9 works without issues.
I guess it is similar to #1032 as
shutil.py
is involved in both problems, but the error is different.Steps to reproduce
(Invoke-WebRequest -Uri https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py -UseBasicParsing).Content | python
poetry self update --preview
Afterwards the poetry installation is corrupted and does not work anymore
Workaround powershell command
.poetry
folder manually (located in user home directory)(Invoke-WebRequest -Uri https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py -UseBasicParsing).Content | python - --preview
Log that shows error
The text was updated successfully, but these errors were encountered: