Re: pysqlite 2.8.0 released

2015-08-20 Thread zzzeek
Hi Gerhard - is the download missing? On Pypi I see 2.8.0 is registered but no download file: https://pypi.python.org/pypi/pysqlite/2.8.0 pip fails: $ ./bin/pip install pysqlite==2.8.0 --upgrade --force Collecting pysqlite==2.8.0 Could not find a version that satisfies the requirement

Re: [python-sqlite] Re: pysqlite 2.8.0 released

2015-08-20 Thread Gerhard Häring
ee 2.8.0 is registered but no > download file: > > https://pypi.python.org/pypi/pysqlite/2.8.0 > > pip fails: > > $ ./bin/pip install pysqlite==2.8.0 --upgrade --force > Collecting pysqlite==2.8.0 > Could not find a version that satisfies the requirement pysqlite==2.8.

pysqlite 2.8.0 released

2015-08-18 Thread Gerhard Häring
NEW FEATURES - No new features, but tons of bugfixes. These mean that things now work that didn't before: - Transactional DDL now works - You can use SAVEPOINTs now BUILD PROCESS - Python 2.7.x is now required. If trying to use it with Python 3, print a useful error message. Integrated all

Re: windows 7 pysqlite build error

2014-10-14 Thread Robin Becker
On 13/10/2014 22:00, Terry Reedy wrote: On 10/13/2014 4:31 PM, Dennis Lee Bieber wrote: On Mon, 13 Oct 2014 10:49:27 +0100, Robin Becker declaimed the following: c:\users\rptlab\tmp\tmcallister\build\pysqlite\src\connection.h(33) : fatal error C1083: Cannot open include file: 'sqli

Re: windows 7 pysqlite build error

2014-10-13 Thread Terry Reedy
On 10/13/2014 4:31 PM, Dennis Lee Bieber wrote: On Mon, 13 Oct 2014 10:49:27 +0100, Robin Becker declaimed the following: c:\users\rptlab\tmp\tmcallister\build\pysqlite\src\connection.h(33) : fatal error C1083: Cannot open include file: 'sqli te3.h': No such file or directory

windows 7 pysqlite build error

2014-10-13 Thread Robin Becker
I am getting this error trying to use a python27 pip install of stuff which ends up requiring pysqlite>=2.6.3,<2.7 building 'pysqlite2._sqlite' extension creating build\temp.win-amd64-2.7 creating build\temp.win-amd64-2.7\Release creating build\temp.win-amd64-2.7\Release

Re: Installing pysqlite on Win64

2010-11-20 Thread Philip Semanchuk
On Nov 20, 2010, at 12:37 PM, Navid Parvini wrote: > Dear All, > > I want to install pysqlite on my Windows 64 bit machine. I have python 2.4.3 > on it. > Would you please let me know how can I do it? > > That is, I need to use the source file (i.e pysqlite-2.5.6.tar.

Installing pysqlite on Win64

2010-11-20 Thread Navid Parvini
Dear All, I want to install pysqlite on my Windows 64 bit machine. I have python 2.4.3 on it. Would you please let me know how can I do it? That is, I need to use the source file (i.e pysqlite-2.5.6.tar.gz) or there is an executable file to install. Thank you in advance. Regards, Navid

Re: Pyserial and pysqlite data types, need advice

2010-05-18 Thread jon vs. python
ite database (using Pysqlite) in order to perform off-line processing. > Thus I could use both SQL's power and Python's magic to make everything > easier. I'd like my code to be generic and work both for binary and ascii > protocols, too. > > Which kind of data should I use to

Pyserial and pysqlite data types, need advice

2010-05-17 Thread jon vs. python
Hi, I'm trying to store frames received via serial port (using Pyserial) into a sqlite database (using Pysqlite) in order to perform off-line processing. Thus I could use both SQL's power and Python's magic to make everything easier. I'd like my code to be generic and work

[ANN] pysqlite 2.6.0 released

2010-03-05 Thread Gerhard Häring
pysqlite 2.6.0 released === Release focus: Synchronize with sqlite3 module in Python trunk. pysqlite is a DB-API 2.0-compliant database interface for SQLite. SQLite is a in-process library that implements a self-contained, serverless, zero-configuration, transactional SQL

Re: How to install pysqlite?

2009-09-19 Thread Daniel Fetchinson
> I am trying to install pysqlite (Python interface to the SQLite). I > downloaded the file with the package (pysqlite-2.5.5.tar.gz). And I > did the following: > > gunzip pysqlite-2.5.5.tar.gz > tar xvf pysqlite-2.5.5.tar > cd pysqlite-2.5.5 > python setup.py install >

Re: How to install pysqlite?

2009-09-19 Thread Diez B. Roggisch
Roman Gorbunov schrieb: Hi all, I am trying to install pysqlite (Python interface to the SQLite). I downloaded the file with the package (pysqlite-2.5.5.tar.gz). And I did the following: gunzip pysqlite-2.5.5.tar.gz tar xvf pysqlite-2.5.5.tar cd pysqlite-2.5.5 python setup.py install At the

How to install pysqlite?

2009-09-19 Thread Roman Gorbunov
Hi all, I am trying to install pysqlite (Python interface to the SQLite). I downloaded the file with the package (pysqlite-2.5.5.tar.gz). And I did the following: gunzip pysqlite-2.5.5.tar.gz tar xvf pysqlite-2.5.5.tar cd pysqlite-2.5.5 python setup.py install At the last step I have a problem

Re: pysqlite throwing exception?

2009-09-05 Thread william tanksley
MRAB wrote: > I wonder whether it's complaining about the "as count" part because > "count" is the name of a function, although you do say that the same > query works elsewhere. Hey, good catch. Thanks; I'll change that. (It wasn't the problem, but no doubt someday it could be.) -Wm -- http://m

Re: pysqlite throwing exception?

2009-09-05 Thread william tanksley
william tanksley wrote: > Oh, this is Python 2.5 on Windows. New result: this works on Python 2.6. Obviously the SQLite format changed between the two runs. I'll call this "problem solved"; my app appears to run now. -Wm -- http://mail.python.org/mailman/listinfo/python-list

Re: pysqlite throwing exception?

2009-09-05 Thread MRAB
william tanksley wrote: I'm trying to modify an app I wrote a few months ago, but now it dies on startup (it worked before). The app loads the SQLite Media Monkey database, and crashes on its first query (when I try to get the number of podcasts). At the end of this post is a reduced version of t

pysqlite throwing exception?

2009-09-05 Thread william tanksley
I'm trying to modify an app I wrote a few months ago, but now it dies on startup (it worked before). The app loads the SQLite Media Monkey database, and crashes on its first query (when I try to get the number of podcasts). At the end of this post is a reduced version of the problem (which produces

Re: any complete and actual pysqlite example?

2009-04-18 Thread Philip Semanchuk
On Apr 18, 2009, at 8:59 AM, oyster wrote: I mean not a code to do seperated functions, but a real project I have read the doc of pysqlite, but since I know little about database, I found it is still very hard for me to cook a real database app from the scratch with the help of codelet in

any complete and actual pysqlite example?

2009-04-18 Thread oyster
I mean not a code to do seperated functions, but a real project I have read the doc of pysqlite, but since I know little about database, I found it is still very hard for me to cook a real database app from the scratch with the help of codelet in pysqlite doc. here is the simplified details

Re: [pysqlite] [ANN] pysqlite 2.5.2

2009-03-05 Thread Steve Holden
Edzard Pasma wrote: > Hello, > > It looks that the issue with fetch across rollback still can occur in the new > version. It turned up when I applied the Pysqlite transaction test suite to > some dbapi2 version of my own. Below is a minimal script to reproduce it. It > has pu

Re: [pysqlite] [ANN] pysqlite 2.5.2

2009-03-04 Thread Edzard Pasma
Hello, It looks that the issue with fetch across rollback still can occur in the new version. It turned up when I applied the Pysqlite transaction test suite to some dbapi2 version of my own. Below is a minimal script to reproduce it. It has puzzled me what goes wrong and I would like to

[ANN] pysqlite 2.5.2

2009-03-03 Thread Gerhard Häring
pysqlite 2.5.2 released === Release focus: minor bugfixes, minor new features. pysqlite is a DB-API 2.0-compliant database interface for SQLite. SQLite is a in-process library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine

Re: pysqlite smart search

2009-02-23 Thread klia
raw_input(prompt) > if cursor.execute('SELECT * FROM photos WHERE Tag LIKE ?',[keyword]): > print cursor.fetchall() > else: > cursor.execute('SELECT * FROM photos WHERE Date LIKE ?', [keyword]) > print cursor.fetchall() > > Any ideas and > thanks in

Re: pysqlite smart search

2009-02-23 Thread Diez B. Roggisch
klia schrieb: klia wrote: Hey guys; I am trying to develop a tiny program using python to search inside sqlite database with file extension is .db in which the program will ask users to enter their search query and base on that it will retrieve the results But I need the program to have som

Re: pysqlite smart search

2009-02-23 Thread Bret Fledderjohn
FROM photos WHERE Tag LIKE ?',[keyword]): >cursor.execute('SELECT * FROM photos WHERE Date LIKE ?', [keyword]) * indicates all fields in the selected records, so you need to change the * to the field that contains the name of the photo. For example: if cursor.execu

Re: pysqlite smart search

2009-02-23 Thread klia
gt; Reply > thank you man, it worked perfectly but one more thing; when i print rows it retrieves the whole rows of info which i don't need, i need just to retrieve the name of the photo. so how am i gonna do that? -- View this message in context: http://www.nabble.com/pysqlite-smart-

Re: pysqlite smart search

2009-02-23 Thread Gabriel Genellina
En Mon, 23 Feb 2009 06:17:41 -0200, klia escribió: I need the program to have some smartness in search mechanism in which the program will guess that the user is looking for these key words in the database. so far i came up with this but the search ain't smart, i have to write the full

pysqlite smart search

2009-02-23 Thread klia
e: cursor.execute('SELECT * FROM photos WHERE Date LIKE ?', [keyword]) print cursor.fetchall() Any ideas and thanks in advance Reply -- View this message in context: http://www.nabble.com/pysqlite-smart-search-tp22157116p22157116.html Sent from the Python - python-list mailing list ar

Re: Problems installing PySQLite, SQLite and Trac

2009-02-01 Thread Jon Clements
gt; I found out that I have two versions of python: 2.4 at /usr/bin/ > python2.4 and 2.5.2 at /usr/local/apps/python/bin/python2.5 > > My first try was to download the SQLite amalgamation, './configure', > 'make' and 'make install'. Then I downloaded the PySQL

Problems installing PySQLite, SQLite and Trac

2009-02-01 Thread kimwlias
hon2.4 and 2.5.2 at /usr/local/apps/python/bin/python2.5 My first try was to download the SQLite amalgamation, './configure', 'make' and 'make install'. Then I downloaded the PySQLite and 'python setup.py install'. The funny part is that python2.4 has sqlite

Re: pysqlite install error on hp ux (ld: Can't find library for -lpython2.5)

2008-11-12 Thread Gerhard Häring
Geon. wrote: hi everyone! when i install pysqlite i meet bellow error. ( use easy_install and source code building same problem ) ld: Can't find library for -lpython2.5 what mean this message? and what i do? my system is hp-ux 11i v3. and python2.5 is installed. ld command also aval

Re: pysqlite install error on hp ux (ld: Can't find library for -lpython2.5)

2008-11-11 Thread Geon.
On 11월11일, 오후6시10분, Thorsten Kampe <[EMAIL PROTECTED]> wrote: > * Geon. (Mon, 10 Nov 2008 18:00:56 -0800 (PST)) > > > > > > > On 11?10?, ??1?31?, ??? <[EMAIL PROTECTED]> wrote: > > > On Nov 10, 10:29 am, "Geon." <[EMAIL PROTECTED]> wrot

Re: pysqlite install error on hp ux (ld: Can't find library for -lpython2.5)

2008-11-11 Thread Thorsten Kampe
* Geon. (Mon, 10 Nov 2008 18:00:56 -0800 (PST)) > On 11?10?, ??1?31?, ??? <[EMAIL PROTECTED]> wrote: > > On Nov 10, 10:29 am, "Geon." <[EMAIL PROTECTED]> wrote: > > > when i install pysqlite i meet bellow error. ( use easy_install and > > > source

Re: pysqlite install error on hp ux (ld: Can't find library for -lpython2.5)

2008-11-10 Thread Benjamin Kaplan
On Mon, Nov 10, 2008 at 9:00 PM, Geon. <[EMAIL PROTECTED]> wrote: > > Hi, as far as I know. > > > > 1. you can use module sqlite3 instead. > > 2. you can use these commands on ubuntu: > > > > sudo apt-get install libsqlite3-dev > > sudo easy_instal

Re: pysqlite install error on hp ux (ld: Can't find library for -lpython2.5)

2008-11-10 Thread Geon.
On 11월10일, 오후1시31분, 一首诗 <[EMAIL PROTECTED]> wrote: > On Nov 10, 10:29 am, "Geon." <[EMAIL PROTECTED]> wrote: > > > hi everyone! > > > when i install pysqlite i meet bellow error. ( use easy_install and > > source code building same problem ) > &

Re: PySqlite - division of real numbers without decimal fractions

2008-11-10 Thread Astley Le Jasper
On 8 Nov, 05:39, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > On Fri, 07 Nov 2008 14:36:52 +0100, Gerhard Häring <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > > > Astley Le Jasper wrote: > > > I've been getting errors recently whe

Re: pysqlite install error on hp ux (ld: Can't find library for -lpython2.5)

2008-11-09 Thread 一首诗
On Nov 10, 10:29 am, "Geon." <[EMAIL PROTECTED]> wrote: > hi everyone! > > when i install pysqlite i meet bellow error. ( use easy_install and > source code building same problem ) > > ld: Can't find library for -lpython2.5 > > what mean this message?

Re: pysqlite install error on hp ux (ld: Can't find library for -lpython2.5)

2008-11-09 Thread Geon.
On 11월10일, 오전11시29분, "Geon." <[EMAIL PROTECTED]> wrote: > hi everyone! > > when i install pysqlite i meet bellow error. ( use easy_install and > source code building same problem ) > > ld: Can't find library for -lpython2.5 > > what mean this message?

Re: pysqlite install error on hp ux (ld: Can't find library for -lpython2.5)

2008-11-09 Thread Jeremiah Dodds
On Sun, Nov 9, 2008 at 9:29 PM, Geon. <[EMAIL PROTECTED]> wrote: > hi everyone! > > when i install pysqlite i meet bellow error. ( use easy_install and > source code building same problem ) > > ld: Can't find library for -lpython2.5 > > what mean this message?

pysqlite install error on hp ux (ld: Can't find library for -lpython2.5)

2008-11-09 Thread Geon.
hi everyone! when i install pysqlite i meet bellow error. ( use easy_install and source code building same problem ) ld: Can't find library for -lpython2.5 what mean this message? and what i do? my system is hp-ux 11i v3. and python2.5 is installed. ld command also avaliable. please hel

Re: PySqlite - division of real numbers without decimal fractions

2008-11-07 Thread Gerhard Häring
Astley Le Jasper wrote: I've been getting errors recently when using pysqlite. I've declared the table columns as real numbers to 2 decimal places (I'm dealing with money), MySQL doesn't have any MONEY type. All it has is INTEGER, REAL, TEXT, BLOB and NULL types. but

Re: PySqlite - division of real numbers without decimal fractions

2008-11-07 Thread Astley Le Jasper
On Nov 7, 6:36 am, Dan Bishop <[EMAIL PROTECTED]> wrote: > On Nov 6, 3:46 pm, Astley Le Jasper <[EMAIL PROTECTED]> wrote: > > > I've been getting errors recently when using pysqlite. I've declared > > the table columns as real numbers to 2 decimal place

Re: PySqlite - division of real numbers without decimal fractions

2008-11-06 Thread Dan Bishop
On Nov 6, 3:46 pm, Astley Le Jasper <[EMAIL PROTECTED]> wrote: > I've been getting errors recently when using pysqlite. I've declared > the table columns as real numbers to 2 decimal places (I'm dealing > with money), but when doing division on two numbers th

Re: How to build the pysqlite? Where to find the "sqlite3.h"?

2008-11-06 Thread Kurda Yon
> > > But I read your statement and understood that I do not need to install > > neither "pysqlite" no "sqlite". In my Python session I tried to type > > "from sqlite import connect" and it does not compaline. It meand that > > Python see

PySqlite - division of real numbers without decimal fractions

2008-11-06 Thread Astley Le Jasper
I've been getting errors recently when using pysqlite. I've declared the table columns as real numbers to 2 decimal places (I'm dealing with money), but when doing division on two numbers that happen to have no decimal fractions, the results through pysqlite are coming through a

Re: How to build the pysqlite? Where to find the "sqlite3.h"?

2008-11-06 Thread Thorsten Kampe
; > > If for whatever reason you need the latest SQLite module for Python > > (2.5.0), you can simply grab an rpm or build it from source and > > install it to your home directory. To build pysqlite you need the > > SQLite headers. If you can't install those to default p

Re: How to build the pysqlite? Where to find the "sqlite3.h"?

2008-11-06 Thread Thorsten Kampe
dule sqlite3. > > By the way, I think the above statement is very helpfull. I tried to > install the "pysqlite" to be able to communicate with the "sqlite", > and then I have realized that for that I need first to install the > "sqlite"... > > But I r

Re: How to build the pysqlite? Where to find the "sqlite3.h"?

2008-11-05 Thread Shawn Milochik
On Wed, Nov 5, 2008 at 8:52 PM, Kurda Yon <[EMAIL PROTECTED]> wrote: > By the where can I find a simle tutorial about the work with the > "sqlite" from the Python? > -- > http://mail.python.org/mailman/listinfo/python-list > Once you get the connection, you can pretty much just do whatever if you

Re: How to build the pysqlite? Where to find the "sqlite3.h"?

2008-11-05 Thread Kurda Yon
lpfull. I tried to install the "pysqlite" to be able to communicate with the "sqlite", and then I have realized that for that I need first to install the "sqlite"... But I read your statement and understood that I do not need to install neither "pysqlite" no

Re: How to build the pysqlite? Where to find the "sqlite3.h"?

2008-11-05 Thread Shawn Milochik
on as module > sqlite3. > > If for whatever reason you need the latest SQLite module for Python > (2.5.0), you can simply grab an rpm or build it from source and install > it to your home directory. To build pysqlite you need the SQLite > headers. If you can't install those

Re: How to build the pysqlite? Where to find the "sqlite3.h"?

2008-11-05 Thread Thorsten Kampe
and Kurda) keep on talking the wrong stuff. First: you don't need pysqlite2. SQLite support is included in the latest Python as module sqlite3. If for whatever reason you need the latest SQLite module for Python (2.5.0), you can simply grab an rpm or build it from source and install it to your

Re: How to build the pysqlite? Where to find the "sqlite3.h"?

2008-11-05 Thread Shawn Milochik
>> Thanks, but either I'm missing something or you're missing something. >> I can't do any of what you describe on the machine I want to use >> sqlite on. >> >> I have downloaded the binary sqlite3 file from sqlite's Web site, and > > The linux binary will not work. You need the headers and the > l

Re: How to build the pysqlite? Where to find the "sqlite3.h"?

2008-11-05 Thread [EMAIL PROTECTED]
On Nov 5, 10:07 pm, "Shawn Milochik" <[EMAIL PROTECTED]> wrote: > On Wed, Nov 5, 2008 at 11:58 AM, [EMAIL PROTECTED] > > > > <[EMAIL PROTECTED]> wrote: > > On Nov 5, 9:22 pm, "Shawn Milochik" <[EMAIL PROTECTED]> wrote: > >> This is all useful and interesting stuff, but I don't think any of it > >>

Re: How to build the pysqlite? Where to find the "sqlite3.h"?

2008-11-05 Thread Shawn Milochik
On Wed, Nov 5, 2008 at 11:58 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > On Nov 5, 9:22 pm, "Shawn Milochik" <[EMAIL PROTECTED]> wrote: >> This is all useful and interesting stuff, but I don't think any of it >> addresses the original poster's problem, which is that he has no root >> access

Re: How to build the pysqlite? Where to find the "sqlite3.h"?

2008-11-05 Thread [EMAIL PROTECTED]
On Nov 5, 9:22 pm, "Shawn Milochik" <[EMAIL PROTECTED]> wrote: > This is all useful and interesting stuff, but I don't think any of it > addresses the original poster's problem, which is that he has no root > access to a Linux or Unix box, and wants to get pysqlite2 working in > his home directory.

Re: How to build the pysqlite? Where to find the "sqlite3.h"?

2008-11-05 Thread Shawn Milochik
This is all useful and interesting stuff, but I don't think any of it addresses the original poster's problem, which is that he has no root access to a Linux or Unix box, and wants to get pysqlite2 working in his home directory. I have exactly the same problem. I have tried the "python setup.py ins

Re: How to build the pysqlite? Where to find the "sqlite3.h"?

2008-11-05 Thread [EMAIL PROTECTED]
      Not really (weird). Python, as of 2.5, includes the PySQLite DB-API > adapter as part of the native library/source code. BUT SQLite is NOT > part of Python (the Windows installers typically include the SQLite > engine as a convenience, but Linux installers expect the engine to >

Re: How to build the pysqlite? Where to find the "sqlite3.h"?

2008-11-04 Thread david . lyon
s David Quoting Kurda Yon <[EMAIL PROTECTED]>: On Nov 4, 8:59 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: On Nov 5, 6:47 am, Kurda Yon <[EMAIL PROTECTED]> wrote: > Hi, > I try to "build" and "install" pysqlite? After I type "pytho

Re: How to build the pysqlite? Where to find the "sqlite3.h"?

2008-11-04 Thread Kurda Yon
On Nov 4, 8:59 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Nov 5, 6:47 am, Kurda Yon <[EMAIL PROTECTED]> wrote: > > > Hi, > > > I try to "build" and "install" pysqlite? After I type "python setup.py > > build&quo

Re: How to build the pysqlite? Where to find the "sqlite3.h"?

2008-11-04 Thread [EMAIL PROTECTED]
On Nov 5, 6:47 am, Kurda Yon <[EMAIL PROTECTED]> wrote: > Hi, > > I try to "build" and "install" pysqlite? After I type "python setup.py > build" I get a lot of error messages? The first error  is "src/ > connection.h:33:21: error: sqlite

How to build the pysqlite? Where to find the "sqlite3.h"?

2008-11-04 Thread Kurda Yon
Hi, I try to "build" and "install" pysqlite? After I type "python setup.py build" I get a lot of error messages? The first error is "src/ connection.h:33:21: error: sqlite3.h: No such file or directory". So, I assume that the absence of the "sqlite3

Re: Data wont stay saved in Database using Pysqlite

2008-10-12 Thread azrael
On Oct 12, 8:26 pm, azrael <[EMAIL PROTECTED]> wrote: > I am working on an application using Python, wxPython and Sqlite > (Pysqlite) > > So my problem is that I can connect top the database. When I open a > dialog through a form I am able to make a select, even insert dat

Data wont stay saved in Database using Pysqlite

2008-10-12 Thread azrael
I am working on an application using Python, wxPython and Sqlite (Pysqlite) So my problem is that I can connect top the database. When I open a dialog through a form I am able to make a select, even insert data into the database. Even if I open again the Dialog. But as soon as I close the main

Re: Cannot install pysqlite on Cygwin

2008-09-29 Thread Tilman Kispersky
installed the sqlite packages fromcygwin(that is libsqlite3-devel > > > and libsqlite3_0).  When attempting to easy_install pysqlite I get: > > > > $ easy_install pysqlite > > > Searching for pysqlite > > > Readinghttp://pypi.python.org/simple/pysqlite/ > > &

Re: Cannot install pysqlite on Cygwin

2008-09-29 Thread Tilman Kispersky
On Sep 29, 7:49 am, Steve Holden <[EMAIL PROTECTED]> wrote: > Tilman Kispersky wrote: > > I am trying to install sqlite for use with python oncygwin. I have > > installed the sqlite packages fromcygwin(that is libsqlite3-devel > > and libsqlite3_0).  When attempting to

Re: Cannot install pysqlite on Cygwin

2008-09-29 Thread Steve Holden
Tilman Kispersky wrote: > I am trying to install sqlite for use with python on cygwin. I have > installed the sqlite packages from cygwin (that is libsqlite3-devel > and libsqlite3_0). When attempting to easy_install pysqlite I get: > > $ easy_install pysqlite > Searching for

Re: Cannot install pysqlite on Cygwin

2008-09-29 Thread Gerhard Häring
Tilman Kispersky wrote: I am trying to install sqlite for use with python on cygwin. I have installed the sqlite packages from cygwin (that is libsqlite3-devel and libsqlite3_0). When attempting to easy_install pysqlite I get: [...] build/temp.cygwin-1.5.25-i686-2.5/src/connection.o: In

Cannot install pysqlite on Cygwin

2008-09-28 Thread Tilman Kispersky
I am trying to install sqlite for use with python on cygwin. I have installed the sqlite packages from cygwin (that is libsqlite3-devel and libsqlite3_0). When attempting to easy_install pysqlite I get: $ easy_install pysqlite Searching for pysqlite Reading http://pypi.python.org/simple/pysqlite

Re: [ANN] pysqlite 2.5.0 released

2008-09-08 Thread Petite Abeille
On Sep 8, 2008, at 1:56 PM, Gerhard Häring wrote: But AFAIK it's possible to compile a custom SQLite with appropriate flags to ./configure that will include the fulltext search extension. It's indeed rather straightforward to integrate FTS, e.g.: % CFLAGS="-DSQLITE_ENABLE_FTS3=1" ./configur

Re: [ANN] pysqlite 2.5.0 released

2008-09-08 Thread Gerhard Häring
e SQLite source tree. I haven't found any Makefile, so I it myself using this gcc command: $ cd .../ext/fts3 $ gcc -shared -o ~/src/gh/pysqlite/build/lib.linux-i686-2.5/fts3.so *.c -lsqlite3 Thanks! Will fts3 be integrated in the Python 2.6 release? No (only relevant on win32, where we

Re: [ANN] pysqlite 2.5.0 released

2008-09-08 Thread Matthias Huening
I haven't found any Makefile, so I it myself using this gcc command: $ cd .../ext/fts3 $ gcc -shared -o ~/src/gh/pysqlite/build/lib.linux-i686-2.5/fts3.so *.c -lsqlite3 Thanks! Will fts3 be integrated in the Python 2.6 release? Matthias -- http://mail.python.org/mailman/listinfo/python-list

Re: [ANN] pysqlite 2.5.0 released

2008-09-08 Thread Gerhard Häring
OperationalError: Das angegebene Modul wurde nicht gefunden. Where should I look for the module? The sources are in ext/fts3 in the SQLite source tree. I haven't found any Makefile, so I it myself using this gcc command: $ cd .../ext/fts3 $ gcc -shared -o ~/src/gh/pysqlite/build/lib.linu

Re: [ANN] pysqlite 2.5.0 released

2008-09-07 Thread Matthias Huening
Hi, - - Connection.enable_load_extension(enabled) to allow/disallow extension loading. Allows you to use fulltext search extension, for example ;-) The following code (from the docs) produces an error: from pysqlite2 import dbapi2 as sqlite3 con = sqlite3.connect(":memory:") # Load the ful

[ANN] pysqlite 2.5.0 released

2008-09-05 Thread Gerhard Häring
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 pysqlite 2.5.0 released === I'm pleased to announce the availability of pysqlite 2.5.0. This is a release with major new features. Go to http://pysqlite.org/ for downloads, online documentation and reporting bugs. Wh

Re: [pysqlite] [ANN] pysqlite and APSW projects moved

2008-03-13 Thread Gerhard Häring
Colin Mcphail wrote: > On 2008-03-09 18:57:00 +, Gerhard Häring <[EMAIL PROTECTED]> said: > > Gerhard Häring wrote: >>>> [...] APSW >>>> >>>> >>>> web:http://oss.itsystementwicklung.de/trac/apsw/ >>>> scm:

Re: [pysqlite] [ANN] pysqlite and APSW projects moved

2008-03-13 Thread Colin Mcphail
On 2008-03-09 18:57:00 +, Gerhard Häring <[EMAIL PROTECTED]> said: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Gerhard Häring wrote: >> [...] APSW >> >> >> web:http://oss.itsystementwicklung.de/trac/apsw/ >> scm:Subv

Re: [pysqlite] [ANN] pysqlite and APSW projects moved

2008-03-13 Thread CMcP
In article <[EMAIL PROTECTED]>Gerhard Häring <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > Gerhard Häring wrote: >> [...] APSW >> >> >> web:http://oss.itsystementwicklung.de/trac/apsw/ >>

Re: [pysqlite] [ANN] pysqlite and APSW projects moved

2008-03-09 Thread Gerhard Häring
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gerhard Häring wrote: > [...] APSW > > > web:http://oss.itsystementwicklung.de/trac/apsw/ > scm:Subversion: http://initd.org/svn/pysqlite/apsw/trunk/ That should have been http://oss.itsystementwicklung.de/svn/apsw/apsw

[ANN] pysqlite and APSW projects moved

2008-03-09 Thread Gerhard Häring
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dear pysqlite users! I've moved both the pysqlite and APSW project to new homes. pysqlite web:http://oss.itsystementwicklung.de/trac/pysqlite aka http://pysqlite.org/ scm:pysqlite now uses a Mercurial repository

Re: pySQLite Insert speed

2008-03-04 Thread Steve Holden
mmm wrote: > Oops I did make a mistake. The code I wanted to test should have been > > import copy > print 'Test 1' > pf= '?,?,?,?' > sqlx1= 'INSERT INTO DTABLE2 VALUES ( %s ) ' % pf > print sqlx1 > > print > print 'Test 2' > sqlx2= copy.copy(sqlx1) > sqlx3= sqlx1 > pf= '?,?,?, ' > print 'sq

Re: pySQLite Insert speed

2008-03-04 Thread mmm
Oops I did make a mistake. The code I wanted to test should have been import copy print 'Test 1' pf= '?,?,?,?' sqlx1= 'INSERT INTO DTABLE2 VALUES ( %s ) ' % pf print sqlx1 print print 'Test 2' sqlx2= copy.copy(sqlx1) sqlx3= sqlx1 pf= '?,?,?, ' print 'sqlx1= ', sqlx1 print 'sqlx2= ', sqlx2 pr

Re: pySQLite Insert speed

2008-03-04 Thread Steve Holden
Peter Otten wrote: > Steve Holden wrote: > >> What I will repeat, however, is that while there is a *slight* >> difference is semantics between >> >> s = "some string" >> s1 = s >> >> and >> >> s = "some string" >> s1 = copy.copy(s) >> >> that difference is only to ensure that s and s1 point to di

Re: pySQLite Insert speed

2008-03-04 Thread Peter Otten
Steve Holden wrote: > What I will repeat, however, is that while there is a *slight* > difference is semantics between > > s = "some string" > s1 = s > > and > > s = "some string" > s1 = copy.copy(s) > > that difference is only to ensure that s and s1 point to different > copies of the same st

Re: pySQLite Insert speed

2008-03-04 Thread Steve Holden
mmm wrote: > Steve, I think you were right the first time is saying > >> it should really be this: >> sqlxb= 'INSERT INTO DTABLE2 VALUES (?, ?, ?, ?)' > > my copy.copy() has the equivalent effect. > > Running this test code produces the output below > > import copy > > print 'Test 1' > pf= '?

Re: pySQLite Insert speed

2008-03-04 Thread mmm
Steve, I think you were right the first time is saying > it should really be this: > sqlxb= 'INSERT INTO DTABLE2 VALUES (?, ?, ?, ?)' my copy.copy() has the equivalent effect. Running this test code produces the output below import copy print 'Test 1' pf= '?,?,?,?' sqlx1= 'INSERT INTO DTABLE

Re: pySQLite Insert speed

2008-03-03 Thread Steve Holden
mmm wrote: >>> Hence (if I understand python convention), this can be >>> solved by adding >>> sqlx= copy.copy(sqlx) >>> before the looping. And in tests adding this step saved about 5-10% in >>> time. >> Now this I don;t really understand at all. What's the point of trying to >> replace sqlx with

Re: pySQLite Insert speed

2008-03-03 Thread mmm
> > Hence (if I understand python convention), this can be > > solved by adding > > sqlx= copy.copy(sqlx) > > before the looping. And in tests adding this step saved about 5-10% in > > time. > > Now this I don;t really understand at all. What's the point of trying to > replace sqlx with a copy of

Re: pySQLite Insert speed

2008-03-01 Thread Diez B. Roggisch
[EMAIL PROTECTED] schrieb: > I hav read on this forum that SQL coding (A) below is preferred over > (B), but I find (B) is much faster (20-40% faster) > > (A) > > sqla= 'INSERT INTO DTABLE1 VALUES (%d, %d, %d, %f)' % values > curs.execute(sqla) > > (B) > pf= '?, ?, ?, ?' > sql

Re: pySQLite Insert speed

2008-03-01 Thread Steve Holden
[EMAIL PROTECTED] wrote: > Steve, I want to make sure I understand. My test code is below, where > ph serves as a placeholder. I am preparing for a case where the number > of ? will be driven by the length of the insert record (dx) > > dtable= 'DTABLE3' > print 'Insert data into table %s, versio

Re: pySQLite Insert speed

2008-03-01 Thread mdboldin
Steve, I want to make sure I understand. My test code is below, where ph serves as a placeholder. I am preparing for a case where the number of ? will be driven by the length of the insert record (dx) dtable= 'DTABLE3' print 'Insert data into table %s, version #3' % dtable ph= '?, ?, ?, ?' sqlx=

Re: pySQLite Insert speed

2008-02-29 Thread Tim Roberts
[EMAIL PROTECTED] wrote: > >I hav read on this forum that SQL coding (A) below is preferred over >(B), but I find (B) is much faster (20-40% faster) > >(A) > >sqla= 'INSERT INTO DTABLE1 VALUES (%d, %d, %d, %f)' % values >curs.execute(sqla) > >(B) > pf= '?, ?, ?, ?' >sqlxb= 'INSERT

Re: pySQLite Insert speed

2008-02-29 Thread Steve Holden
[EMAIL PROTECTED] wrote: >> (B) is better than (A). The parameter binding employed in (B) >> is not only faster on many databases, but more secure. > See, for example,http://informixdb.blogspot.com/2007/07/filling-in- > blanks.html > > Thx. The link was helpful, and I think I have read similar th

Re: pySQLite Insert speed

2008-02-29 Thread mdboldin
> (B) is better than (A). The parameter binding employed in (B) > is not only faster on many databases, but more secure. See, for example,http://informixdb.blogspot.com/2007/07/filling-in- blanks.html Thx. The link was helpful, and I think I have read similar things before-- that B is faster. So

Re: pySQLite Insert speed

2008-02-28 Thread Carsten Haese
On Thu, 28 Feb 2008 19:35:03 -0800 (PST), mdboldin wrote > I hav read on this forum that SQL coding (A) below is preferred over > (B), but I find (B) is much faster (20-40% faster) > > (A) > > sqla= 'INSERT INTO DTABLE1 VALUES (%d, %d, %d, %f)' % values > curs.execute(sqla) > > (B) >

pySQLite Insert speed

2008-02-28 Thread mdboldin
I hav read on this forum that SQL coding (A) below is preferred over (B), but I find (B) is much faster (20-40% faster) (A) sqla= 'INSERT INTO DTABLE1 VALUES (%d, %d, %d, %f)' % values curs.execute(sqla) (B) pf= '?, ?, ?, ?' sqlxb= 'INSERT INTO DTABLE2 VALUES ( %s ) ' % pf

Re: Pysqlite issue no attribute 'autocommit'

2008-02-05 Thread Gerhard Häring
? It's not documented to have one. To do what you intend to do with pysqlite, search its documentation for "autocommit". -- Gerhard -- http://mail.python.org/mailman/listinfo/python-list

Re: Pysqlite issue no attribute 'autocommit'

2008-02-04 Thread Paul McNett
Andy Smith wrote: > Im trying to run a Python based program which uses MySQL with > python-sqlite and Im recieving this error, > > 'Connection' object has no attribute 'autocommit' > > I´ve had a google for this and its seems like it may be a bug > python-sqlite or sqlite bug , but also

Pysqlite issue no attribute 'autocommit'

2008-02-04 Thread Andy Smith
Hi there, Im trying to run a Python based program which uses MySQL with python-sqlite and Im recieving this error, 'Connection' object has no attribute 'autocommit' I´ve had a google for this and its seems like it may be a bug python-sqlite or sqlite bug , but also I tried searching for it

Re: Pysqlite issue no attribute 'autocommit' RESOLVED

2008-02-04 Thread Andy Smith
Ok, simple fix... Updated to MySQL_python-1.2.2 and all ok now! :D - Original Message - From: Andy Smith To: python-list@python.org Sent: Monday, February 04, 2008 3:45 PM Subject: Pysqlite issue no attribute 'autocommit' Hi there, Im trying to run a Py

  1   2   3   >