This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Python and sqlite3
- From: "Robert Latest" <boblatest at googlemail dot com>
- To: cygwin <cygwin at cygwin dot com>
- Date: Wed, 6 Aug 2008 10:12:29 +0200
- Subject: Python and sqlite3
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/