Closed imutkarshpatil closed 7 years ago
@imutkarshpatil I can't reproduce this.
Have you installed the library correctly with pip install cloudant
?
You appear to be trying to use a dev
version which is not supported.
@tomblench
I tried with pip install cloudant
, was receiving the same error so I uninstalled and tried with dev
version by installing with pip install git+https://github.com/cloudant/python-cloudant
.
Still the issue is the same.
The latest released version should work; for example this test script works fine for me:
from cloudant.client import Cloudant
client = Cloudant("tomblench", "XXXX", account="tomblench", connect=True)
session = client.session()
print 'Username: {0}'.format(session['userCtx']['name'])
print 'Databases: {0}'.format(client.all_dbs())
@tomblench issue is resolved as soon as I refreshed the session, duh!
OK no problem 😄
I just set export PYTHONPATH=/usr/local/lib/python2.7/site-packages
which cloudant lib exists.
Hi, I'm trying to use cloudant-python library in my application, but I'm not able to import the library itself as I'm getting
ImportError: No module named document
as soon as I try to import anything from cloudant context. Following are details:OR
OR
The error is as follows: