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

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

        Activity

          Ellis.Breen Ellis Breen created issue -
          Ellis.Breen Ellis Breen made changes -
          Field Original Value New Value
          Description A customer is trying to exercise the uncommitted, experimental analytics support provided in PYCBC-370. They are seeing this:

          !https://east.exch029.serverdata.net/owa/service.svc/s/GetFileAttachment?id=AAMkAGM3YTllM2JjLTQ5NGQtNDM4Zi1iYWJiLTFlMmUxZjY2NmY5ZQBGAAAAAAA%2F9QZJu3ENQLf56RuTNS%2FHBwCKsVtHd5tbTZ7YxO%2FsoSRRAAAA0SziAADVOfgV3byEQLo574eQF9AKAAAAAOsyAAABEgAQAG4XoZMAzWxLs%2BgWRhxQXCE%3D&X-OWA-CANARY=CPBH1RPmW0WcOrCkjFE2y9C54YZ42tUIeCSLEb5sqb5A4vCy64mNWPSNbSm1Seq32iEnAIASijQ.&isImagePreview=True|width=594,height=379,id=_x0000_i1029!

          Looking at that part of the code:

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

          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.
          Ellis.Breen Ellis Breen made changes -
          Status New [ 10003 ] Open [ 1 ]
          Ellis.Breen Ellis Breen made changes -
          Fix Version/s 2.4.1 [ 15217 ]
          Ellis.Breen Ellis Breen made changes -
          Attachment image001.png [ 54470 ]
          Ellis.Breen Ellis Breen made changes -
          Description A customer is trying to exercise the uncommitted, experimental analytics support provided in PYCBC-370. They are seeing this:

          !https://east.exch029.serverdata.net/owa/service.svc/s/GetFileAttachment?id=AAMkAGM3YTllM2JjLTQ5NGQtNDM4Zi1iYWJiLTFlMmUxZjY2NmY5ZQBGAAAAAAA%2F9QZJu3ENQLf56RuTNS%2FHBwCKsVtHd5tbTZ7YxO%2FsoSRRAAAA0SziAADVOfgV3byEQLo574eQF9AKAAAAAOsyAAABEgAQAG4XoZMAzWxLs%2BgWRhxQXCE%3D&X-OWA-CANARY=CPBH1RPmW0WcOrCkjFE2y9C54YZ42tUIeCSLEb5sqb5A4vCy64mNWPSNbSm1Seq32iEnAIASijQ.&isImagePreview=True|width=594,height=379,id=_x0000_i1029!

          Looking at that part of the code:

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

          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.
          A customer is trying to exercise the uncommitted, experimental analytics support provided in PYCBC-370. They are seeing this:

           !image001.png|thumbnail!

          Looking at that part of the code:

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

          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.
          Ellis.Breen Ellis Breen made changes -
          Description A customer is trying to exercise the uncommitted, experimental analytics support provided in PYCBC-370. They are seeing this:

           !image001.png|thumbnail!

          Looking at that part of the code:

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

          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.
          A customer is trying to exercise the uncommitted, experimental analytics support provided in -PYCBC-370-. They are seeing this:

          !image001.png|width=937,height=595,thumbnail!

          Looking at that part of the code:

           
          {code:java}def _analytics_query(self, query, host):
              from *cbas* import AnalyticsRequest, AnalyticsQuery
              if not isinstance(query, AnalyticsQuery):
                  query = AnalyticsQuery(query)
              return AnalyticsRequest(query, host, self)
          {code}
          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.
          Ellis.Breen Ellis Breen made changes -
          Description A customer is trying to exercise the uncommitted, experimental analytics support provided in -PYCBC-370-. They are seeing this:

          !image001.png|width=937,height=595,thumbnail!

          Looking at that part of the code:

           
          {code:java}def _analytics_query(self, query, host):
              from *cbas* import AnalyticsRequest, AnalyticsQuery
              if not isinstance(query, AnalyticsQuery):
                  query = AnalyticsQuery(query)
              return AnalyticsRequest(query, host, self)
          {code}
          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.
          A customer is trying to exercise the uncommitted, experimental analytics support provided in --PYCBC-370--. They are seeing this:

          !image001.png|width=330,height=210,thumbnail!

          Looking at that part of the code:

           
          {code:java}def _analytics_query(self, query, host):
              from *cbas* import AnalyticsRequest, AnalyticsQuery
              if not isinstance(query, AnalyticsQuery):
                  query = AnalyticsQuery(query)
              return AnalyticsRequest(query, host, self)
          {code}
          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.
          Ellis.Breen Ellis Breen made changes -
          Fix Version/s 2.4.0 [ 15210 ]
          Fix Version/s 2.4.1 [ 15217 ]
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          Ellis.Breen Ellis Breen made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

          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