[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

import gzip error (please help

syahreza.octadian

1/11/2008 11:21:00 AM

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
2 Answers

Fredrik Lundh

1/11/2008 12:14:00 PM

0

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>

syahreza.octadian

1/14/2008 2:27:00 AM

0

On Jan 11, 7:14 pm, Fredrik Lundh <fred...@pythonware.com> 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.