OESF Portables Forum
Everything Else => Zaurus - Everything Development => Distros, Development, and Model Specific Forums => Archived Forums => Python => Topic started by: normf on October 26, 2005, 07:27:19 am
-
So...
I added the update for pysqlite2 to my Zee from the 3.5.3 Upgrades folder.
python-pysqlite2_2.0.beta1-ml1_arm.ipk
I then ran a simple script to run the tests.
#!/usr/bin/python
from pysqlite2 import test
test.test()
And I get these errors.
Traceback (most recent call last):
 File "./test2.py", line 2, in ?
  from pysqlite2 import test
 File "/home/hrw/zaurus/oe/build/353/tmp/work/python-pysqlite2-2.0.beta1-ml1/image//usr/lib/python2.4/site-packages/pysqlite2/test/__init__.py", line 25, in ?
 File "/home/hrw/zaurus/oe/build/353/tmp/work/python-pysqlite2-2.0.beta1-ml1/image//usr/lib/python2.4/site-packages/pysqlite2/test/dbapi.py", line 25, in ?
 File "/home/hrw/zaurus/oe/build/353/tmp/work/python-pysqlite2-2.0.beta1-ml1/image//usr/lib/python2.4/site-packages/pysqlite2/dbapi2.py", line 32, in ?
ImportError: No module named datetime
Seems like the datetime module that came in at 2.3 is missing from Python. Any ideas where I might get this to run on my Zee? I have checked the Cheese Shop and no sign of it there. Have also checked python.org. I can see it in the source tarball for the whole of python-2.4.2 but I wanted it in the format where I could just run
python setup.py install
I am running OZ 3.5.3 (Collie) on my SL5500.
Thanks in advance.
Norm
-
Dont know about OZ in particular, but you may install the Kopsis python which includes all common as well as additional modules.
Or if you just want datetime module, unzip (or untar) the Kopsis distribution and then copy over only the modules you want manually to the python install directory under OZ (I am not aware of the OZ directory struc).