-
Notifications
You must be signed in to change notification settings - Fork 431
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
Force environment variables to str with Python2 on Windows #101
Conversation
With Python2 on Windows, force environment variables to str to avoid "TypeError: environment can only contain strings " in Python's subprocess.py.
d541b6c
to
fe35be1
Compare
Any ideas? @theskumar |
Why was this closed? AFAICS, the proposed fix was not applied and the latest release 0.9.1 still has this problem. This break Flask under Python 2.7 on Windows, beacause it uses python-dotenv automatically, if it is installed, when you use the |
@SpotlightKid I finally create a PR in Werkzeug to fix this issue on master(#1320), maybe we should fix it in python-dotenv too. Ok, I just reopen it, but the maintainer seems very busy... |
Yes, this should be definitely fixed in |
Thanks @greyli for taking this up! 👍 💟 |
…#101) * Force environment variables to str With Python2 on Windows, force environment variables to str to avoid "TypeError: environment can only contain strings " in Python's subprocess.py. * PEP8 fix * Add Python3 compatible * Fix flake8 fails with F821 * Fix flake8 fails with F821
With Python2 on Windows, force environment variables to str to avoid "TypeError: environment can only contain strings" in Python's subprocess.py.
Fix #88