On Thu, Mar 17, 2005 at 06:52:03AM +0800, cross wind wrote:
> On my other computer I tried installing
> pysqlite-2.0.alpha2.win32-py2.3.exe and rerun my test script, it also
> failed on the same error. However, when I changed the import line to:
> 
> import pysqlite2.dbapi2 as sqlite
> 
> The test script worked. However the following scripts in
> \Python23\Lib\site-packages\pysqlite2\test failed to run:
> 
> dbapi.py
> types.py
> 
> I have the ff result:
> 
> M:/Python23/pythonw.exe -u 
> "M:/Python23/Lib/site-packages/pysqlite2/test/dbapi.py"
> 'import site' failed; use -v for traceback
> Traceback (most recent call last):
>   File "M:/Python23/Lib/site-packages/pysqlite2/test/dbapi.py", line 25, in ?
>     import pysqlite2.dbapi2 as sqlite
> ImportError: No module named pysqlite2.dbapi2
> 
> Why oh why?

Not much time, my girlfriend is sending me to bed :-P

But try this instead:

C:\tmp>c:\Python23\python.exe
Python 2.3.5 (#62, Feb  8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from pysqlite2 import test
>>> test.test()
...................................................
----------------------------------------------------------------------
Ran 51 tests in 0.031s

-- Gerhard

Attachment: signature.asc
Description: Digital signature

Reply via email to