Uploaded image for project: 'Couchbase Python Client Library'
  1. Couchbase Python Client Library
  2. PYCBC-1116

Installing the latest python 3 sdk(3.1) gives error that libcouchbase files are missing.

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 3.1.0
    • 3.1.1
    • library
    • None
    • 1

    Description

      1. Install python 3.6 (or any python 3.5+)
      2. Install all dependencies required to install couchbase python sdk
      3. Install python 3 couchbase sdk
      4. Run any simple sample application

      The sample application should run without any issues. But we see the following error when running the application.

      Traceback (most recent call last):
        File "dummy_loader.py", line 3, in <module>
          from couchbase.cluster import Cluster, ClusterOptions, PasswordAuthenticator
      ModuleNotFoundError: No module named 'couchbase'
      root@ubuntu-1404:~/dummy-greenboard-data-generator# python3 dummy_loader.py
      Traceback (most recent call last):
        File "dummy_loader.py", line 3, in <module>
          from couchbase.cluster import Cluster, ClusterOptions, PasswordAuthenticator
        File "/usr/local/lib/python3.5/dist-packages/couchbase/__init__.py", line 1, in <module>
          import couchbase_core._bootstrap
        File "/usr/local/lib/python3.5/dist-packages/couchbase_core/__init__.py", line 45, in <module>
          import couchbase_core._libcouchbase as _LCB
      ImportError: libcouchbase.so.7: cannot open shared object file: No such file or directory
      

      This issue is not seen if I uninstall couchbase package and install an older version (3.0.10).

      Attachments

        For Gerrit Dashboard: PYCBC-1116
        # Subject Branch Project Status CR V

        Activity

          bharath.gp Bharath G P added a comment -

          Note that the couchbase SDK install has to be a fresh one and not an upgrade from a previous version. I haven't tried the upgrade path yet to check if it works or not.

          bharath.gp Bharath G P added a comment - Note that the couchbase SDK install has to be a fresh one and not an upgrade from a previous version. I haven't tried the upgrade path yet to check if it works or not.
          jared.casey Jared Casey added a comment -

          Hi Bharath G P - this will be corrected in the next version (3.1.1.).  I am working on a release now, so it should be uploaded to pypi soon.

          With the 3.1.x release we updated the underlying libcouchbase C library – that had some changes that impacted linux install (the issue you are currently seeing).

          jared.casey Jared Casey added a comment - Hi Bharath G P - this will be corrected in the next version (3.1.1.).  I am working on a release now, so it should be uploaded to pypi soon. With the 3.1.x release we updated the underlying libcouchbase C library – that had some changes that impacted linux install (the issue you are currently seeing).

          People

            jared.casey Jared Casey
            bharath.gp Bharath G P
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty