delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/11/09/02:27:53

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <677d37110711082327u4c0aa8b4s1d99039bc017c0ef@mail.gmail.com>
Date: Fri, 9 Nov 2007 15:27:31 +0800
From: "Vincent Huang" <vincent DOT hwz AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: 1.5.24 -2 cygwin python 2.5.1 problem, "import sqlite3" fail
In-Reply-To: <20071108150955.GA3736@tishler.net>
MIME-Version: 1.0
References: <677d37110711050406l571db71chd8f92bf0a4af7157 AT mail DOT gmail DOT com> <20071105161913 DOT GA3008 AT tishler DOT net> <fgnt4d$41m$2 AT ger DOT gmane DOT org> <20071105211617 DOT GA2964 AT tishler DOT net> <47316110 DOT 3060309 AT ukf DOT net> <20071108150955 DOT GA3736 AT tishler DOT net>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

Something about python sqlite3:

    sqlite3 is a embeded database engine, it doesn't need server to
support database service. since sqlite3 is just some kind of lib for
all kinds of object develop lanage,  so i don't think for python to
support sqlite3 need to install sqlite3 packet.
   in fact, the sqlite3 packet in cygwin can be divied 3 category:
   1) a cmd line tool to inspect sqlite3 file
   2) a C libary file
   3) a .H head file for C;

   For other language (include python) to support sqlite, only  its
header file(if have), libary file too need to be included.  it doesn't
count on sqlite3 packet.

   in Python 2.5 and afterwards, sqlite3 is a standard module, it must
be supported. so i think even without sqlite3 packet, python should
support sqlite3.


On 11/8/07, Jason Tishler <jason AT tishler DOT net> wrote:
> On Wed, Nov 07, 2007 at 06:54:08AM +0000, Max Bowsher wrote:
> > Jason Tishler wrote:
> > > [snip]
> > >
> > > Understood, but as I indicated above, SQLite is not part of the
> > > standard Cygwin distribution.  If someone contributes SQLite, then I
> > > will release Cygwin Python with SQLite support enabled.
> >
> > Sorry about that, I've had SQLite sitting in an ITPed, GTGed, and
> > forgotten-about state for a long time.
> >
> > Now uploaded.
>
> Unfortunately, Cygwin Python SQLite support does not build OOTB:
>
> sqlite: found /usr/include/sqlite3.h
> /usr/include/sqlite3.h: version 3.5.1
> Traceback (most recent call last):
>  File "./setup.py", line 1525, in <module>
>    main()
>  File "./setup.py", line 1520, in main
>    'Lib/smtpd.py']
>  File "/tmp/python-2.5.1-3/Lib/distutils/core.py", line 151, in setup
>    dist.run_commands()
>  File "/tmp/python-2.5.1-3/Lib/distutils/dist.py", line 974, in run_commands
>    self.run_command(cmd)
>  File "/tmp/python-2.5.1-3/Lib/distutils/dist.py", line 994, in run_command
>    cmd_obj.run()
>  File "/tmp/python-2.5.1-3/Lib/distutils/command/build.py", line 112, in run
>    self.run_command(cmd_name)
>  File "/tmp/python-2.5.1-3/Lib/distutils/cmd.py", line 333, in run_command
>    self.distribution.run_command(command)
>  File "/tmp/python-2.5.1-3/Lib/distutils/dist.py", line 994, in run_command
>    cmd_obj.run()
>  File "/tmp/python-2.5.1-3/Lib/distutils/command/build_ext.py", line 290, in run
>    self.build_extensions()
>  File "./setup.py", line 97, in build_extensions
>    self.detect_modules()
>  File "./setup.py", line 795, in detect_modules
>    sqlite_libdir = [os.path.abspath(os.path.dirname(sqlite_libfile))]
>  File "/tmp/python-2.5.1-3/Lib/posixpath.py", line 119, in dirname
>    return split(p)[0]
>  File "/tmp/python-2.5.1-3/Lib/posixpath.py", line 77, in split
>    i = p.rfind('/') + 1
> AttributeError: 'NoneType' object has no attribute 'rfind'
>
> Jason
>
> --
> PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
> Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6
>
> --
> 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/
>
>

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