X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Thorsten Kampe <thorsten@thorstenkampe.de>
Subject:  Re: 1.5.24 -2 cygwin python 2.5.1 problem, "import sqlite3" fail
Date:  Mon, 5 Nov 2007 20:06:37 -0000
Lines: 21
Message-ID: <fgnt4d$41m$2@ger.gmane.org>
References:  <677d37110711050406l571db71chd8f92bf0a4af7157@mail.gmail.com> <20071105161913.GA3008@tishler.net>
Mime-Version:  1.0
Content-Type:  text/plain; charset="utf-8"
Content-Transfer-Encoding:  7bit
User-Agent: MicroPlanet-Gravity/2.70.2067
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

* Jason Tishler (Mon, 05 Nov 2007 11:19:13 -0500)
> On Mon, Nov 05, 2007 at 08:06:40PM +0800, Vincent Huang wrote:
> > when i try to import sqlite3 in python, it results:
> >        .......
> >        File "/usr/lib/python2.5/sqlite3/dbapi2.py"
> >            from _sqlite3 import *
> >       ImportError: No module name _sqlite3
> 
> AFAICT, Python's _sqlite3 extension module is dependent on SQLite
> <http://www.sqlite.org/> which is not part of the standard Cygwin
> distribution.  This is why Cygwin Python does not contain _sqlite3.dll.

Well, but it should because it's a part of a standard Python 
installation. See "New, Improved, and Removed Modules":
"If you're compiling the Python source yourself, note that the source 
tree doesn't include the SQLite code, only the wrapper module. You'll 
need to have the SQLite libraries and headers installed before 
compiling Python, and the build process will compile the module when 
the necessary headers are available."

Thorsten


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

