You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] dotenv cli not used windows venv if it activated #373
Also we can add check sys.version_info in this crutch, but i haven't all supported python version on windows. I see you have tox, so we can come up with test for that and add different OS in tox (platform parameter) for check it for that, if you support this change.
changed the title [-][Question] dotenv cli not used windows venv if it activate?[/-][+][BUG] dotenv cli not used windows venv if it activated[/+]on Jan 28, 2022
Following the suggestions in the warning I created a pull request #508 . I believe resolving against the PATH is what most of the users expect.
You can try it with:
Activity
Niccolum commentedon Jan 27, 2022
Found interesting issue in CPython about it
https://bugs.python.org/issue38905
Have you any ideas how to solve this?
I have idea with one crutch:
Somewhere before https://github.com/theskumar/python-dotenv/blob/master/src/dotenv/cli.py#L153
But I didn't test this yet
Also we can add check
sys.version_infoin this crutch, but i haven't all supported python version on windows. I see you havetox, so we can come up with test for that and add different OS intox(platformparameter) for check it for that, if you support this change.[-][Question] dotenv cli not used windows venv if it activate?[/-][+][BUG] dotenv cli not used windows venv if it activated[/+]Niccolum commentedon Jan 29, 2022
UPD: crutch is working!
Indiana3714 commentedon Sep 1, 2022
Any chance the fix above can be merged? (assuming it works)
EliiseS commentedon Mar 14, 2024
Any fix for this? Still running into this issue in windows
MahrRah commentedon Mar 14, 2024
Same issue here.
Bajron commentedon Mar 15, 2024
You can do something like that (assuming cmd.exe)
Current behavior is just Python behavior. Compare
and
Also, see the warning in Popen documentation https://docs.python.org/3/library/subprocess.html#subprocess.Popen
Following the suggestions in the warning I created a pull request #508 . I believe resolving against the PATH is what most of the users expect.
You can try it with:
Most likely you need to uninstall the old version first as the version string is still the same and pip might not apply the changes because of that.