-
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
Unable to install using python 3 on clean Ubuntu 18.04 image #1837
Comments
I tried the same steps using python2 instead of python3. I get a different outcome:
|
Get the same error when installing poetry using pip3 as well. Doesn't seem to be a way to get 1.0.0 to use python3 at all, at least on ubuntu. |
Hello, a fin swimmer |
I think I may have added a misstep in my original post... I tried my first scenario again and get a different result:
So I went ahead and I tried updating keyrings.alt as suggested. It seems to fix it, and then it breaks again later on:
|
Hello, I try to reproduce the problems mentioned here, by installing a fresh ubuntu 18.04 in a virtual machine. After doing this (installing the "minimal" variant), I ended up with a system where a
For installing
Then:
Now let's create two poetry projects. One that should use
The
Now install the project:
And you're done. Whenever running a
It's a warning and AFAIK you can ignore it. Now let's see what happens for a project uses Run
Unfortunately poetry left a broken venv behind, we had to remove before trying again.
and
To summarize:
fin swimmer |
@finswimmer thanks for double-checking; I already knew that python 2 worked to install it. The documentation is clear that it doesn't matter which version of python is used to install poetry, so the scenario outlined in my original post (with python 3) is clearly an issue. Using python 2 is not acceptable in my case; it's simply not available on our production images and our |
Tried some other scenarios this morning: works:
works:
breaks with keyring bug:
Why does the bootstrap script/pip works on the python3 image (which does NOT have a python 2 installed; python points to py3) and not the ubuntu one? 🤔 |
Breaks with [UnicodeEncodeError]:
|
I wrote a different issue for the unicode bug: #1849 |
(can someone tag this issue as a bug?) |
Same issue here. Just reproduced it on a couple of brand new Ubuntu VMs, using Multipass. Reproduction Steps
Result
|
Will work if first you run |
I'm not sure if this is the correct long-term fix for poetry, but do we need to add https://github.com/python-poetry/poetry/blob/master/pyproject.toml#L52 |
This issue also happens to Ubuntu 20.04 |
@jonapich this works for me at the moment; can you confirm please?
Note that that the ascii encoding error is an issuew ith the ubuntu docker image locale. In the above command I make use of And the @pcgeek86 regarding See also: #1719 |
Fixes python-poetry#3026 If the context wrapped by the temporary_directory() context manager raised ImportError (for example because distutils.util cannot be imported, python-poetry#721 python-poetry#1837), it would previously keep going, causing a RuntimeError from contextlib: RuntimeError: generator didn't stop after throw()
Fixes #3026 If the context wrapped by the temporary_directory() context manager raised ImportError (for example because distutils.util cannot be imported, #721 #1837), it would previously keep going, causing a RuntimeError from contextlib: RuntimeError: generator didn't stop after throw() Co-authored-by: Remi Rampin <[email protected]>
Closing as isue is no longer reproducible. |
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. |
I am trying to install poetry as early as possible in a clean
docker run -it ubuntu:18.04
interactive session:at this point, poetry installed but won't run because there's no "python" on the system; only python3. so I made a symlink and tried again:
I retried the steps using
apt install python3-pip
followed bypython3 -m pip install poetry
instead of the bootstrap script, but I get the same error when trying to run poetry.What am I missing exactly?
The text was updated successfully, but these errors were encountered: