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 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
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 pysqlite Post 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 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
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. I think the scipt did not included sqlite. It worked after I included in /usr/lib/python2.3/... ------------------------------------------------------- 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 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
I''m assuming you added sqlite to the list of imports at the top of the file, so that it now reads: import string, re, os, sys, sqlite I wouldn''t expect that to help, since sqlite is imported anyway during the "module initialisation" section of the file. Perhaps your Python was somehow confused before! If that change worked, I''d expect it to work unmodified too. If you get time, it''d be handy if you could try changing it back to the original file contents and see if it works now - if it doesn''t work then your system may have shown up a bug. Good that it''s working! Cheers, 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_id56&alloc_id438&op=click _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel