[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 ) Created: 23/Nov/12 Updated: 03/Dec/12 Resolved: 03/Dec/12 |
|
| Status: | Resolved |
| Project: | Couchbase Server |
| Component/s: | documentation |
| Affects Version/s: | 2.0 |
| Fix Version/s: | 2.0 |
| Security Level: | Public |
| Type: | Bug | Priority: | Major |
| Reporter: | Andrei Baranouski | Assignee: | MC Brown |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | 2.0-release-notes | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| 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 |
| Comments |
| Comment by Andrei Baranouski [ 23/Nov/12 ] |
|
./cbtransfer
Traceback (most recent call last): File "/opt/couchbase/lib/python/cbtransfer", line 25, 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 |
| Comment by Steve Yen [ 25/Nov/12 ] |
|
HI Andrei, Can you add more environment info -- which O/S and which python version? The thought is to understand how common zlib-less python is. Thanks, Steve |
| Comment by Andrei Baranouski [ 25/Nov/12 ] |
|
it happens on CentOS release 5.7 but seems like on these hosts default python was upgrade from Python 2.4 to Python 2.7
[root@localhost bin]# python Python 2.7 (r27:82500, Jul 26 2012, 13:27:06) [GCC 4.1.2 20080704 (Red Hat 4.1.2-51)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import zlib Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named zlib >>> exit() [root@localhost bin]# /usr/bin/python2.4 Python 2.4.3 (#1, Sep 21 2011, 19:55:41) [GCC 4.1.2 20080704 (Red Hat 4.1.2-51)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import zlib This means that the system has python2.4 with zlib by default but if user upgrade python without zlib configuration he will have these issues. This means that the system |
| Comment by Farshid Ghods [ 26/Nov/12 ] |
|
this occured on a system where python 2.7 was built from source instead of installation of standard packages which include zlib.
going to make this bug a release note and assign to docs team |
| Comment by MC Brown [ 03/Dec/12 ] |
| An entry has been added to the release notes as a known issue |