All of lore.kernel.org
 help / color / mirror / Atom feed
* python scripts
@ 2004-03-02 19:06 victor
  2004-03-02 21:34 ` Mark Williamson
  0 siblings, 1 reply; 4+ messages in thread
From: victor @ 2004-03-02 19:06 UTC (permalink / raw)
  To: 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.

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: python scripts
  2004-03-02 19:06 python scripts victor
@ 2004-03-02 21:34 ` Mark Williamson
  0 siblings, 0 replies; 4+ messages in thread
From: Mark Williamson @ 2004-03-02 21:34 UTC (permalink / raw)
  To: victor; +Cc: 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* python scripts
@ 2004-03-02 21:43 victor
  0 siblings, 0 replies; 4+ messages in thread
From: victor @ 2004-03-02 21:43 UTC (permalink / raw)
  To: 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: python scripts
       [not found] <74F0C74A.6000107@ambra.ro>
@ 2004-03-03 11:41 ` Mark Williamson
  0 siblings, 0 replies; 4+ messages in thread
From: Mark Williamson @ 2004-03-03 11:41 UTC (permalink / raw)
  To: victor; +Cc: 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_id\x1356&alloc_id438&op=click

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-03-03 11:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-02 19:06 python scripts victor
2004-03-02 21:34 ` Mark Williamson
  -- strict thread matches above, loose matches on Subject: below --
2004-03-02 21:43 victor
     [not found] <74F0C74A.6000107@ambra.ro>
2004-03-03 11:41 ` Mark Williamson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.