import gzip error (please help)

Discussion in 'Python' started by syahreza.octadian, Jan 11, 2008.

  1. 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
     
    syahreza.octadian, Jan 11, 2008
    #1
    1. Advertising

  2. syahreza.octadian 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>
     
    Fredrik Lundh, Jan 11, 2008
    #2
    1. Advertising

  3. On Jan 11, 7:14 pm, Fredrik Lundh <> wrote:
    > 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.
     
    syahreza.octadian, Jan 14, 2008
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. KK
    Replies:
    2
    Views:
    705
    Big Brian
    Oct 14, 2003
  2. bmgz

    gzip module - help!

    bmgz, Dec 14, 2003, in forum: Python
    Replies:
    3
    Views:
    389
    Peter Hansen
    Dec 15, 2003
  3. Rémi Gagnon
    Replies:
    2
    Views:
    394
    Michel Brito
    Apr 23, 2009
  4. news.hinet.net

    help about Content-encoding: gzip and proxy

    news.hinet.net, Aug 28, 2004, in forum: Perl Misc
    Replies:
    2
    Views:
    146
    Gregory Toomey
    Aug 28, 2004
  5. George Mpouras

    pipe gzip error

    George Mpouras, Sep 22, 2011, in forum: Perl Misc
    Replies:
    1
    Views:
    197
    Rainer Weikusat
    Sep 22, 2011
Loading...

Share This Page