Python and sqlite3

Robert Latest boblatest@googlemail.com
Wed Aug 6 08:13:00 GMT 2008


Hello people,

I'm having problems using sqlite with Python in my cygwin
installation. The line "import sqlite3" throws the error:

$ python
Python 2.5.1 (r251:54863, May 18 2007, 16:56:43)
[GCC 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sqlite3
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/tmp/python.6884/usr/lib/python2.5/sqlite3/__init__.py", line
24, in <module>
  File "/tmp/python.6884/usr/lib/python2.5/sqlite3/dbapi2.py", line
27, in <module>
ImportError: No module named _sqlite3
>>>

Now I know how to use Google, and I used it, and I found that there
already were threads about this problem. However, from those threads I
couldn't gather anything that would help me solve this problem.

Maybe someone could tell me what's this all about. Where can I get the
_sqlite3 module?

sqlite3 itself is, of course, installed. I can use sqlite3.exe to
access databases, it just doesn't seem to work with python.

Thanks,
robert

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list