Import python SDK error

23 views
Skip to first unread message

Phuc Huu

unread,
Aug 31, 2016, 4:01:51 AM8/31/16
to Couchbase
I already imported Python SDK without error from pip:

pip install couchbase
Requirement already satisfied (use --upgrade to upgrade): couchbase in c:\python27\lib\site-packages
You are using pip version 7.1.2, however version 8.1.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

But when I run it from code. It show error: "ImportError: cannot import name Couchbase"

from couchbase.bucket import Bucket
  
cb = Bucket('couchbase://10.xx.xx.xx/test')
cb.upsert('u:king_arthur', {'name': 'Arthur', 'email': 'kinga...@couchbase.com', 'interests': ['Holy Grail', 'African Swallows']})
  
cb.get('u:king_arthur').value


Could you help me to resolve it.

Thank so much.

Mark Nunberg

unread,
Aug 31, 2016, 10:46:05 AM8/31/16
to couc...@googlegroups.com
couchbase, not Couchbase :)

Regards,
Mark
--
You received this message because you are subscribed to the Google Groups "Couchbase" group.
To unsubscribe from this group and stop receiving emails from it, send an email to couchbase+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages