python scripts
I installed sqlite-2.8.12.tar.gz and pysqlite-0.5.0.tar.gz.
When I execute xc_vd_tool.py the error is NameError: global name 'sqlite' is not defined.
Thank you.
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
Strange. It sounds like there's a problem with pysqlite (e.g. Python couldn't find the pysqlite module). We supress the ImportError this would produce (the code is near the top of XenoUtil.py if you're interested), so a function trying to access the module would be the first error you get (which matches with what you saw).
It's probably worth trying to reinstall pysqlite-0.5.0.tar.gz, looking carefully for any errors.
If that doesn't work, please try:
ls -l /usr/lib/python2.2/site-packages/*sqlite*
(if your python stuff is in a different directory, e.g. /usr/lib/python2.x (where x is some other version), please substitute as appropriate).
Also, you could try typing the following at the prompt:
python # to start the python shell
import sqlite # try to import pysqlite
sqlite.connect('/tmp/wibble') # try to use pysqlitePost back any errors you get. If there's anything unusual about your Python / SQLite / PySQLite configuration, please let us know.
We should have you up and running soon!
Mark
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click