import gzip error (please help)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • syahreza.octadian

    import gzip error (please help)

    Dear all,

    Please help, i have error message when i import gzip module. The error
    like this below:

    bash-3.00$ python
    Python 2.5 (r25:51908, Sep 20 2006, 03:46:40)
    [GCC 3.4.6] on sunos5
    Type "help", "copyright" , "credits" or "license" for more information.
    >>import gzip
    Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    File "/usr/local/lib/python2.5/gzip.py", line 9, in <module>
    import zlib
    ImportError: ld.so.1: python: fatal: relocation error: file /usr/local/
    lib/python2.5/lib-dynload/zlib.so: symbol inflateCopy: referenced
    symbol not found


    Thx u.
    Syahreza Octadian
  • Fredrik Lundh

    #2
    Re: import gzip error (please help)

    syahreza.octadi an wrote:
    Please help, i have error message when i import gzip module. The error
    like this below:
    >
    bash-3.00$ python
    Python 2.5 (r25:51908, Sep 20 2006, 03:46:40)
    [GCC 3.4.6] on sunos5
    Type "help", "copyright" , "credits" or "license" for more information.
    >>>import gzip
    Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    File "/usr/local/lib/python2.5/gzip.py", line 9, in <module>
    import zlib
    ImportError: ld.so.1: python: fatal: relocation error: file /usr/local/
    lib/python2.5/lib-dynload/zlib.so: symbol inflateCopy: referenced
    symbol not found
    the core zlib library (libz.so) isn't installed on your machine.

    </F>

    Comment

    • syahreza.octadian

      #3
      Re: import gzip error (please help)

      On Jan 11, 7:14 pm, Fredrik Lundh <fred...@python ware.comwrote:
      the core zlib library (libz.so) isn't installed on your machine.

      but in my machine there is file
      -rwxr-xr-x 1 bin bin 48576 Sep 20 2006 /usr/local/lib/
      python2.5/lib-dynload/zlib.so


      if i have to install zlib library core, where i can found it for
      solaris 10 sparcv.

      Comment

      Working...