Help - Search - Members - Calendar
Full Version: Datetime Module - Where Can I Get It?
OESF Forums > Distros, Development, and Model Specific Forums > Everything Development > Python
normf
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.

CODE
#!/usr/bin/python
from pysqlite2 import test

test.test()


And I get these errors.

CODE
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

CODE
python setup.py install


I am running OZ 3.5.3 (Collie) on my SL5500.

Thanks in advance.

Norm
nilch
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).
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.