Export to GitHub

python-incompatibility - issue #4

Setuptools installation failes with unicode error


Posted on Aug 13, 2009 by Grumpy Ox

What steps will reproduce the problem? 1. Installing setuptools on official Python 3.1 on Windows XP

What version of the product are you using? On what operating system? See above. Featured setuptools download (rev 66)

Installing easy_install-script.py script to C:\Python31\Scripts Traceback (most recent call last): File "setup.py", line 95, in <module> scripts = [], File "C:\Python31\lib\distutils\core.py", line 149, in setup dist.run_commands() File "C:\Python31\lib\distutils\dist.py", line 919, in run_commands self.run_command(cmd) File "C:\Python31\lib\distutils\dist.py", line 938, in run_command cmd_obj.run() File "D:\Soft\setuptools-0.7a1dev-r66\setuptools\command\install.py", line 73, in run self.do_egg_install() File "D:\Soft\setuptools-0.7a1dev-r66\setuptools\command\install.py", line 101 , in do_egg_install cmd.run() File "D:\Soft\setuptools-0.7a1dev-r66\setuptools\command\easy_install.py", lin e 225, in run self.easy_install(spec, not self.no_deps) File "D:\Soft\setuptools-0.7a1dev-r66\setuptools\command\easy_install.py", lin e 441, in easy_install return self.install_item(None, spec, tmpdir, deps, True) File "D:\Soft\setuptools-0.7a1dev-r66\setuptools\command\easy_install.py", lin e 492, in install_item self.process_distribution(spec, dist, deps) File "D:\Soft\setuptools-0.7a1dev-r66\setuptools\command\easy_install.py", lin e 511, in process_distribution self.install_egg_scripts(dist) File "D:\Soft\setuptools-0.7a1dev-r66\setuptools\command\easy_install.py", lin e 392, in install_egg_scripts self.install_wrapper_scripts(dist) File "D:\Soft\setuptools-0.7a1dev-r66\setuptools\command\easy_install.py", lin e 584, in install_wrapper_scripts for args in get_script_args(dist): File "D:\Soft\setuptools-0.7a1dev-r66\setuptools\command\easy_install.py", lin e 1606, in get_script_args name+'.exe', resource_string('setuptools', launcher), File "D:\Soft\setuptools-0.7a1dev-r66\pkg_resources.py", line 853, in resource _string self, resource_name File "D:\Soft\setuptools-0.7a1dev-r66\pkg_resources.py", line 1126, in get_res ource_string return self._get(self._fn(self.module_path, resource_name)) File "D:\Soft\setuptools-0.7a1dev-r66\pkg_resources.py", line 1259, in _get return stream.read() File "C:\Python31\lib\encodings\cp1251.py", line 23, in decode return codecs.charmap_decode(input,self.errors,decoding_table)[0] UnicodeDecodeError: 'charmap' codec can't decode byte 0x98 in position 5664: cha racter maps to <undefined>

Comment #1

Posted on Jun 14, 2010 by Helpful Kangaroo

I experienced the same probelm.. Do you have some fix or workaround..??

Many Thanks,

Comment #2

Posted on Jun 14, 2010 by Quick Kangaroo

Yes, use Distribute: http://pypi.python.org/pypi/distribute

Comment #3

Posted on Jun 14, 2010 by Quick Kangaroo

(No comment was entered for this change.)

Status: Verified