[IPython-dev] weird error

Jörgen Stenarson jorgen.stenarson at bostream.nu
Tue Jul 14 14:13:16 EDT 2009


Have anyone had any problems using sqlite3 when running the ipython shell?

I get an import error when I import sqlite3 from the ipython shell but 
not from the regular shell, see below. Is this something anyone alse 
have seen? Any ideas on what could be wrong?

/Jörgen

c:\python>ipython
Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]
Type "copyright", "credits" or "license" for more information.

IPython 0.10.bzr.r1163 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object'. ?object also works, ?? prints more.

In [1]: import sqlite3
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)

c:\python\<ipython console> in <module>()

C:\Python25\lib\sqlite3\__init__.py in <module>()
      20 # 2. Altered source versions must be plainly marked as such, 
and must no
t be
      21 #    misrepresented as being the original software.
      22 # 3. This notice may not be removed or altered from any source 
distribut
ion.
      23
---> 24 from dbapi2 import *

C:\Python25\lib\sqlite3\dbapi2.py in <module>()
      25 import time
      26
---> 27 from _sqlite3 import *
      28
      29 paramstyle = "qmark"

ImportError: DLL load failed: Felaktig åtkomst till minnet.

In [2]:
Do you really want to exit ([y]/n)?

c:\python>python
Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit 
(Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
 >>> import sqlite3
 >>>



More information about the IPython-dev mailing list