-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
ImportError: cannot import name ensure_file_on_disk #1876
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
Comments
Same issue with python 3.6:
|
I also have the same issue in linux mint 19.3, python 3.6
|
This likely means you have virtualenv installed both under Pythons global site package and user-level ( PS. In case of such issues, it's helpful to always include how you installed the package, what's the status of the installed packages (both before and after installation), and as final frontier what is the site-packages content both globally and under your user profile. Use |
Same issue with Python 3.6.9 on Ubuntu 20.04 (WSL). @gaborbernat solution worked for me. |
Issue
Originally, when I ran
virtualenv test
this afternoon I received the errorImportError: No module named via_app_data.via_app_data
but after reading through #1875 I decided to uninstall and reinstallvirtualenv
withpip
. Now, when I runvirtualenv test
I getImportError: cannot import name ensure_file_on_disk
with no other output. Runningpip install virtualenv -U
will not change the output ofvirtualenv test
. I have even runpip install git+https://github.com/pypa/virtualenv.git@master
but the import error persists.I did some investigation of my own and saw that a pushed commit to this repository's master branch just 5 days ago included both a removal of an import statement including
via_app_data.via_app_data
and another line importingensure_file_on_disk
. Since version 20.0.25 was released after this commit and my version is up-to-date, I am at a loss as to whyvirtualenv test
fails in this way.Environment
pip list
of the host python wherevirtualenv
is installed:Output of the virtual environment creation
Make sure to run the creation with
-vvv --with-traceback
:The text was updated successfully, but these errors were encountered: