pip3 install couchdbkit failed with "Command "python setup.py egg_info"

354 Views Asked by At

I am unable to install couchdbkit in ubuntu. The command: pip3 install couchdbkit gives this following error:

Collecting couchdbkit
  Using cached couchdbkit-0.6.5.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-_302m_0e/couchdbkit/setup.py", line 25, in <module>
        long_description = file(
    NameError: name 'file' is not defined

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-_302m_0e/couchdbkit/

Please guide me if there any other way to install couchdbkit in ubuntu.

1

There are 1 best solutions below

1
On BEST ANSWER

That is because couchdbkit is not supported in python3. file was removed in versions 3x from python. This is also indicated here:

Couchdbkit requires Python 2.x superior to 2.6.

Why pip3 still tries to download it is another issue.