473,320 Members | 1,600 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Re: Does Python 2.5.2's embedded SQLite support full text searching?

On Apr 21, 2008, at 1:05 PM, Daniel Fetchinson wrote:
Sqlite itself is not distributed with python. Only a python db api
compliant wrapper is part of the python stdlib and as such it is
completely independent of the sqlite build.
Don't most binary distributions include SQLite itself? I installed
2.5.2 on a new WinXP VM, and SQLite is working fine.

-- Ed Leafe

Jun 27 '08 #1
9 2558
Ed Leafe wrote:
>Sqlite itself is not distributed with python. Only a python db api
compliant wrapper is part of the python stdlib and as such it is
completely independent of the sqlite build.

Don't most binary distributions include SQLite itself? I installed
2.5.2 on a new WinXP VM, and SQLite is working fine.
So did I. I installed py2.5.2 on windows and didn't install SQLite, and I'm
using the module sqlitedb without problems.
--
Let us make a special effort to stop communicating with each other, so
we can have some conversation.
_ _ _
| \| |___ _ __ ___ __(_)___
| .` / -_) ' \/ -_|_-< (_-<
|_|\_\___|_|_|_\___/__/_/__/ http://xpn.altervista.org

Jun 27 '08 #2
Sqlite itself is not distributed with python. Only a python db api
compliant wrapper is part of the python stdlib and as such it is
completely independent of the sqlite build.
Don't most binary distributions include SQLite itself? I installed
2.5.2 on a new WinXP VM, and SQLite is working fine.

So did I. I installed py2.5.2 on windows and didn't install SQLite, and I'm
using the module sqlitedb without problems.
On linux this is not the case (i.e. on linux one has to install sqlite
itself separately) and I assumed on windows you have to install sqlite
separately too. My apologies for the misinformation.

Cheers,
Daniel
Jun 27 '08 #3
While reading feedback to my post "Does Python 2.5.2's embedded SQLite
support full text searching?" I noticed that there appears to be some
confusion regarding whether Python 2.5 includes the SQLite engine.

My Windows 2.5.2 binary download includes SQLite.

But other posters claim otherwise, re: Linux releases of Python 2.5?

I thought one of the major features of Python 2.5 was its embedded
SQLite engine.

Thoughts?

Malcolm
Jun 27 '08 #4
Dennis Lee Bieber schrieb:
On Mon, 21 Apr 2008 19:05:46 -0400, py****@bdurham.com declaimed the
following in comp.lang.python:
>I thought one of the major features of Python 2.5 was its embedded
SQLite engine.
No, just the inclusion of the adapter became standard... The
packagers of Windows installers include the SQLite3 DLL as it isn't a
commonly available item... But many Linux versions probably include it
as an option during the OS install.
AFAIK thats wrong. On my ubuntu gutsy for example, I find this:

deets@absinth:~$ find /usr/lib/python2.5/ | grep -i sqlite
/usr/lib/python2.5/lib-dynload/_sqlite3.so
/usr/lib/python2.5/site-packages/pysqlite-2.3.2.egg-info
/usr/lib/python2.5/site-packages/pysqlite2
/usr/lib/python2.5/site-packages/pysqlite2/__init__.py
/usr/lib/python2.5/site-packages/pysqlite2/__init__.pyc
/usr/lib/python2.5/site-packages/pysqlite2/_sqlite.so
/usr/lib/python2.5/site-packages/pysqlite2/dbapi2.py
/usr/lib/python2.5/site-packages/pysqlite2/dbapi2.pyc
/usr/lib/python2.5/sqlite3
/usr/lib/python2.5/sqlite3/__init__.py

....
As you can see, stock 2.5 ships with its OWN version of sqlite, and I
additionally installed the pysqlite-wrapper for whatever reason I now
can't remember.

Diez
Jun 27 '08 #5
py****@bdurham.com schrieb:
While reading feedback to my post "Does Python 2.5.2's embedded SQLite
support full text searching?" I noticed that there appears to be some
confusion regarding whether Python 2.5 includes the SQLite engine.

My Windows 2.5.2 binary download includes SQLite.

But other posters claim otherwise, re: Linux releases of Python 2.5?

I thought one of the major features of Python 2.5 was its embedded
SQLite engine.

Thoughts?
It is embedded. Period. You can install the pysqlite wrapper
additionally, if you need a newer/differen sqlite version. It will be
available as a different module, though.

Diez
Jun 27 '08 #6
Hi,

Diez B. Roggisch wrote:
Dennis Lee Bieber schrieb:
>On Mon, 21 Apr 2008 19:05:46 -0400, py****@bdurham.com declaimed the
following in comp.lang.python:
>>I thought one of the major features of Python 2.5 was its embedded
SQLite engine.
No, just the inclusion of the adapter became standard... The
packagers of Windows installers include the SQLite3 DLL as it isn't a
commonly available item... But many Linux versions probably include it
as an option during the OS install.


AFAIK thats wrong. On my ubuntu gutsy for example, I find this:

deets@absinth:~$ find /usr/lib/python2.5/ | grep -i sqlite
/usr/lib/python2.5/lib-dynload/_sqlite3.so
/usr/lib/python2.5/site-packages/pysqlite-2.3.2.egg-info
/usr/lib/python2.5/site-packages/pysqlite2
/usr/lib/python2.5/site-packages/pysqlite2/__init__.py
/usr/lib/python2.5/site-packages/pysqlite2/__init__.pyc
/usr/lib/python2.5/site-packages/pysqlite2/_sqlite.so
/usr/lib/python2.5/site-packages/pysqlite2/dbapi2.py
/usr/lib/python2.5/site-packages/pysqlite2/dbapi2.pyc
/usr/lib/python2.5/sqlite3
/usr/lib/python2.5/sqlite3/__init__.py

...
As you can see, stock 2.5 ships with its OWN version of sqlite, and I
additionally installed the pysqlite-wrapper for whatever reason I now
can't remember.
The _sqlite3.so is only a wrapper around the real sqlite library.
Compiling a fresh Python 2.5.2 install here gives:

15:46|paul@tabu:~/py25/lib/python2.5/lib-dynloadldd _sqlite3.so
linux-gate.so.1 = (0x00748000)
libsqlite3.so.0 =/usr/lib/libsqlite3.so.0 (0x00111000)
libpthread.so.0 =/lib/libpthread.so.0 (0x00631000)
libc.so.6 =/lib/libc.so.6 (0x00d1b000)
/lib/ld-linux.so.2 (0x00749000)

I.e. the _sqlite3 module links against the system-wide installed Sqlite
version.

Furthermore, checking the Python source distribution will show that
there is no included version of the whole Sqlite library, only the
wrapper code. How your Linux distribution packages Python w.r.t. the
sqlite3 module is different per distro.

Regards,
Paul
Jun 27 '08 #7
Paul Melis schrieb:
Hi,

Diez B. Roggisch wrote:
>Dennis Lee Bieber schrieb:
>>On Mon, 21 Apr 2008 19:05:46 -0400, py****@bdurham.com declaimed the
following in comp.lang.python:

I thought one of the major features of Python 2.5 was its embedded
SQLite engine.

No, just the inclusion of the adapter became standard... The
packagers of Windows installers include the SQLite3 DLL as it isn't a
commonly available item... But many Linux versions probably include it
as an option during the OS install.


AFAIK thats wrong. On my ubuntu gutsy for example, I find this:

deets@absinth:~$ find /usr/lib/python2.5/ | grep -i sqlite
/usr/lib/python2.5/lib-dynload/_sqlite3.so
/usr/lib/python2.5/site-packages/pysqlite-2.3.2.egg-info
/usr/lib/python2.5/site-packages/pysqlite2
/usr/lib/python2.5/site-packages/pysqlite2/__init__.py
/usr/lib/python2.5/site-packages/pysqlite2/__init__.pyc
/usr/lib/python2.5/site-packages/pysqlite2/_sqlite.so
/usr/lib/python2.5/site-packages/pysqlite2/dbapi2.py
/usr/lib/python2.5/site-packages/pysqlite2/dbapi2.pyc
/usr/lib/python2.5/sqlite3
/usr/lib/python2.5/sqlite3/__init__.py

...
As you can see, stock 2.5 ships with its OWN version of sqlite, and I
additionally installed the pysqlite-wrapper for whatever reason I now
can't remember.

The _sqlite3.so is only a wrapper around the real sqlite library.
Compiling a fresh Python 2.5.2 install here gives:

15:46|paul@tabu:~/py25/lib/python2.5/lib-dynloadldd _sqlite3.so
linux-gate.so.1 = (0x00748000)
libsqlite3.so.0 =/usr/lib/libsqlite3.so.0 (0x00111000)
libpthread.so.0 =/lib/libpthread.so.0 (0x00631000)
libc.so.6 =/lib/libc.so.6 (0x00d1b000)
/lib/ld-linux.so.2 (0x00749000)

I.e. the _sqlite3 module links against the system-wide installed Sqlite
version.

Furthermore, checking the Python source distribution will show that
there is no included version of the whole Sqlite library, only the
wrapper code. How your Linux distribution packages Python w.r.t. the
sqlite3 module is different per distro.
Hm. Before posting, I checked this:

http://svn.python.org/view/external/...ource-3.5.7.x/

So I got the impression that because the source is there (I admit *not*
checking the python source distribution itself though) and a library is
in the python-lib, that python ships with sqlite.

So - I stand corrected. Given the way some linux distros treat python
wrt to e.g. distutils, I wonder if there is one out there that does
*not* have sqlite built-in.

Diez
Jun 27 '08 #8
While reading feedback to my post "Does Python 2.5.2's embedded SQLite
support full text searching?" I noticed that there appears to be some
confusion regarding whether Python 2.5 includes the SQLite engine.

My Windows 2.5.2 binary download includes SQLite.

But other posters claim otherwise, re: Linux releases of Python 2.5?

I thought one of the major features of Python 2.5 was its embedded
SQLite engine.

Thoughts?

It is embedded. Period.

Would you back that up, please? I mean with something else than "on my
distro I see something vaguely resembling an sqlite shared object".
The shared object lib-dynload/_sqlite3.so on most linux distros is
*not* sqlite only the wrapper.

This doesn't exclude the possibility of other python distros
distributing sqlite itself, for example on windows this seems to be
the case.

You can install the pysqlite wrapper
additionally, if you need a newer/differen sqlite version. It will be
available as a different module, though.
Jun 27 '08 #9
Whether a Python installation includes the SQLite 3 bindings typically
depends on:

1. Python version: core support for the SQLite 3 bindings (i.e. the
"sqlite3" module) was added in Python 2.5. Earlier versions of Python
may also have a 3rd-party package/module that adds SQLite bindings, of
course.

2. The Python distro: The binary Python 2.5 installers from python.org
(for Windows and Mac OS X [^1]) and ActiveState, i.e. ActivePython, (for
Windows, Mac OS X, Linux, Solaris, HP-UX and AIX) include the "sqlite3"
module as part of the installer. I don't know about other Python
distributions.

3. Platform: Commonly on Linux one will get Python from the Linux
distro's own packaging utility (e.g., apt-get, rpm, synaptic, yum, etc.)
Typically the Linux distros will break up a Python installation into
multiple packages. So an installation of, say, the "python2.5" package
will often not have the "sqlite3" module. To get it you would have to
install the separate "python2.5-sqlite" package. (Note: the names of
these packages vary with Linux distro and version of that distro.)

Cheers,
Trent

[1]: I could be wrong about whether the Mac OS X binary installer for
Python 2.5 from python.org includes the "sqlite3" module -- I haven't
checked -- but I presume it does.
Banibrata Dutta wrote:
Doesn't this depend on the source / distro ? My Python is from the
ActivePython distro, while I am not sure (since I've just about started
playing with it), I haven't seen SQLite included ... possible that I
missed it.

On 4/22/08, *p*****@bdurham.com <mailto:py****@bdurham.com>*
<py****@bdurham.com <mailto:py****@bdurham.com>wrote:

While reading feedback to my post "Does Python 2.5.2's embedded SQLite
support full text searching?" I noticed that there appears to be some
confusion regarding whether Python 2.5 includes the SQLite engine.

My Windows 2.5.2 binary download includes SQLite.

But other posters claim otherwise, re: Linux releases of Python 2.5?

I thought one of the major features of Python 2.5 was its embedded
SQLite engine.

Thoughts?

--
Trent Mick
trentm at activestate.com
Jun 27 '08 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Patrick Useldinger | last post by:
Hello, for a cross-platform project, I am looking for a Python DB. It should be lightweight, but provide transactions an of course reliable. Is there such a thing out there? I have read about...
11
by: Gerhard Haering | last post by:
Last December, we had a short thread discussing (in python-dev) the integration of PySQLite into Python 2.4. At the time, I was against inclusion, because I thought PySQLite was not ripe for it,...
10
by: Andrew Dalke | last post by:
Is there an author index for the new version of the Python cookbook? As a contributor I got my comp version delivered today and my ego wanted some gratification. I couldn't find my entries. ...
59
by: Jeff Bowden | last post by:
For ease of configuration and other reasons, I would like for my single-user GUI app to be able to use postgresql in-process as a library accessing a database created in the users home directory. ...
5
by: felciano | last post by:
Hello -- Is there a convention, library or Pythonic idiom for performing lightweight relational operations on flatfiles? I frequently find myself writing code to do simple SQL-like operations...
0
by: python | last post by:
Does Python 2.5.2's embedded SQLite support full text searching? Any recommendations on a source where one can find out which SQLite features are enabled/disabled in each release of Python? I'm...
3
by: Daniel Fetchinson | last post by:
Does Python 2.5.2's embedded SQLite support full text searching? Sqlite itself is not distributed with python. Only a python db api compliant wrapper is part of the python stdlib and as such it...
1
by: Guillermo | last post by:
Hi! Is it possible to load the full-text search module for the SQLite version bundled with Python 2.5? I've tested it and the stand-alone SQLite distribution doesn't seem to include it...
20
by: timotoole | last post by:
Hi all, On a (sun) webserver that I use, there is python 2.5.1 installed. I'd like to use sqlite3 with this, however sqlite3 is not installed on the webserver. If I were able to compile sqlite...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.