473,749 Members | 2,394 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2634
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.pytho n:
>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.pytho n:
>>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.pytho n:

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>wro te:

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
2062
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 Gadfly, is this still maintained? Thanks, -Patrick
11
1504
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, mostly because I thought the API was not stable. Now, I have started writing a new PySQLite module, which has the following key features: - Uses iterator-style SQLite 3.x API: sqlite3_compile, sqlite3_step() etc. This way, it is possible to...
10
3690
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. Andrew dalke@dalkescientific.com
59
7215
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. I think I could possibly get what I want by launching a captive copy of postmaster with appropriate args but it seems conceptually cleaner to not have a seperate process at all. Has anyone tried to do anything like this? I've looked at sqlite...
5
3291
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 between flat files, such as appending columns from one file to another, linked through a common id. For example, take a list of addresses and append a 'district' field by looking up a congressional district from a second file that maps zip codes to...
0
976
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 trying to figure out what's available in 2.5.2 as well as what to expect in 2.6 and 3.0. Thank you, Malcolm
3
275
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 is completely independent of the sqlite build. In other words, if your sqlite build supports full text searching you can use it through the python sqlite wrapper (that is part of the stdlib) and if it doesn't then not. This is true for any sqlite...
1
328
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 (sqlite.load fts2), nor does Python. I'm on Windows XP.
20
3970
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 using a sun machine (I normally use linux machines) and place this in my lunix home account would I be able to use python and sqlite? Any thoughts? I know its a bit of a stretch ...
0
8832
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9566
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9333
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9254
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6800
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6078
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3319
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2217
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.