public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* 1.5.24 -2 cygwin python 2.5.1 problem, "import sqlite3" fail
@ 2007-11-05 12:06 Vincent Huang
  2007-11-05 14:13 ` Thorsten Kampe
  2007-11-05 16:28 ` Jason Tishler
  0 siblings, 2 replies; 22+ messages in thread
From: Vincent Huang @ 2007-11-05 12:06 UTC (permalink / raw)
  To: cygwin

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

Actually, i can't find any modules named _sqlite3 in
/usr/lib/python2.5/.  Did anyone meet this befor?
How can i do? thanks
         "find /usr/lib/python2.5/  -print | grep _sqlite3" - find nothing

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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: 1.5.24 -2 cygwin python 2.5.1 problem, "import sqlite3" fail
  2007-11-05 12:06 1.5.24 -2 cygwin python 2.5.1 problem, "import sqlite3" fail Vincent Huang
@ 2007-11-05 14:13 ` Thorsten Kampe
  2007-11-05 15:17   ` Vincent Huang
  2007-11-05 16:28 ` Jason Tishler
  1 sibling, 1 reply; 22+ messages in thread
From: Thorsten Kampe @ 2007-11-05 14:13 UTC (permalink / raw)
  To: cygwin

* Vincent Huang (Mon, 5 Nov 2007 20:06:40 +0800)
> 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
> 
> Actually, i can't find any modules named _sqlite3 in
> /usr/lib/python2.5/.  Did anyone meet this befor?
> How can i do? thanks
>          "find /usr/lib/python2.5/  -print | grep _sqlite3" - find nothing

/usr/lib/python2.5/lib-dynload/_sqlite3.dll


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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: 1.5.24 -2 cygwin python 2.5.1 problem, "import sqlite3" fail
  2007-11-05 14:13 ` Thorsten Kampe
@ 2007-11-05 15:17   ` Vincent Huang
  2007-11-05 16:21     ` Thorsten Kampe
  0 siblings, 1 reply; 22+ messages in thread
From: Vincent Huang @ 2007-11-05 15:17 UTC (permalink / raw)
  To: cygwin

thans to get your reply, but i can't found the _sqlite3.dll in the
/usr/lib/python2.5/lib-dynload/.  This is the packet list from:
http://cygwin.com/packages/python/python-2.5.1-2

    Fri May 18 21:02:55 2007          10752
usr/lib/python2.5/lib-dynload/_random.dll
    Fri May 18 21:02:55 2007          49664
usr/lib/python2.5/lib-dynload/_socket.dll
    Fri May 18 21:02:55 2007          13824
usr/lib/python2.5/lib-dynload/_ssl.dll
    Fri May 18 21:02:55 2007          21504
usr/lib/python2.5/lib-dynload/_struct.dll
    Fri May 18 21:02:55 2007          19968
usr/lib/python2.5/lib-dynload/_testcapi.dll
    Fri May 18 21:02:55 2007          36864
usr/lib/python2.5/lib-dynload/_tkinter.dll
    Fri May 18 21:02:55 2007           6144
usr/lib/python2.5/lib-dynload/_weakref.dll


On 11/5/07, Thorsten Kampe <thorsten@thorstenkampe.de> wrote:
> * Vincent Huang (Mon, 5 Nov 2007 20:06:40 +0800)
> > 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
> >
> > Actually, i can't find any modules named _sqlite3 in
> > /usr/lib/python2.5/.  Did anyone meet this befor?
> > How can i do? thanks
> >          "find /usr/lib/python2.5/  -print | grep _sqlite3" - find nothing
>
> /usr/lib/python2.5/lib-dynload/_sqlite3.dll
>
>
> --
> 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/

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: 1.5.24 -2 cygwin python 2.5.1 problem, "import sqlite3" fail
  2007-11-05 15:17   ` Vincent Huang
@ 2007-11-05 16:21     ` Thorsten Kampe
  2007-11-05 16:28       ` Dave Korn
  0 siblings, 1 reply; 22+ messages in thread
From: Thorsten Kampe @ 2007-11-05 16:21 UTC (permalink / raw)
  To: cygwin

* Vincent Huang (Mon, 5 Nov 2007 23:17:41 +0800)
> thans to get your reply, but i can't found the _sqlite3.dll in the
> /usr/lib/python2.5/lib-dynload/.  This is the packet list from:
> http://cygwin.com/packages/python/python-2.5.1-2

% cygcheck -f /usr/lib/python2.5/lib-dynload/_sqlite3.dll
python-2.5.1-3


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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: 1.5.24 -2 cygwin python 2.5.1 problem, "import sqlite3" fail
  2007-11-05 12:06 1.5.24 -2 cygwin python 2.5.1 problem, "import sqlite3" fail Vincent Huang
  2007-11-05 14:13 ` Thorsten Kampe
@ 2007-11-05 16:28 ` Jason Tishler
  2007-11-05 20:07   ` Thorsten Kampe
  1 sibling, 1 reply; 22+ messages in thread
From: Jason Tishler @ 2007-11-05 16:28 UTC (permalink / raw)
  To: cygwin

Vincent,

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.

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/

^ permalink raw reply	[flat|nested] 22+ messages in thread

* RE: 1.5.24 -2 cygwin python 2.5.1 problem, "import sqlite3" fail
  2007-11-05 16:21     ` Thorsten Kampe
@ 2007-11-05 16:28       ` Dave Korn
  2007-11-05 16:44         ` Brian Dessent
  0 siblings, 1 reply; 22+ messages in thread
From: Dave Korn @ 2007-11-05 16:28 UTC (permalink / raw)
  To: cygwin

On 05 November 2007 16:21, Thorsten Kampe wrote:

> * Vincent Huang (Mon, 5 Nov 2007 23:17:41 +0800)
>> thans to get your reply, but i can't found the _sqlite3.dll in the
>> /usr/lib/python2.5/lib-dynload/.  This is the packet list from:
>> http://cygwin.com/packages/python/python-2.5.1-2
> 
> % cygcheck -f /usr/lib/python2.5/lib-dynload/_sqlite3.dll
> python-2.5.1-3

  N'existe-pas!

http://cygwin.com/packages/python/python-2.5.1-3
The requested URL /packages/python/python-2.5.1-3 was not found on this server.



    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: 1.5.24 -2 cygwin python 2.5.1 problem, "import sqlite3" fail
  2007-11-05 16:28       ` Dave Korn
@ 2007-11-05 16:44         ` Brian Dessent
  2007-11-05 19:22           ` Thorsten Kampe
  0 siblings, 1 reply; 22+ messages in thread
From: Brian Dessent @ 2007-11-05 16:44 UTC (permalink / raw)
  To: cygwin

Dave Korn wrote:

> > % cygcheck -f /usr/lib/python2.5/lib-dynload/_sqlite3.dll
> > python-2.5.1-3
> 
>   N'existe-pas!
> 
> http://cygwin.com/packages/python/python-2.5.1-3
> The requested URL /packages/python/python-2.5.1-3 was not found on this server.

Translation: He's using the python package from a third party (Cygwin
ports), which obviously doesn't do any good in the context of this
mailing list since it's off-topic, other than to say "you could try
using Cygwin ports", except that's not what he said, in which case it's
a pretty useless reply.

Brian

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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: 1.5.24 -2 cygwin python 2.5.1 problem, "import sqlite3" fail
  2007-11-05 16:44         ` Brian Dessent
@ 2007-11-05 19:22           ` Thorsten Kampe
  0 siblings, 0 replies; 22+ messages in thread
From: Thorsten Kampe @ 2007-11-05 19:22 UTC (permalink / raw)
  To: cygwin

* Brian Dessent (Mon, 05 Nov 2007 08:44:46 -0800)
> Dave Korn wrote:
> > > % cygcheck -f /usr/lib/python2.5/lib-dynload/_sqlite3.dll
> > > python-2.5.1-3
> > 
> >   N'existe-pas!
> > 
> > http://cygwin.com/packages/python/python-2.5.1-3
> > The requested URL /packages/python/python-2.5.1-3 was not found on this server.
> 
> Translation: He's using the python package from a third party (Cygwin
> ports), which obviously doesn't do any good in the context of this
> mailing list since it's off-topic, other than to say "you could try
> using Cygwin ports", except that's not what he said, in which case it's
> a pretty useless reply.

Actually, I forgot that Cygwin Ports forcefully installs a new Python.


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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: 1.5.24 -2 cygwin python 2.5.1 problem, "import sqlite3" fail
  2007-11-05 16:28 ` Jason Tishler
@ 2007-11-05 20:07   ` Thorsten Kampe
  2007-11-05 21:16     ` Jason Tishler
  0 siblings, 1 reply; 22+ messages in thread
From: Thorsten Kampe @ 2007-11-05 20:07 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: 1.5.24 -2 cygwin python 2.5.1 problem, "import sqlite3" fail
  2007-11-05 20:07   ` Thorsten Kampe
@ 2007-11-05 21:16     ` Jason Tishler
  2007-11-05 21:39       ` Thorsten Kampe
  2007-11-07  9:10       ` Max Bowsher
  0 siblings, 2 replies; 22+ messages in thread
From: Jason Tishler @ 2007-11-05 21:16 UTC (permalink / raw)
  To: cygwin

On Mon, Nov 05, 2007 at 08:06:37PM -0000, Thorsten Kampe wrote:
> * Jason Tishler (Mon, 05 Nov 2007 11:19:13 -0500)
> > [snip]
> > 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."

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.

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/

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: 1.5.24 -2 cygwin python 2.5.1 problem, "import sqlite3" fail
  2007-11-05 21:16     ` Jason Tishler
@ 2007-11-05 21:39       ` Thorsten Kampe
  2007-11-05 21:51         ` Brian Dessent
  2007-11-07  9:10       ` Max Bowsher
  1 sibling, 1 reply; 22+ messages in thread
From: Thorsten Kampe @ 2007-11-05 21:39 UTC (permalink / raw)
  To: cygwin

* Jason Tishler (Mon, 05 Nov 2007 16:16:17 -0500)
> On Mon, Nov 05, 2007 at 08:06:37PM -0000, Thorsten Kampe wrote:
> > * Jason Tishler (Mon, 05 Nov 2007 11:19:13 -0500)
> > > [snip]
> > > 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."
> 
> 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.

ftp://sunsite.dk/projects/cygwinports/release/sqlite3/ ?


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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: 1.5.24 -2 cygwin python 2.5.1 problem, "import sqlite3" fail
  2007-11-05 21:39       ` Thorsten Kampe
@ 2007-11-05 21:51         ` Brian Dessent
  2007-11-05 22:53           ` Thorsten Kampe
  0 siblings, 1 reply; 22+ messages in thread
From: Brian Dessent @ 2007-11-05 21:51 UTC (permalink / raw)
  To: cygwin

Thorsten Kampe wrote:

> ftp://sunsite.dk/projects/cygwinports/release/sqlite3/ ?

There are zillions of things that are in Cygwin Ports that aren't in
Cygwin.  What's that got to do with anything?  It's irrelevant, until
Yaakov or someone else contributes and maintains it for Cygwin proper.

Brian

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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: 1.5.24 -2 cygwin python 2.5.1 problem, "import sqlite3" fail
  2007-11-05 21:51         ` Brian Dessent
@ 2007-11-05 22:53           ` Thorsten Kampe
  2007-11-05 23:08             ` Brian Dessent
  0 siblings, 1 reply; 22+ messages in thread
From: Thorsten Kampe @ 2007-11-05 22:53 UTC (permalink / raw)
  To: cygwin

* Brian Dessent (Mon, 05 Nov 2007 13:51:46 -0800)
> Thorsten Kampe wrote:
> > ftp://sunsite.dk/projects/cygwinports/release/sqlite3/ ?
> 
> There are zillions of things that are in Cygwin Ports that aren't in
> Cygwin.  What's that got to do with anything?  It's irrelevant, until
> Yaakov or someone else contributes and maintains it for Cygwin proper.

As far as I understood Jason, he just needs the SQLite headers and 
libraries to /build/ Python with SQLite support, and he doesn't need 
them to be "in Cygwin".

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/

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: 1.5.24 -2 cygwin python 2.5.1 problem, "import sqlite3" fail
  2007-11-05 22:53           ` Thorsten Kampe
@ 2007-11-05 23:08             ` Brian Dessent
  2007-11-05 23:44               ` Thorsten Kampe
  2007-11-05 23:47               ` Christopher Faylor
  0 siblings, 2 replies; 22+ messages in thread
From: Brian Dessent @ 2007-11-05 23:08 UTC (permalink / raw)
  To: cygwin

Thorsten Kampe wrote:

> As far as I understood Jason, he just needs the SQLite headers and
> libraries to /build/ Python with SQLite support, and he doesn't need
> them to be "in Cygwin".

That would be silly, because it would result in a totally broken python
that would continue to throw ImportError on "import sqlite3" because the
user would have no cygsqlite3-0.dll on their system, with no way to get
it unless they installed third party packages that aren't part of
Cygwin.  Besides, requiring packages not in the distro in order to build
a package is not kosher.  The distro must be self-consistent.

Brian

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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: 1.5.24 -2 cygwin python 2.5.1 problem, "import sqlite3" fail
  2007-11-05 23:08             ` Brian Dessent
@ 2007-11-05 23:44               ` Thorsten Kampe
  2007-11-05 23:47                 ` Christopher Faylor
  2007-11-05 23:47               ` Christopher Faylor
  1 sibling, 1 reply; 22+ messages in thread
From: Thorsten Kampe @ 2007-11-05 23:44 UTC (permalink / raw)
  To: cygwin

* Brian Dessent (Mon, 05 Nov 2007 15:07:57 -0800)
> Thorsten Kampe wrote:
> > As far as I understood Jason, he just needs the SQLite headers and
> > libraries to /build/ Python with SQLite support, and he doesn't need
> > them to be "in Cygwin".
> 
> That would be silly, because it would result in a totally broken python
> that would continue to throw ImportError on "import sqlite3" because the
> user would have no cygsqlite3-0.dll on their system, with no way to get
> it unless they installed third party packages that aren't part of
> Cygwin.

If the Windows Python installation comes with more-or-less third party 
sqlite3.dll, then Cygwin Python coming with a third party cygsqlite3-
0.dll (from Cygwin Ports) would be fine - at least with me...

Anyway: no one ever noticed the lack of SQLite for quite some time and 
the other ones probably found workarounds...

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/

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: 1.5.24 -2 cygwin python 2.5.1 problem, "import sqlite3" fail
  2007-11-05 23:44               ` Thorsten Kampe
@ 2007-11-05 23:47                 ` Christopher Faylor
  0 siblings, 0 replies; 22+ messages in thread
From: Christopher Faylor @ 2007-11-05 23:47 UTC (permalink / raw)
  To: cygwin

On Mon, Nov 05, 2007 at 11:44:27PM -0000, Thorsten Kampe wrote:
>* Brian Dessent (Mon, 05 Nov 2007 15:07:57 -0800)
>> Thorsten Kampe wrote:
>> > As far as I understood Jason, he just needs the SQLite headers and
>> > libraries to /build/ Python with SQLite support, and he doesn't need
>> > them to be "in Cygwin".
>> 
>> That would be silly, because it would result in a totally broken python
>> that would continue to throw ImportError on "import sqlite3" because the
>> user would have no cygsqlite3-0.dll on their system, with no way to get
>> it unless they installed third party packages that aren't part of
>> Cygwin.
>
>If the Windows Python installation comes with more-or-less third party 
>sqlite3.dll, then Cygwin Python coming with a third party cygsqlite3-
>0.dll (from Cygwin Ports) would be fine - at least with me...
>
>Anyway: no one ever noticed the lack of SQLite for quite some time and 
>the other ones probably found workarounds...

Thorsten:  You can stop digging now.  The hole is deep enough.

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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: 1.5.24 -2 cygwin python 2.5.1 problem, "import sqlite3" fail
  2007-11-05 23:08             ` Brian Dessent
  2007-11-05 23:44               ` Thorsten Kampe
@ 2007-11-05 23:47               ` Christopher Faylor
  1 sibling, 0 replies; 22+ messages in thread
From: Christopher Faylor @ 2007-11-05 23:47 UTC (permalink / raw)
  To: cygwin

On Mon, Nov 05, 2007 at 03:07:57PM -0800, Brian Dessent wrote:
>Thorsten Kampe wrote:
>>As far as I understood Jason, he just needs the SQLite headers and
>>libraries to /build/ Python with SQLite support, and he doesn't need
>>them to be "in Cygwin".
>
>That would be silly, because it would result in a totally broken python
>that would continue to throw ImportError on "import sqlite3" because
>the user would have no cygsqlite3-0.dll on their system, with no way to
>get it unless they installed third party packages that aren't part of
>Cygwin.  Besides, requiring packages not in the distro in order to
>build a package is not kosher.  The distro must be self-consistent.

Yes.  What he said.  Jason understands what it means to add this support.
Thorsten does not.  Unless someone wants to support SQLite3 (which would
be a welcome addition to Cygwin), I think this thread has gone on for
about six messages longer than it should have.

cgf

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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: 1.5.24 -2 cygwin python 2.5.1 problem, "import sqlite3" fail
  2007-11-05 21:16     ` Jason Tishler
  2007-11-05 21:39       ` Thorsten Kampe
@ 2007-11-07  9:10       ` Max Bowsher
  2007-11-08 19:29         ` Jason Tishler
  1 sibling, 1 reply; 22+ messages in thread
From: Max Bowsher @ 2007-11-07  9:10 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 1172 bytes --]

Jason Tishler wrote:
> On Mon, Nov 05, 2007 at 08:06:37PM -0000, Thorsten Kampe wrote:
>> * Jason Tishler (Mon, 05 Nov 2007 11:19:13 -0500)
>>> [snip]
>>> 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."
> 
> 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.

Max.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 186 bytes --]

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: 1.5.24 -2 cygwin python 2.5.1 problem, "import sqlite3" fail
  2007-11-07  9:10       ` Max Bowsher
@ 2007-11-08 19:29         ` Jason Tishler
  2007-11-09  8:57           ` Vincent Huang
  2008-07-13  9:20           ` 1.5.24 -2 cygwin python 2.5.1 problem, Chris
  0 siblings, 2 replies; 22+ messages in thread
From: Jason Tishler @ 2007-11-08 19:29 UTC (permalink / raw)
  To: cygwin

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/

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: 1.5.24 -2 cygwin python 2.5.1 problem, "import sqlite3" fail
  2007-11-08 19:29         ` Jason Tishler
@ 2007-11-09  8:57           ` Vincent Huang
  2007-11-09 16:02             ` Thorsten Kampe
  2008-07-13  9:20           ` 1.5.24 -2 cygwin python 2.5.1 problem, Chris
  1 sibling, 1 reply; 22+ messages in thread
From: Vincent Huang @ 2007-11-09  8:57 UTC (permalink / raw)
  To: cygwin

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@tishler.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/

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: 1.5.24 -2 cygwin python 2.5.1 problem, "import sqlite3" fail
  2007-11-09  8:57           ` Vincent Huang
@ 2007-11-09 16:02             ` Thorsten Kampe
  0 siblings, 0 replies; 22+ messages in thread
From: Thorsten Kampe @ 2007-11-09 16:02 UTC (permalink / raw)
  To: cygwin

* Vincent Huang (Fri, 9 Nov 2007 15:27:31 +0800)
> 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.

Man, you're certainly one of the bravest men I've ever met in this 
mailing list...

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/

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: 1.5.24 -2 cygwin python 2.5.1 problem,
  2007-11-08 19:29         ` Jason Tishler
  2007-11-09  8:57           ` Vincent Huang
@ 2008-07-13  9:20           ` Chris
  1 sibling, 0 replies; 22+ messages in thread
From: Chris @ 2008-07-13  9:20 UTC (permalink / raw)
  To: cygwin

Jason Tishler <jason <at> tishler.net> writes:
...
> Unfortunately, Cygwin Python SQLite support does not build OOTB:
...
>   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'

This particular error appears to come from a bug in Python's setup.py:
http://bugs.python.org/issue1706863














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

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2008-07-13  9:20 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-05 12:06 1.5.24 -2 cygwin python 2.5.1 problem, "import sqlite3" fail Vincent Huang
2007-11-05 14:13 ` Thorsten Kampe
2007-11-05 15:17   ` Vincent Huang
2007-11-05 16:21     ` Thorsten Kampe
2007-11-05 16:28       ` Dave Korn
2007-11-05 16:44         ` Brian Dessent
2007-11-05 19:22           ` Thorsten Kampe
2007-11-05 16:28 ` Jason Tishler
2007-11-05 20:07   ` Thorsten Kampe
2007-11-05 21:16     ` Jason Tishler
2007-11-05 21:39       ` Thorsten Kampe
2007-11-05 21:51         ` Brian Dessent
2007-11-05 22:53           ` Thorsten Kampe
2007-11-05 23:08             ` Brian Dessent
2007-11-05 23:44               ` Thorsten Kampe
2007-11-05 23:47                 ` Christopher Faylor
2007-11-05 23:47               ` Christopher Faylor
2007-11-07  9:10       ` Max Bowsher
2007-11-08 19:29         ` Jason Tishler
2007-11-09  8:57           ` Vincent Huang
2007-11-09 16:02             ` Thorsten Kampe
2008-07-13  9:20           ` 1.5.24 -2 cygwin python 2.5.1 problem, Chris

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).