Author Topic: Datetime Module - Where Can I Get It?  (Read 7260 times)

normf

  • Newbie
  • *
  • Posts: 3
    • View Profile
Datetime Module - Where Can I Get It?
« 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.

Code: [Select]
#!/usr/bin/python
from pysqlite2 import test

test.test()

And I get these errors.

Code: [Select]
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: [Select]
python setup.py install
 I am running OZ 3.5.3 (Collie) on my SL5500.

Thanks in advance.

Norm
« Last Edit: October 26, 2005, 07:29:21 am by normf »

nilch

  • Hero Member
  • *****
  • Posts: 668
    • View Profile
    • http://
Datetime Module - Where Can I Get It?
« Reply #1 on: November 04, 2005, 12:32:11 pm »
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).
New no more-C1000 / 5000D (sold my 6000 and 750) | Cacko ROM 1.23 on C1000 | 256 MB CF | 2GB PNY SD card | Socket Networker WiFi CF Card | USB Host cable from StreamlineCPUS | Mini Microphone (for voice recording) |