Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Can't install celery 3.1.9 on python 3.3 #1889

Closed
extesy opened this Issue · 4 comments

3 participants

Oleg Anashkin Ask Solem Hoel Ionel Cristian Mărieș
Oleg Anashkin

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 Solem Hoel
Owner

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

Oleg Anashkin

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?

Ionel Cristian Mărieș
Owner
Ask Solem Hoel
Owner

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 Solem Hoel ask closed this in a727a66
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.