Issue #56 invalid

UnicodeDecodeError error when building packages with python 3

Domen Kožar
created an issue
Running setup.py -q bdist_egg --dist-dir /tmp/nix-build-python3.3-dateutil-2.1.drv-0/python-dateutil-2.1/egg-dist-tmp-wc9aoj
Traceback (most recent call last):
  File "/nix/store/y6np826y0n0jkkqh3z27l1dang78jm34-python3.3m-setuptools-0.9.8/bin/.easy_install-wrapped", line 9, in <module>
    load_entry_point('setuptools==0.9.8', 'console_scripts', 'easy_install')()
  File "/nix/store/y6np826y0n0jkkqh3z27l1dang78jm34-python3.3m-setuptools-0.9.8/lib/python3.3/site-packages/setuptools-0.9.8-py3.3.egg/setuptools/command/easy_install.py", line 1992, in main
  File "/nix/store/y6np826y0n0jkkqh3z27l1dang78jm34-python3.3m-setuptools-0.9.8/lib/python3.3/site-packages/setuptools-0.9.8-py3.3.egg/setuptools/command/easy_install.py", line 1979, in with_ei_usage
  File "/nix/store/y6np826y0n0jkkqh3z27l1dang78jm34-python3.3m-setuptools-0.9.8/lib/python3.3/site-packages/setuptools-0.9.8-py3.3.egg/setuptools/command/easy_install.py", line 1996, in <lambda>
  File "/nix/store/wsdh5dkcvfsl79q9v25kngcb0dpqja5w-python-offline-distutils-3.3.2/lib/python3.3/site-packages/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/nix/store/wsdh5dkcvfsl79q9v25kngcb0dpqja5w-python-offline-distutils-3.3.2/lib/python3.3/site-packages/distutils/dist.py", line 929, in run_commands
    self.run_command(cmd)
  File "/nix/store/wsdh5dkcvfsl79q9v25kngcb0dpqja5w-python-offline-distutils-3.3.2/lib/python3.3/site-packages/distutils/dist.py", line 948, in run_command
    cmd_obj.run()
  File "/nix/store/y6np826y0n0jkkqh3z27l1dang78jm34-python3.3m-setuptools-0.9.8/lib/python3.3/site-packages/setuptools-0.9.8-py3.3.egg/setuptools/command/easy_install.py", line 380, in run
  File "/nix/store/y6np826y0n0jkkqh3z27l1dang78jm34-python3.3m-setuptools-0.9.8/lib/python3.3/site-packages/setuptools-0.9.8-py3.3.egg/setuptools/command/easy_install.py", line 604, in easy_install
  File "/nix/store/y6np826y0n0jkkqh3z27l1dang78jm34-python3.3m-setuptools-0.9.8/lib/python3.3/site-packages/setuptools-0.9.8-py3.3.egg/setuptools/command/easy_install.py", line 653, in install_item
  File "/nix/store/y6np826y0n0jkkqh3z27l1dang78jm34-python3.3m-setuptools-0.9.8/lib/python3.3/site-packages/setuptools-0.9.8-py3.3.egg/setuptools/command/easy_install.py", line 849, in install_eggs
  File "/nix/store/y6np826y0n0jkkqh3z27l1dang78jm34-python3.3m-setuptools-0.9.8/lib/python3.3/site-packages/setuptools-0.9.8-py3.3.egg/setuptools/command/easy_install.py", line 1130, in build_and_install
  File "/nix/store/y6np826y0n0jkkqh3z27l1dang78jm34-python3.3m-setuptools-0.9.8/lib/python3.3/site-packages/setuptools-0.9.8-py3.3.egg/setuptools/command/easy_install.py", line 1115, in run_setup
  File "/nix/store/y6np826y0n0jkkqh3z27l1dang78jm34-python3.3m-setuptools-0.9.8/lib/python3.3/site-packages/setuptools-0.9.8-py3.3.egg/setuptools/sandbox.py", line 69, in run_setup
  File "/nix/store/y6np826y0n0jkkqh3z27l1dang78jm34-python3.3m-setuptools-0.9.8/lib/python3.3/site-packages/setuptools-0.9.8-py3.3.egg/setuptools/sandbox.py", line 120, in run
  File "/nix/store/y6np826y0n0jkkqh3z27l1dang78jm34-python3.3m-setuptools-0.9.8/lib/python3.3/site-packages/setuptools-0.9.8-py3.3.egg/setuptools/sandbox.py", line 71, in <lambda>
  File "/nix/store/y6np826y0n0jkkqh3z27l1dang78jm34-python3.3m-setuptools-0.9.8/lib/python3.3/site-packages/setuptools-0.9.8-py3.3.egg/setuptools/compat.py", line 92, in execfile
  File "setup.py", line 16, in <module>
    open(TOPDIR + "/dateutil/__init__.py").read()).group(1)
  File "/nix/store/fbrjq023g4r3pm91irqb915xnwdzj1wv-python3-3.3.2/lib/python3.3/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 193: ordinal not in range(128)

Comments (5)

  1. Arfrever Frehtes Taifersar Arahesis

    The traceback shows that problem is caused by open(...).read() call in setup.py of python-dateutil-2.1, which reads content of a file containing bytes not decodable using encoding corresponding to current locale. This is a bug in python-dateutil-2.1.

  2. ajung

    This error can not be invalid...it happens also on three different Linux boxes during the installation under Python 3.3....we don't not have to adjust the locale here. The installation is broken for whatever reason and it must be fixed in python-datetutil.

  3. ajung
    Downloading/unpacking python-dateutil==2.1
      Downloading python-dateutil-2.1.tar.gz (152kB): 152kB downloaded
      Running setup.py egg_info for package python-dateutil
        Traceback (most recent call last):
          File "<string>", line 16, in <module>
          File "/private/tmp/pp.server/build/python-dateutil/setup.py", line 16, in <module>
            open(TOPDIR + "/dateutil/__init__.py").read()).group(1)
          File "/private/tmp/pp.server/lib/python3.3/encodings/ascii.py", line 26, in decode
            return codecs.ascii_decode(input, self.errors)[0]
        UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 193: ordinal not in range(128)
        Complete output from command python setup.py egg_info:
        Traceback (most recent call last):
    
      File "<string>", line 16, in <module>
    
      File "/private/tmp/pp.server/build/python-dateutil/setup.py", line 16, in <module>
    
        open(TOPDIR + "/dateutil/__init__.py").read()).group(1)
    
      File "/private/tmp/pp.server/lib/python3.3/encodings/ascii.py", line 26, in decode
    
        return codecs.ascii_decode(input, self.errors)[0]
    
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 193: ordinal not in range(128)
    
  4. Log in to comment