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

Fix ImportError in preliminary analytics support

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.4.0
    • None
    • None

    Description

      A customer is trying to exercise the uncommitted, experimental analytics support provided in -PYCBC-370-. They are seeing this:

      Looking at that part of the code:

       

      def _analytics_query(self, query, host):
          from *cbas* import AnalyticsRequest, AnalyticsQuery
          if not isinstance(query, AnalyticsQuery):
              query = AnalyticsQuery(query)
          return AnalyticsRequest(query, host, self)
      

      I suspect that the cause of the ImportError is that this should be 'couchbase.cbas' rather that cbas. 'cbas' will work when running from the couchbase-python-client directory, but not elsewhere, whereas I think couchbase.cbas should work everywhere. Will test and confirm ASAP.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          No work has yet been logged on this issue.

          People

            Ellis.Breen Ellis Breen
            Ellis.Breen Ellis Breen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty