-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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 env use python3.7 gives error No module named 'virtualenv.seed.via_app_data' #2972
Comments
@FelixKJose I didn't manage to repro locally with 1.0.10. I do had that error on circleci with circleci:python-3.7.6 docker image as executor. I've upgraded to python-3.7.9 executor and I have a different problem now. Poetry is stuck is loop installing some dependencies. |
@FelixKJose can you run that with @mbelang the loop could when the project was locked using |
@abn Thanks for the answer. The error reported by @FelixKJose I got it with python 3.7.6 I was not able to reproduce with python 3.7.7 nor 3.7.8 I do have an other error with python 3.7.9
|
Hello @abn @mbelang Thank you for the replies. But I have one question:
But:
|
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python3.7 - --help Note the
This is because the curl -sSLO https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py
python3.7 get-poetry.py --help Also for general queries, I would also recommend drobbing by our Discord Server. You might get quicker responses. :) @mbelang hmm interesting; I will take a look when I get some time. Thank you for the stack trace. |
@FelixKJose looks like your original issue is an upstream issue with |
@mbelang looks like the trace indicates the issue is with pip tryig to setup the PEP 517 build environment. Maybe invalidate the cache so poetry recreates the environment. |
Like @abn mentioned(In that issue you can see my comment from Jul 15) it's a problem with virtualenv more specifically if you have two virtualenv installed (In my case i installed one with APT, and one with PIP) that's causing the error. |
|
I experience this issue with Python 3.8.5 as well (when running
I've been iterating stable release versions backwards starting from v1.1.2 and the latest one in which this doesn't happen is 1.0.10. |
@zoopp Please try this steps. If you installed virtualenv with a package manager something different than PIP (like brew,apt,yum, etc.)
|
@ycd Your suggestion fixes the issue in my case, thank you! I see I should have read the previous comments more carefully. 😅 |
Error that cannot be resolved despite your answers. This is what I have (when running
Other informations:
A wonderful person to help me? 🙏 |
Exactly same problem here. @ycd suggestions followed and unfortunately did not help. |
Well no, I finally found out: when installing via pip after having deleted I did not actually installed these packages myself, they were installed as dependencies of So, @demangejeremy I don't know how it is with your MacOS / Anaconda platform, but it would be an incredible coincidence to get exactly the same problem at the same time but from a totally different cause. I'd suggest you to not give up and hunt for packages like |
I'm on an arch-based system, I had to do the opposite of what was suggested above. For me, I had to install python-poetry and python-virtualenv through pacman and uninstall the poetry I installed via the shell script and/or pip. |
I can confirm that deleting virtualenv installed via apt on |
For some reason, it was enough to just uninstall |
I've seen this error on CircleCI using |
@dash-samuel Saved my Day...Thanks man! |
I was experiencing this with 3.6 in pyenv, on Ubuntu 18.04 in WSL, and upgrading
|
i ran also in the problem and confirm that #2972 (comment) is the solution... |
After following the accepted recommendation from above, I am still running into this error.
I am attempting to run install in a newly created project.
|
I didn't have a global version of |
I also had this issue, or a variant of it. Installed poetry Used Used
Followed the most simple suggestion:
Re-ran
Everything works great, that's it! ::thumbsup:: OS: Ubuntu 20.04.1 LTS x86_64 |
had the same issue on ubuntu 20.04 LTS via wsl2, I also have a few package managers that I use so I wondered if that caused an issue, but I had the same issue in docker.
|
For the record, if it helps someone else, I had this same issue. The situation was complicated by my use of
I tried a lot of stuff - installing and re-installing the Using the It seems that Poetry was using Python 3.6. The solution was to activate Python 3.6 via |
I see that |
Depends on how poetry was installed and also the version poetry. And additionally, it could also be because of how the debian packages override site paths. Poetry's vendoring works by injecting the vendor site into the path. But without specifics about the environment it is hard to determine why exactly this might be happening. As for the issue itself, since the creation of this issue a few things have happened. This includes poetry no longer vendoring dependencies and deprecating I am closing this issue as the root issue should no longer happen, unless the issue is a distribution issue (eg: ubuntu/virtualenv, ubuntu/distutils etc.). |
@nicolashainaux Thanks, this definitely solved my problem. |
@abn, I am also affected by the issue. So I tried a few things based on your suggestions in a Docker container. FROM ubuntu:focal
RUN apt update && apt install -y python3-virtualenv curl
# OPTION 1:
# Succeeds installing, however user faces the 'No module named 'virtualenv.seed.via_app_data'
# when using 'poetry new ...' and 'poetry shell' when trying to use poetry in the derived container.
# RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python3
# OPTION 2:
# Fails to install with the 'No module named 'virtualenv.seed.via_app_data' error
# RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python3
RUN echo "source $HOME/.poetry/env" >> /root/.bashrc I did not do further checking on the internals (yet), but as I think we can conclude that Poetry and the As the issue is closed I would like to hear if you share my opinion that the issue is still present. If so, then we can look into finding a solution. :) |
My |
This worked for me as well, but needed a reboot (or at least re-openning the terminal) after these commands.
|
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. |
Hi,
I found issue on poetry 1.0.10 when I run
poetry env use python3.7
as follows:So I tried to upgrade to poetry preview version by:
poetry self update --preview ∞
Updating to 1.1.0b4
Then I tried to execute
poetry env use python3.7
, now I am getting a different error:Any help is really appreciated. Please let me know if anymore information is needed.
The text was updated successfully, but these errors were encountered: