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 cleo not found on Python 3.10 Alpha when using get-poetry.py installation #3828

Closed
2 of 3 tasks
thepabloaguilar opened this issue Mar 24, 2021 · 5 comments · Fixed by #3706
Closed
2 of 3 tasks

Comments

@thepabloaguilar
Copy link

  • 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: Ubuntu (20.04.2)

  • Poetry version: 1.1.5

  • Link of a Gist with the contents of your pyproject.toml file: pyproject.toml

Issue

Hello, first of all, thanks for your amazing job!!

I got an error when running poetry on Python 3.10 alpha version.
The reason why I'm using the alpha version in my pipeline is that we want to address possible problems with our library before the official Python release, and we also want to implement some new features in our library using the new features provided by the new version like Pattern Matching! (Disclaimer: We allow failures on Python 3.10 step, so it isn't breaking our pipeline)

You can find the error output below:

Traceback (most recent call last):
  File "/home/runner/.poetry/bin/poetry", line 17, in <module>
    from poetry.console import main
  File "/home/runner/.poetry/lib/poetry/console/__init__.py", line 1, in <module>
    from .application import Application
  File "/home/runner/.poetry/lib/poetry/console/application.py", line 3, in <module>
    from cleo import Application as BaseApplication
ModuleNotFoundError: No module named 'cleo'

For more details, you can also check our pipeline here

I'd like to know if you can provide some help since Python 3.10 wasn't released officially!

Btw, maybe it'll be a great idea to enable Python 3.10 in your pipeline too, you just need to allow failure in that step while the official version isn't released yet! For more information check this out

@thepabloaguilar thepabloaguilar added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Mar 24, 2021
@abn abn removed the status/triage This issue needs to be triaged label Mar 25, 2021
@abn
Copy link
Member

abn commented Mar 25, 2021

Thanks for raising this. This essentially needs a few different changes I believe as I suspect the issue is that cleo is skupped during install under 3.10.

  1. Update core to support python releases >=3.10.0.
  2. Update poetry to use new core release.
  3. Update cleo metadata and publish a new release. Edit: This was not the root cause here; the cause is the budles used by get-poetry.py do not contain vendored dependencies for 3.10. This issue will go away once we switch to new bootstrap (Implement a new bootstrapping method #3706). In the interim, for 3.10 we suggest installing via pipx or pip.

Nice to haves:

  1. Update core (Expand ci test matrix and add support for Python 3.10 poetry-core#144) and poetry pipelines to add support for 3.10 buids.
  2. Maybe remove the need for manual changes when supporting new python releases (this might be ticky, as doing so will loose some metadata).

@thepabloaguilar
Copy link
Author

Thanks a lot @abn!!
If I can help with something, please, let me know!

@abn
Copy link
Member

abn commented Mar 27, 2021

@thepabloaguilar no worries. FYI I misinterpreted the issue since there wasn't sufficient context. See edit above. Additionally, to unblock your 3.10 pipeline, you can see python-poetry/poetry-core@81fc0d4.

Also happy for you provide a PR for the pipeline. But I would do that after both python-poetry/poetry-core#144 and #3706 are done.

@abn abn added area/ci Related to CI/CD kind/feature Feature requests/implementations Installer and removed kind/bug Something isn't working as expected labels Mar 27, 2021
@abn abn changed the title Poetry cleo not found on Python 3.10 Alpha Poetry cleo not found on Python 3.10 Alpha when using get-poetry.py installation Mar 27, 2021
@abn
Copy link
Member

abn commented Mar 27, 2021

I have raised #3842 to track CI changes. And since this will be resolved with the new bootstrap method, I will leave this open till that is merged.

@abn abn removed kind/feature Feature requests/implementations Good First Issue area/ci Related to CI/CD labels Mar 27, 2021
@abn abn closed this as completed in #3706 Mar 30, 2021
@RileyMShea RileyMShea mentioned this issue Sep 4, 2021
3 tasks
brent-stone added a commit to brent-stone/python_modern_dev_environment that referenced this issue Feb 6, 2022
Added the recommendation from a Poetry maintainer (python-poetry/poetry#3828 (comment)) to try pip install if the ModuleNotFoundError issue arises with Python 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
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants