out of my league certainly, but you might want to:

* ask the question on a pysqlite list (cause it's clearly not a trac problem) * check you've got sqlite (db) installed (seems mad if you could install a pysqlite port without having sqlite as a dependency but you never know)
* try reinstalling/recompiling pysqlite (or upgrading or something)

good luck

Tim


Dorian Mcfarland wrote:
I get:
-bash-2.05b$ python python-sqlite-test.py pysqlite2 failure /usr/local/lib/python2.4/site-packages/pysqlite2/_sqlite.so: Undefined symbol "PyGILState_Ensure"

so I guess something in my sqlite.so is bailing and thus isn't loading the module properly.

does that look like a standard dependency?

Tim Diggins wrote:
well, the issue is you're not getting the problem when sqlite2/sqlite is being imported but when the name sqlite is being accessed.

I'd try making a basic python script with just the correct shebang line and the following:

try:
   import pysqlite2.dbapi2 as sqlite
   print "pysqlite2 success"
except ImportError, e:
   print "pysqlite2 failure", e
   try:
      import sqlite
      print "sqlite success"
   except ImportError, e:
      print "sqlite failure", e


and then when you execute it (hopefully) you'll get some kind of import failure which will be printed out. Maybe you've got a bad install of one of the bindings, or maybe you have the bindings but not sqlite itself?



_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac

Reply via email to