X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Thorsten Kampe 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: References: <677d37110711050406l571db71chd8f92bf0a4af7157 AT mail DOT gmail DOT com> <20071105161913 DOT GA3008 AT tishler DOT 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 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 * 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 > 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/