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

Clang and Python warnings during installation of Python SDK 2.3.2

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.3.4
    • 2.3.2
    • library
    • None
    • Python 2.7

    Description

      At installation time pip shows the following warnings:

      src/callbacks.c: In function ‘ping_callback’:
      src/callbacks.c:736:9: warning: variable ‘do_return’ set but not used [-Wunused-but-set-variable]
           int do_return = 0;
               ^
      src/oputil.c: In function ‘pycbc_sd_handle_speclist’:
      src/oputil.c:657:8: warning: ‘rv’ may be used uninitialized in this function [-Wmaybe-uninitialized]
           if (rv == 0) {
              ^
      src/ixmgmt.c: In function ‘mgmt_callback’:
      src/ixmgmt.c:15:26: warning: variable ‘hdrs’ set but not used [-Wunused-but-set-variable]
           const char * const * hdrs = NULL;
                                ^
        File "build/bdist.linux-x86_64/egg/acouchbase/iterator.py", line 17
          yield from self._future
                   ^
      SyntaxError: invalid syntax
      

      At least a warning about yield statement is quite critical as it makes acouchbase sub-package completely unusable in Python 2.7 (it uses Python 3.0 features).

      Attachments

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

        Activity

          People

            Ellis.Breen Ellis Breen
            volodymyr.khoroz Volodymyr Khoroz
            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