zlib module broken in python 2.5

Bug #126793 reported by P. Durante
4
Affects Status Importance Assigned to Milestone
python2.5 (Ubuntu)
Invalid
Undecided
Matthias Klose

Bug Description

Binary package hint: python2.5

just import zlib to trigger the bug

fyi, I'm on GUTSY

$ python
Python 2.5.1 (r251:54863, Jul 17 2007, 15:55:37)
[GCC 4.1.3 20070629 (prerelease) (Ubuntu 4.1.2-13ubuntu2)] 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: ./zlib.so: symbol inflateCopy, version ZLIB_1.2.0 not defined in file libz.so.1 with link time reference
Error in sys.excepthook:
Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/apport_python_hook.py", line 38, in apport_excepthook
    from apport.fileutils import likely_packaged
  File "/var/lib/python-support/python2.5/apport/__init__.py", line 1, in <module>
    from apport.report import Report
  File "/var/lib/python-support/python2.5/apport/report.py", line 20, in <module>
    from problem_report import ProblemReport
  File "/var/lib/python-support/python2.5/problem_report.py", line 15, in <module>
    import bz2, zlib, base64, time, UserDict, sys, gzip
ImportError: ./zlib.so: symbol inflateCopy, version ZLIB_1.2.0 not defined in file libz.so.1 with link time reference

Original exception was:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: ./zlib.so: symbol inflateCopy, version ZLIB_1.2.0 not defined in file libz.so.1 with link time reference
>>>

Revision history for this message
Matthias Klose (doko) wrote :

> ImportError: ./zlib.so: symbol inflateCopy

closing as invalid, you're importing a local zlib version.

Changed in python2.5:
assignee: nobody → doko
status: New → Invalid
Revision history for this message
Kao Félix (kaofelix) wrote :

I'm having the same issues with the zlib from repositories on feisty. I tried reinstalling the zlib package and also python-minimal (where zlib.so is located)
Python 2.4 imports zlib just fine.

Python 2.5.1 (r251:54863, May 2 2007, 16:56:35)
[GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import zlib
Error in sys.excepthook:
Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/apport_python_hook.py", line 30, in apport_excepthook
    import apport.report, apport.fileutils
  File "/var/lib/python-support/python2.5/apport/__init__.py", line 1, in <module>
    from apport.report import Report
  File "/var/lib/python-support/python2.5/apport/report.py", line 20, in <module>
    from problem_report import ProblemReport
  File "/var/lib/python-support/python2.5/problem_report.py", line 15, in <module>
    import bz2, zlib, base64, time, UserDict, sys, gzip
ImportError: /usr/lib/python2.5/lib-dynload/zlib.so: undefined symbol: inflateCopy

Original exception was:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: /usr/lib/python2.5/lib-dynload/zlib.so: undefined symbol: inflateCopy
>>>

Changed in python2.5:
status: Invalid → New
Revision history for this message
Matthias Klose (doko) wrote :

> ImportError: /usr/lib/python2.5/lib-dynload/zlib.so: undefined symbol: inflateCopy

ldd /usr/lib/python2.5/lib-dynload/zlib.so ?

Revision history for this message
Kao Félix (kaofelix) wrote :

Oh, man, I'm so sorry... got to know my environment better. The mono bin package I installed messed up with my .bashrc exporting some evil lib paths:

kao@kao-laptop:~$ ldd /usr/lib/python2.5/lib-dynload/zlib.so
        linux-gate.so.1 => (0xffffe000)
        libz.so.1 => /home/kao/mono-1.2.3.1/lib/libz.so.1 (0xb7f28000)
        libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7ef4000)
        libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7db2000)
        /lib/ld-linux.so.2 (0x80000000)

Well, I'm closing it again. At least I've learned something. I didn't know about ldd and I was searching for something exact like that to solve this problem. Thanks and sorry again for wasting your time...

Changed in python2.5:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.