virtualenv: Problem with non ASCII car in path
I don’t know if this is related to #186 but with my fresh install of python on my Windows 8 I’ve the following error when using virtualenv in the path C:\Users\oncleben\Dropbox\Developement\fraisDeSanté
C:\Users\oncleben\Dropbox\Developement\fraisDeSanté> virtualenv ENV
New python executable in ENV\Scripts\python.exe
Traceback (most recent call last):
File "<string>", line 1, in <module>
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 50: ordinal not in range(128)
ERROR: The executable ENV\Scripts\python.exe is not functioning
ERROR: It thinks sys.prefix is u'c:\\users\\oncleben\\dropbox\\developement\\fraisdesant\xe9' (should be u'c:\\users\\on
cleben\\dropbox\\developement\\fraisdesant\xe9\\env')
ERROR: virtualenv is not compatible with this system or executable
Note: some Windows users have reported this error when they installed Python for "Only this user" or have multiple versi
ons of Python installed. Copying the appropriate PythonXX.dll to the virtualenv Scripts/ directory may fix this problem.
python v2.7.5 pip list nose (1.3.0) pip (1.4) Scaffold (0.1.3) setuptools (0.9.7) virtualenv (1.10)
Edit:
- emoji - see https://github.com/pypa/virtualenv/issues/1014 - 🚒
- è - see https://github.com/pypa/virtualenv/issues/1392
- Cyrillic - see https://github.com/pypa/virtualenv/issues/1375
- $ character
About this issue
- Original URL
- State: closed
- Created 11 years ago
- Reactions: 1
- Comments: 20 (4 by maintainers)
Links to this issue
Commits related to this issue
- Fix for issue #457 — committed to atykhonov/virtualenv by atykhonov 11 years ago
This now has been fixed, as long as the file system codec can handle it, we’ll handle it too 👍 if not we’ll raise appropriate error message 👍 On windows pre python3.6 this implies mcbs codec 👍 in all later cases we’re talking about utf-8.
@stale closed this … but ping. This is still a bug… but I am ok if this is not fixed on 2.7.x … I just need to know
For whatever it’s worth, I can reproduce this issue on Windows 7, Python 3.6.4, virtualenv 15.1.0, when working under a user account with username starting with
$.There are lots of pull requests trying to solve this:
I guess a Windows testing environment like Appveyor is also necessary. pypa/pip is already using it.