RE: [iPAQ] Adding module to python

From: Greg Berenfield <gberenfield.a.t.berenfield.com>
Date: Fri Sep 07 2001 - 22:21:08 EDT

Try copying in asyncore.py and fcntl.py into your python module area on the
ipaq (not the .pyc or .pyo versions - these are compiled modules specific
to the cpu that generated them.)

Theoretically, after you use your program once (on the ipaq), the
appropriate .pyc and .pyo versions will be created by python which will be
suitable for the ipaq (strongarm). Then you can delete the *.py lib modules
if you wish.

Hope this helps,
Greg

-----Original Message-----
From: Michael Elser [mailto:melser@student.ethz.ch]
Sent: Friday, September 07, 2001 5:13 PM
To: ipaq@handhelds.org
Subject: [iPAQ] Adding module to python

Hello

I give up. After hours of browsing the net for information, i decided to ask

the experts (thats you!):

I wrote a small python script on my desktop computer and copied it to the
ipaq. I'm using familiar 0.4 but the script wouldn't work because it imports

'asyncore' which is not installed by default. So i simply copied
'asyncore.pyc' and 'asyncore.pyo' from my desktop computer to
/usr/lib/python2.0/ on the ipaq.

This solved one problem, but created a new one: 'asyncore' imports 'fcntl'
which is not present on my ipaq either. So again i simply copy
'fcntlmodule.so' from the desktop computer to
/usr/lib/python2.0/lib-dynload/
and try to run the script again.

The execution stops with a error message like this:

ImportError: /usr/lib/python2.0/lib-dynload/fcntlmodule.so: Cannot open
shared object file: No such file or directory

The file IS there, what else could be wrong?

Thanks,

Michael Elser
_______________________________________________
iPAQ mailing list
iPAQ@handhelds.org
http://handhelds.org/mailman/listinfo/ipaq
irc://irc.openprojects.net #ipaq
Received on Fri Sep 7 18:25:24 2001

This archive was generated by hypermail 2.1.8 : Tue May 04 2004 - 09:44:10 EDT