Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-7256

cbrestore, cbtransfer exit with ImportError: No module named zlib if python installation on the box does not have zlib library ( when python is built from source )

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: None
    • Security Level: Public

      Description

      build 1965

      ./cbrestore
      Traceback (most recent call last):
      File "/opt/couchbase/lib/python/cbrestore", line 8, in <module>
      import pump_transfer
      File "/opt/couchbase/lib/python/pump_transfer.py", line 10, in <module>
      import pump
      File "/opt/couchbase/lib/python/pump.py", line 14, in <module>
      import zlib
      ImportError: No module named zlib

      by default zlib module is disabled in python, it can be enabled using option --with-zlib when configure python.

      but user at least should be notified about this requirements for cbrestore

        Attachments

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

          Activity

            People

            • Assignee:
              mccouch MC Brown (Inactive)
              Reporter:
              andreibaranouski Andrei Baranouski
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes