Skip to content

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

Closed

Description

@eseifert

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

Activity

  1. added a commit that references this issue on Feb 2, 2017
    e9d144a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions