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

Unable to use Python SDK on M1 mac book pro

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 4.0.3
    • 4.0.2
    • None
    • None
    • 1
    • SDK30

    Description

      When trying to use the python sdk installed from pip3 I was unable to import any packages from the Couchbase sdk.

      Bellow is the information regarding the Couchbase SDK installation using pip3

       ✘ richarddemellow@EMEA005  ~  pip3 install --user couchbase
      Requirement already satisfied: couchbase in ./Library/Python/3.9/lib/python/site-packages (4.0.2)
      WARNING: There was an error checking the latest version of pip.
      

       richarddemellow@EMEA005  ~  pip3 show couchbase
      Name: couchbase
      Version: 4.0.2
      Summary: Python Client for Couchbase
      Home-page: https://github.com/couchbase/couchbase-python-client
      Author: Couchbase, Inc.
      Author-email: PythonPackage@couchbase.com
      License: Apache License 2.0
      Location: /Users/richarddemellow/Library/Python/3.9/lib/python/site-packages
      Requires:
      Required-by:
      

      This is the error message I observed when trying to import the Cluster object as you would following the getting started documentation here

       ✘ richarddemellow@EMEA005  ~  python3
      Python 3.9.13 (main, May 24 2022, 21:13:51)
      [Clang 13.1.6 (clang-1316.0.21.2)] on darwin
      Type "help", "copyright", "credits" or "license" for more information.
      >>> from couchbase.cluster import Cluster
      Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
        File "/Users/richarddemellow/Library/Python/3.9/lib/python/site-packages/couchbase/cluster.py", line 24, in <module>
          from couchbase.analytics import AnalyticsQuery, AnalyticsRequest
        File "/Users/richarddemellow/Library/Python/3.9/lib/python/site-packages/couchbase/analytics.py", line 16, in <module>
          from couchbase.exceptions import (PYCBC_ERROR_MAP,
        File "/Users/richarddemellow/Library/Python/3.9/lib/python/site-packages/couchbase/exceptions.py", line 28, in <module>
          from couchbase.pycbc_core import exception
      ImportError: dlopen(/Users/richarddemellow/Library/Python/3.9/lib/python/site-packages/couchbase/pycbc_core.so, 0x0002): symbol not found in flat namespace '_BIO_ctrl'
      >>>
      

      Attachments

        Issue Links

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

          Activity

            People

              jared.casey Jared Casey
              richard.demellow Richard deMellow
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty