Skip to content

UnicodeDecodeError in unpack_archive when extract_dir is unicode on Python 2 #709

@cjw296

Description

@cjw296

I see 25.1.2 was release today, and I've just had nightly builds of one of my packages fail as follows:

Installing docs.
Getting distribution for 'sphinx'.
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 2271, in main
  File "/opt/python/2.7.9/lib/python2.7/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/opt/python/2.7.9/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/opt/python/2.7.9/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 409, in run
  File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 645, in easy_install
  File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 694, in install_item
  File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 845, in install_eggs
  File "build/bdist.linux-x86_64/egg/setuptools/archive_util.py", line 52, in unpack_archive
  File "build/bdist.linux-x86_64/egg/setuptools/archive_util.py", line 147, in unpack_tarfile
  File "/home/travis/virtualenv/python2.7.9/lib/python2.7/posixpath.py", line 80, in join
    path += '/' + b
UnicodeDecodeError: 'ascii' codec can't decode byte 0xcc in position 8: ordinal not in range(128)
An error occurred when trying to install Sphinx 1.4.5. Look above this message for any errors that were output by easy_install.
While:
  Installing docs.
  Getting distribution for 'sphinx'.
Error: Couldn't install: Sphinx 1.4.5

The full log is here: https://travis-ci.org/cjw296/nose_fixes/jobs/149012793

Any idea when this could be fixed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions