Re: [iPAQ] Adding module to python

From: Edward Muller <edwardam.a.t.cc234543-a>
Date: Sat Sep 08 2001 - 11:45:43 EDT

If you've only got a .o then your python build isn't done and/or hasn't been
built with shared modules. IIRC the default is to build python statically.

Did you check the Setup file in Modules and make sure that fcntl is included
and that it's configured to build shared modules.

BTW: I would have been able to give you this file until about a week ago when
I removed my python build from the skiffs due to lack of space. :-( Oh well.

On Saturday 08 September 2001 06:44, Michael Elser wrote:
> Thanks for your help.
>
> > Hello Michael,
> >
> > Re-compile 'fcntlmodule.so' on the skiffcluster:
>
> Ok, i tried that. I downloaded the source of Python 2.0 to one of the
> skiffs and compiled the whole package. This produced a 'fcntlmodule.o' in
> the 'Modules' directory. What now? I guess renaming the module from '.o' to
> '.so' won't do the trick.
>
> Thanks again for your help
>
> > http://handhelds.org/projects/skiffcluster.html
> >
> > --George
> >
> > On Friday 07 September 2001 17:13, Michael Elser wrote:
> > > 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
>
> _______________________________________________
> iPAQ mailing list
> iPAQ@handhelds.org
> http://handhelds.org/mailman/listinfo/ipaq
> irc://irc.openprojects.net #ipaq

--
Edward Muller - edwardam@home.com - edwardam@handhelds.org
'It's because crappy programs offend me.' --Eric Raymond
-------------------------------------------------------
-- 
Edward Muller - edwardam@home.com - edwardam@handhelds.org
'It's because crappy programs offend me.' --Eric Raymond
Received on Sat Sep 8 06:46:11 2001

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