Skip to content

Cannot install due to AttributeError: LCB_SUBDOC_MULTI_FAILURE #5

Description

@sublee

I tried to install couchbase-2.2.2 and couchbase-python-cffi@2.x in my PyPy environment. But the installation was failed due to an error:

$ pip install couchbase
Collecting couchbase
  Using cached couchbase-2.2.2.tar.gz
Installing collected packages: couchbase
  Running setup.py install for couchbase ... done
Successfully installed couchbase-2.2.2
You are using pip version 8.1.2, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

$ cd ~/couchbase-python-cffi
$ python setup.py install
Traceback (most recent call last):
  File "setup.py", line 2, in <module>
    import couchbase_ffi._cinit
  File "/home/sub/works/couchbase-python-cffi/couchbase_ffi/__init__.py", line 51, in <module>
    _libcouchbase._stage2_bootstrap()
  File "/home/sub/works/couchbase-python-cffi/couchbase_ffi/_libcouchbase.py", line 78, in _stage2_bootstrap
    from couchbase_ffi.bucket import Bucket
  File "/home/sub/works/couchbase-python-cffi/couchbase_ffi/bucket.py", line 18, in <module>
    import couchbase_ffi.executors as executors
  File "/home/sub/works/couchbase-python-cffi/couchbase_ffi/executors.py", line 4, in <module>
    from couchbase.exceptions import ValueFormatError, ArgumentError, CouchbaseError
  File "/home/sub/env-pypy/site-packages/couchbase/exceptions.py", line 507, in <module>
    class SubdocMultipleErrors(CouchbaseError):
  File "/home/sub/env-pypy/site-packages/couchbase/exceptions.py", line 509, in SubdocMultipleErrors
    CODE = C.LCB_SUBDOC_MULTI_FAILURE
  File "/home/sub/works/couchbase-python-cffi/couchbase_ffi/__init__.py", line 46, in __getattr__
    raise AttributeError(item)
AttributeError: LCB_SUBDOC_MULTI_FAILURE

My PyPy environment is:

Python 2.7.10 (5.0.1+dfsg-4, Apr 08 2016, 00:22:14)
[PyPy 5.0.1 with GCC 5.3.1 20160407]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions