delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/11/05/15:07:19

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Thorsten Kampe <thorsten AT thorstenkampe DOT 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 AT mail DOT gmail DOT com> <20071105161913 DOT GA3008 AT tishler DOT net>
Mime-Version: 1.0
User-Agent: MicroPlanet-Gravity/2.70.2067
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

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

- Raw text -


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