Skip to content

UnicodeDecodeError when install in Windows 7 #127

Closed
@ghost

Description

Originally reported by: tkdchen (Bitbucket: tkdchen, GitHub: tkdchen)


Install version 2.0.1 in Windows 7, Python 2.7.6 64bit. This error happened again when installing by running ez_setup.py downloaded from this repo.

#!python

Extracting in c:\users\chen\appdata\local\temp\tmprpne9d
Now working in c:\users\chen\appdata\local\temp\tmprpne9d\setuptools-2.0.1
Installing Setuptools
Traceback (most recent call last):
  File "setup.py", line 17, in <module>
    exec(init_file.read(), command_ns)
  File "<string>", line 8, in <module>
  File "c:\users\chen\appdata\local\temp\tmprpne9d\setuptools-2.0.1\setuptools\__init__.py", line 11, in <module>
    from setuptools.extension import Extension
  File "c:\users\chen\appdata\local\temp\tmprpne9d\setuptools-2.0.1\setuptools\extension.py", line 5, in <module>
    from setuptools.dist import _get_unpatched
  File "c:\users\chen\appdata\local\temp\tmprpne9d\setuptools-2.0.1\setuptools\dist.py", line 15, in <module>
    from setuptools.compat import numeric_types, basestring
  File "c:\users\chen\appdata\local\temp\tmprpne9d\setuptools-2.0.1\setuptools\compat.py", line 19, in <module>
    from SimpleHTTPServer import SimpleHTTPRequestHandler
  File "c:\Python27\lib\SimpleHTTPServer.py", line 27, in <module>
    class SimpleHTTPRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
  File "c:\Python27\lib\SimpleHTTPServer.py", line 208, in SimpleHTTPRequestHandler
    mimetypes.init() # try to read system mime.types
  File "c:\Python27\lib\mimetypes.py", line 358, in init
    db.read_windows_registry()
  File "c:\Python27\lib\mimetypes.py", line 258, in read_windows_registry
    for subkeyname in enum_types(hkcr):
  File "c:\Python27\lib\mimetypes.py", line 249, in enum_types
    ctype = ctype.encode(default_encoding) # omit in 3.x!
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb0 in position 1: ordinal not in range(128)
Something went wrong during the installation.
See the error message above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions