[IPython-dev] weird error

Jörgen Stenarson jorgen.stenarson@bostream...
Tue Jul 14 13:30:56 CDT 2009


Ville M. Vainio skrev:
> On Tue, Jul 14, 2009 at 9:13 PM, Jörgen
> Stenarson<jorgen.stenarson@bostream.nu> wrote:
> 
>> 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?
> 
> Possibly you have different PATH in your ipython session. Check your %env.
> 
> Works fine here.
> 

My PATH was the same in both cases. Just importing IPython before 
sqlite3 causes the problem but only on python2.5 not on 2.6, see below.
What version did you test?

The errormessage is a memory access violation.

/Jörgen


C:\Python26>python
Python 2.6 (r26:66721, Oct  2 2008, 11:35:03) [MSC v.1500 32 bit 
(Intel)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
 >>> import IPython
 >>> import sqlite3
 >>>

C:\Python26>cd ..

C:\>cd Python25

C:\Python25>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 IPython
 >>> import sqlite3
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "C:\Python25\lib\sqlite3\__init__.py", line 24, in <module>
     from dbapi2 import *
   File "C:\Python25\lib\sqlite3\dbapi2.py", line 27, in <module>
     from _sqlite3 import *
ImportError: DLL load failed: Felaktig åtkomst till minnet.
 >>>

C:\Python25>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