Help - Search - Members - Calendar
Full Version: Datetime Module - Where Can I Get It?
OESF Forums > Distros, Development, and Model Specific Forums > Everything Development > Python

I added the update for pysqlite2 to my Zee from the 3.5.3 Upgrades folder.


I then ran a simple script to run the tests.

from pysqlite2 import test


And I get these errors.

Traceback (most recent call last):
 File "./", 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/", 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/", 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/", 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 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 install

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

Thanks in advance.

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-2015 Invision Power Services, Inc.