Can't install celery 3.1.9 on python 3.3 #1889

Closed
extesy opened this Issue Feb 25, 2014 · 4 comments

3 participants

@extesy

I'm getting UnicodeDetectError while installing:

Downloading/unpacking celery>=3.1.9 (from -r /tmp/tmp2KgRiA (line 2))
  Running setup.py egg_info for package celery
    - Trying to upgrade 'task' in 'celery.app'
    - upgrade task: no old version found.

    no previously-included directories found matching '*.pyc'
    no previously-included directories found matching '*.sw*'
Exception:
Traceback (most recent call last):
  File "/home/extesy/kdd/venv/lib/python3.3/site-packages/pip-1.3.1-py3.3.egg/pip/basecommand.py", line 139, in main
    status = self.run(options, args)
  File "/home/extesy/kdd/venv/lib/python3.3/site-packages/pip-1.3.1-py3.3.egg/pip/commands/install.py", line 266, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/home/extesy/kdd/venv/lib/python3.3/site-packages/pip-1.3.1-py3.3.egg/pip/req.py", line 1062, in prepare_files
    req_to_install.assert_source_matches_version()
  File "/home/extesy/kdd/venv/lib/python3.3/site-packages/pip-1.3.1-py3.3.egg/pip/req.py", line 371, in assert_source_matches_version
    version = self.installed_version
  File "/home/extesy/kdd/venv/lib/python3.3/site-packages/pip-1.3.1-py3.3.egg/pip/req.py", line 367, in installed_version
    return self.pkg_info()['version']
  File "/home/extesy/kdd/venv/lib/python3.3/site-packages/pip-1.3.1-py3.3.egg/pip/req.py", line 334, in pkg_info
    data = self.egg_info_data('PKG-INFO')
  File "/home/extesy/kdd/venv/lib/python3.3/site-packages/pip-1.3.1-py3.3.egg/pip/req.py", line 274, in egg_info_data
    data = fp.read()
  File "/home/extesy/kdd/venv/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 0xe2 in position 3593: ordinal not in range(128)
@ask
Celery member

That seems strange, it works for me here. Are you sure you don't have a pip cache or something?

@extesy

It works when I install it manually from my user's console, but it doesn't work when installed automatically using Salt (https://github.com/saltstack/salt). My guess is that it doesn't forward LANG environment variable, but should that really be a requirement for installing celery?

@ionelmc
Celery member
@ask
Celery member

Works with C locale too:

env LANG=C LANGUAGE=C LC_ALL=C LOCALE=C pip install celery

Could be some older version of pip maybe

@ask ask closed this in a727a66 Feb 26, 2014
@kalefranz kalefranz added a commit to kalefranz/celery that referenced this issue Mar 7, 2014
@ask ask releaseok build now ensures README.rst is ASCII. Closes #1889 2a10dfc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment