-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Issues creating and activating a virtualenv in git bash #1818
Comments
I am happy to work on this issue :) Haven't contributed in a long time 🙂 |
Fixes: pypa#1818 Signed-off-by: Siddhant Kumar <[email protected]>
Fixes: pypa#1818 Signed-off-by: Siddhant Kumar <[email protected]>
Fixes: pypa#1818 Signed-off-by: Siddhant Kumar <[email protected]>
Fixes: pypa#1818 Signed-off-by: Siddhant Kumar <[email protected]>
hello, I believe this bug is not a duplicate of #1924 and is not fixed. Why is this not a duplicate: Why I believe this isn't fixed: running the latest version of virtualenv (20.0.31), I'm able to reproduce all the steps above and I get an ImportError when running python. Interestingly, I don't get an error when running pytest, although the code imports the same modules. I'm happy to reattach logs to this bug or open a new one, please let me know how to proceed. |
Install virtualenv from the repository, and try to replicate it with that. If you can provide a reproducible with that I'll reopen. |
I was able to reproduce the issue from the repo. Installing the latest version:
Creating a new virtualenv:
Activating it:
The virtualenv is correctly activated:
Installing a package works:
However, importing fails:
Strangely,
It looks like the issue is with the |
https://build.opensuse.org/request/show/840217 by user StevenK + dimstar_suse - Update to 20.0.33: * Fix ``None`` type error in cygwin if POSIX path in dest - by :user:`danyeaw`. (`#1962 <https://github.com/pypa/virtualenv/issues/1962>`_) * Fix Python 3.4 incompatibilities (added back to the CI) - by :user:`gaborbernat`. (`#1963 <https://github.com/pypa/virtualenv/issues/1963>`_) * For activation scripts always use UNIX line endings (unless it's BATCH shell related) - by :user:`saytosid`. (`#1818 <https://github.com/pypa/virtualenv/issues/1818>`_) * Avoid spawning new windows when doing seed package upgrades in the background on Windows - by :user:`gaborbernat`. (`#1928 <https://github.com/pypa/virtualenv/issues/1928>`_) * Fix a bug that reading and writing on the same file may cause race on multiple processes. (`#1938 <https://github.com/pypa/virtualenv/is
Issue
PATH
(and maybeVIRTUAL_ENV
?) seems to be set incorrectly on windows when using git bash, this worked with virtualenv 16.xEnvironment
Provide at least:
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
:Here's the activation:
here's the oddness:
this seemed to break
pip install aiohttp
and thenpython -c import aiohttp
:The text was updated successfully, but these errors were encountered: