SQLite import fails sometimes ?

Stef Mientki stef.mientki at gmail.com
Sat May 24 06:00:01 EDT 2008


hello,

The import statement "import sqlite3" gives the error given below.
In simple programs, the import statement (sometimes) succeed,
and I can indeed access the database.
So I guess there is some conflict with another part of my program,
but as the program is rather large (and dynamic) it's not easy to 
isolate the problem.
Does anyone has a clue how to trace this kind of problem ?

thanks,
Stef

Traceback (most recent call last):
  File "bricks\brick.py", line 322, in Exec
    self.Generate_Output_Signals ()
  File "bricks\brick_dBase.py", line 61, in Generate_Output_Signals
    import sqlite3
  File "P:\Python\lib\sqlite3\__init__.py", line 24, in <module>
    from dbapi2 import *
  File "P:\Python\lib\sqlite3\dbapi2.py", line 27, in <module>
    from _sqlite3 import *
ImportError: DLL load failed: Invalid access to memory location.



More information about the Python-list mailing list