delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/08/06/04:13:28

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <f68d89470808060112v76ef9cben366ac82c604f70df@mail.gmail.com>
Date: Wed, 6 Aug 2008 10:12:29 +0200
From: "Robert Latest" <boblatest AT googlemail DOT com>
To: cygwin <cygwin AT cygwin DOT com>
Subject: Python and sqlite3
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019