delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/11/20/12:21:41

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <A99BD4979815478BB0FBAC447502DC0D@aji>
From: "Tim Hoel" <thoel AT visi DOT com>
To: <cygwin AT cygwin DOT com>
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
X-Mailer: Microsoft Outlook Express 6.00.2900.5512
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

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/

- Raw text -


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