X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Message-ID: From: "Tim Hoel" To: Subject: python package missing _sqlite3.dll in /usr/lib/python2.5/sqlite3 Date: Thu, 20 Nov 2008 11:20:52 -0600 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook Express 6.00.2900.5512 Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Using cygwin setup, I installed python (2.5.1) and sqlite3 (3.6.2-1). Each of these work great on cygwin separately, and now I wanted to write a python program that used sqlite3. But when I did "import sqlite3", I got the following error: ImportError: No module named _sqlite3 I have been able to work around the problem by downloading the sources for pysqlite (2.5.0) from pysqlite.org and building it myself. (Note that the python2.5/sqlite3 package is built from pysqlite source.) Using cygwin setup again, I installed sqlite3 src (3.6.2-1-src), and tried to build pysqlite. I did run into one build problem because this version of sqlite3 does not have an entry for sqlite3_enable_load_extension(). I worked around this problem by turning off HAVE_LOAD_EXTENSION in connection.c. Tim Hoel -- 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/