Skip to content
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

Environment creation fails with non-ASCII chars in path #49

Closed
eseifert opened this issue Jan 22, 2014 · 0 comments
Closed

Environment creation fails with non-ASCII chars in path #49

eseifert opened this issue Jan 22, 2014 · 0 comments

Comments

@eseifert
Copy link

Creating a new environment with a non-ASCII path fails. For example, when I execute the following command in the path /work/öäü on my Linux system:

$ nodeenv env

it fails with

 * Install node.js (0.10.24Traceback (most recent call last):
  File "/usr/lib/python-exec/python2.7/nodeenv", line 9, in <module>
    load_entry_point('nodeenv==0.7.2', 'console_scripts', 'nodeenv')()
  File "/usr/lib64/python2.7/site-packages/nodeenv.py", line 546, in main
    create_environment(env_dir, opt)
  File "/usr/lib64/python2.7/site-packages/nodeenv.py", line 472, in create_environment
    install_node(env_dir, src_dir, opt)
  File "/usr/lib64/python2.7/site-packages/nodeenv.py", line 353, in install_node
    node_src_dir = join(src_dir, node_name)
  File "/usr/lib64/python2.7/posixpath.py", line 80, in join
    path += '/' + b
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 6: ordinal not in range(128)

Several fixes for a silar problem in virtualenv have been proposed, e.g. pypa/virtualenv#457

ekalinin added a commit that referenced this issue Jul 21, 2015
ekalinin added a commit that referenced this issue Jul 21, 2015
ekalinin added a commit that referenced this issue Feb 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant