delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/11/20/13:53:45

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <4925B1F1.505@etr-usa.com>
Date: Thu, 20 Nov 2008 11:52:33 -0700
From: Warren Young <warren AT etr-usa DOT com>
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
To: Cygwin-L <cygwin AT cygwin DOT com>
Subject: Re: python package missing _sqlite3.dll in /usr/lib/python2.5/sqlite3
References: <A99BD4979815478BB0FBAC447502DC0D AT aji>
In-Reply-To: <A99BD4979815478BB0FBAC447502DC0D@aji>
X-IsSubscribed: yes
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

Tim Hoel wrote:
> But when I did "import sqlite3", I 
> got the following error:
> 
>    ImportError:  No module named _sqlite3

I thought this was fixed 2 months ago:

	http://cygwin.com/ml/cygwin/2008-08/msg00156.html

Cygwin's Python currently links to SQLite statically, but from that 
thread, this doesn't seem to be a problem.

If it turns out that you really do need a dynamic library to make 
pysqlite happy, that's probably something the Cygwin Python maintainer, 
Jason Tishler, needs to take care of.  My SQLite packages for Cygwin 
include both static and dynamic libraries, it's just that Cygwin's 
Python doesn't know how to build against the dynamic ones yet.

It'd be best if Python and SQLite can remain separate, with Python 
modules building against the standard SQLite package files.  I'd hate to 
see a separate distribution of SQLite included with Python.  There's not 
enough maintainer bandwidth to go around even without wasting it on 
duplicate packaging like that.

> 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'll see about enabling that in the next build of the SQLite packages. 
It might not be possible, as it might use dlopen(), rather than 
LoadLibrary().

--
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