ubuntu-12.04pipdotcloud

chardet2 (?) issue when installing dotcloud on an Ubuntu 12.04


I just signed up for DotCloud and got this while installing the pip package. Tried to fiddle around and could not solve it.
Running pip 1.2.1 under python 3.2.

Sorry, I don't know bits of Python so could not really figure out how to solve this by myself. If you have any python help to give me, please do it gently (although I do know PHP/Ruby pretty well).

$ sudo easy_install pip && sudo pip install dotcloud
[sudo] password for myself: 
Searching for pip
Best match: pip 1.2.1
pip 1.2.1 is already the active version in easy-install.pth
Installing pip script to /usr/local/bin
Installing pip-3.2 script to /usr/local/bin

Using /usr/local/lib/python3.2/dist-packages
Processing dependencies for pip
Finished processing dependencies for pip
Downloading/unpacking dotcloud
Running setup.py egg_info for package dotcloud

Requirement already satisfied (use --upgrade to upgrade): argparse in /usr/local/lib/python3.2/dist-packages (from dotcloud)
Downloading/unpacking requests==0.14.2 (from dotcloud)
Running setup.py egg_info for package requests
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/tmp/pip-build/requests/setup.py", line 6, in <module>
import requests
File "requests/__init__.py", line 52, in <module>
from . import utils
File "requests/utils.py", line 22, in <module>
from .compat import parse_http_list as _parse_list_header
File "requests/compat.py", line 112, in <module>
from .packages import chardet2 as chardet
ImportError: cannot import name chardet2
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

File "<string>", line 16, in <module>

File "/tmp/pip-build/requests/setup.py", line 6, in <module>

import requests

File "requests/__init__.py", line 52, in <module>

from . import utils

File "requests/utils.py", line 22, in <module>

from .compat import parse_http_list as _parse_list_header

File "requests/compat.py", line 112, in <module>

from .packages import chardet2 as chardet

ImportError: cannot import name chardet2

Solution

  • As it seems, for now DotCloud does not support Python 3, which unfortunately is the default version for Python on newer machines.

    Thus, looks like it's not possible to install dotcloud through pip.
    However, I managed to download the standalone package, unpacked it and installed using sudo ./setup.py install. The script calls for Python 2.7 automatically and installs everything cleanly.