histrio / py-couchdb

Modern pure python CouchDB Client.
https://pycouchdb.readthedocs.org/
Other
120 stars 43 forks source link

py-couchdb installation error in ubuntu12.04 with CouchDB 1.6.1 and python 2.7 as well as python 3.3 #62

Closed rkphilip45 closed 9 years ago

rkphilip45 commented 9 years ago

Dear Team,

I tried to install py-couchdb in ubuntu12.04 with CouchDB 1.6.1 and python 2.7 as well as python 3.3 and got the installation errors as given below:

$ pip install pycouchdb Downloading/unpacking pycouchdb Downloading pycouchdb-1.13.tar.gz Running setup.py (path:/tmp/pip_build_otc/pycouchdb/setup.py) egg_info for package pycouchdb Traceback (most recent call last): File "", line 17, in File "/tmp/pip_build_otc/pycouchdb/setup.py", line 10, in import pycouchdb File "pycouchdb/init.py", line 10, in from .client import Server File "pycouchdb/client.py", line 13, in from .resource import Resource File "pycouchdb/resource.py", line 5, in import requests ImportError: No module named requests Complete output from command python setup.py egg_info: Traceback (most recent call last):

File "", line 17, in

File "/tmp/pip_build_otc/pycouchdb/setup.py", line 10, in

import pycouchdb

File "pycouchdb/init.py", line 10, in

from .client import Server

File "pycouchdb/client.py", line 13, in

from .resource import Resource

File "pycouchdb/resource.py", line 5, in

import requests

ImportError: No module named requests


Cleaning up... Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_otc/pycouchdb Storing debug log for failure in /tmp/tmpVI3k_S $

Please advise.

Philip.

histrio commented 9 years ago

Hi @rkphilip45 As a quick solution you can run pip install requirements before pycouch installation.

It's a bug of latest version which fixed now. Thanks!