autopep8: Error when install autopep8 under Python 3.3 on Windows

I am trying to install autopep8 under Python 3.3 on Windows:

pip3 install autopep8

However, I got an exception. Here is the output. Could you please take a look? Thanks in advance.

Running setup.py (path:C:\...\setup.py) egg_info for package autopep8

Traceback (most recent call last):
  File "<string>", line 17, in <module>
  File "C:\...\build\autopep8\setup.py", line 59, in <module>
    entry_points={'console_scripts': ['autopep8 = autopep8:main']},
  File "c:\Python33\lib\distutils\core.py", line 148, in setup
    dist.run_commands()
  File "c:\Python33\lib\distutils\dist.py", line 929, in run_commands
    self.run_command(cmd)
  File "c:\Python33\lib\distutils\dist.py", line 948, in run_command
    cmd_obj.run()
  File "<string>", line 15, in replacement_run
  File "C:\...\lib\site-packages\distribute-0.6.49-py3.3.egg\setuptools\command\egg_info.py", line 259, in find_sources
    mm.run()
  File "C:\...\lib\site-packages\distribute-0.6.49-py3.3.egg\setuptools\command\egg_info.py", line 327, in run
    self.read_template()
  File "c:\Python33\lib\distutils\command\sdist.py", line 303, in read_template
    line = template.readline()
  File "c:\Python33\lib\distutils\text_file.py", line 174, in readline
    line = self.file.readline()
  File "c:\Python33\lib\encodings\cp1252.py", line 23, in decode
    return codecs.charmap_decode(input,self.errors,decoding_table)[0]
  UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 208: character maps to <undefined>

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 15

Most upvoted comments

@gcq, could you try installing via python setup.py install and see if it crashes there too?

$ git clone https://github.com/hhatto/autopep8
$ cd autopep8/
$ python setup.py install

If it only crashes with pip, I think this needs to be reported there.

Thanks