OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Missing Zlib ?, (in the 2.3.4 image..)
fpp
post Mar 13 2005, 02:07 PM
Post #1





Group: Members
Posts: 188
Joined: 1-February 04
Member No.: 1,647



Kopsis,

I just tried out a nice PyQt app ( http://www.bellz.org/treeline/ ) that looks just right for running on a Z ! The windows version works fine on my PC, but I have a problem with the Linux version :

The installer says all dependencies are OK, but when I try to run it fails when the gzip module tries to "import zlib" (I can't import it manually from the interpreter either).

Is there anything I can do about this ?

TIA,
fp
Go to the top of the page
 
+Quote Post
fpp
post Mar 16 2005, 09:26 AM
Post #2





Group: Members
Posts: 188
Joined: 1-February 04
Member No.: 1,647



Up ! :-)

Anyone ? Stoopid question maybe, or is Kopsis just away for a while ? smile.gif
Go to the top of the page
 
+Quote Post
kopsis
post Mar 17 2005, 06:06 AM
Post #3





Group: Members
Posts: 329
Joined: 1-July 04
Member No.: 3,880



Sorry for not posting sooner ... I've been slammed with work lately. Cost growth estimates on a $50M embedded system development ... blech! mad.gif

There used to be a zlib package on Sourceforge (ZSI has links to it) but it looks like the project that housed it has been terminated. Unfortunately I don't have a copy of the IPK to post.

The libz.so that I use actually comes from a Debain devel package. If you know your way around Debian, you can download the appropriate ARM .deb file, extract its contents, and move the .so file to your Z. If not, I can probably whip up an IPK but not before this weekend. In the mean time you may want to post in the General Software forum to see if anyone has a copy of (or knows a feed for) the zlib package.
Go to the top of the page
 
+Quote Post
fpp
post Mar 17 2005, 02:07 PM
Post #4





Group: Members
Posts: 188
Joined: 1-February 04
Member No.: 1,647



QUOTE(kopsis @ Mar 17 2005, 06:06 AM)
Sorry for not posting sooner ... I've been slammed with work lately. Cost growth estimates on a $50M embedded system development ... blech! mad.gif

No sweat, that's life for you : priorities all wrong, most of the time smile.gif
QUOTE
The libz.so that I use actually comes from a Debain devel package. If you know your way around Debian, you can download the appropriate ARM .deb file, extract its contents, and move the .so file to your Z. If not, I can probably whip up an IPK but not before this weekend. In the mean time you may want to post in the General Software forum to see if anyone has a copy of (or knows a feed for) the zlib package.
*

Kopsis, I guess I must have misunderstood something here, sorry.

The reason I posted in this forum, and to you in particular, is because I was under the impression that the problem was with your python 2.3.4 image for the Z, i.e. some missing item from the standard Python distribution. After all, the offending script fails specifically on "import zlib", the traceback ending with :
ImportErro: No module named zlib

On my Windows box there is a zlib.pyd in python/DLLs. On my gentoo (sort-of-debian) box there is a zlib.so in /usr/lib/python/lib-dynload. On my Z there is no zlib-something anywhere, so I thought it was just a Python problem.

I hadn't realised that under Linux (Windows seems to different, heh) you also need a system package (Gentoo has a lot of other zlib pieces all over the place). What I'm wondering is, if I find an arm version of zlib, will symlinking that zlib.so to the python lib-dynload dir be enough, or is there more involved ?

If you can save time by not creating a proper IPK, a plain copy of the relevant file(s) with some hints on where to copy/link them would do just as nicely for a start. And it's not like I'm in a hurry, either :-)

TIA,
fp
Go to the top of the page
 
+Quote Post
mars
post Mar 17 2005, 02:12 PM
Post #5





Group: Members
Posts: 146
Joined: 5-October 04
Member No.: 4,881



It doesn't seem as easy as pulling zlib from debian-arm.

I tried it by extracting the libraries out of zlib1g and zlib1g-dev in testing and putting the resulting libz.a, libz.so, libz.so.1, libz.so.1.2.2 in various places (/usr/lib, /opt/QtPalmtop/lib, $PYTHONPATH). Importing zlib in python still doesn't work.

BTW, The latest Cacko ROM already has zlib installed:

/usr/lib.rom/libz.so
/usr/lib.rom/libz.so.1
/usr/lib.rom/libz.so.1.2.2

Anyway, I've exhausted my meager abilities on this.
Go to the top of the page
 
+Quote Post
fpp
post Mar 17 2005, 02:57 PM
Post #6





Group: Members
Posts: 188
Joined: 1-February 04
Member No.: 1,647



Well, you're still way ahead of me, I didn't even know that some pervert had called the actual zlib-related files "libz" :-)

I've tried symlinking libz.so (the one in the Cacko ROM, and another I found somewhere) to zlib.so in the lib-dynload dir for python.

In both cases the ImportError changes :
dynamic module does not define init function (initzlib)

Think I'm gonna stop guessing right here and wait for the expert(s) - it's late over here in GMT anyway :-)
Go to the top of the page
 
+Quote Post
Optogeek
post Mar 18 2005, 03:58 AM
Post #7





Group: Members
Posts: 48
Joined: 3-February 04
From: Edinburgh, Scotland
Member No.: 1,681



Try putting this file your lib-dynload (or anywhere in your PYTHONPATH) and rename it "zlib.so". I extracted it from the Debian arm Python 2.3 package and have tried in on the 2.4 image it imports and returns a sane __doc__ but have not tested it further.

Attached File  zlib.txt ( 20.52K ) Number of downloads: 145

remeber to rename zlib.so
Go to the top of the page
 
+Quote Post
Optogeek
post Mar 18 2005, 04:20 AM
Post #8





Group: Members
Posts: 48
Joined: 3-February 04
From: Edinburgh, Scotland
Member No.: 1,681



I have just extracted the same file from the debian 2.4 package and the zlib.so file is the same in both (the 2.3 version was compiled on one day and the 2.4 on the next).
Go to the top of the page
 
+Quote Post
mars
post Mar 18 2005, 09:17 AM
Post #9





Group: Members
Posts: 146
Joined: 5-October 04
Member No.: 4,881



Optogeek --

Using the zlib.so from the base python packge on Debian Arm worked like a charm.

Thanks! smile.gif
Go to the top of the page
 
+Quote Post
fpp
post Mar 18 2005, 12:51 PM
Post #10





Group: Members
Posts: 188
Joined: 1-February 04
Member No.: 1,647



QUOTE(Optogeek @ Mar 18 2005, 03:58 AM)
Try putting this file your lib-dynload (or anywhere in your PYTHONPATH) and rename it "zlib.so".  I extracted it from the Debian arm Python 2.3 package and have tried in on the 2.4 image it imports and returns a sane __doc__ but have not tested it further.

Thanks for your help Optogeek, that worked just fine !

(Under Cacko 1.21, though, it didn't seem to agree with the libz files present in the ROM, and complained about libz.so.1... after I installed a separate zlib ipk the python module finally imported successfully...)
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 23rd November 2014 - 06:40 AM