[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyQt] Trouble getting started with QtSql
From:       Bryan Beutler <bryanbeutler () yahoo ! com>
Date:       2008-11-24 5:08:14
Message-ID: 101776.72532.qm () web53706 ! mail ! re2 ! yahoo ! com
[Download RAW message or body]

Hello,

I am new to python and PyQt.  I installed the windows binary PyQt-Py2.5-gpl-4.4.3-1.  \
I have python 2.5 installed.  I have been working my way through the pyqt book with \
good success until now.  I want to continue learning from the book with the SQLite \
examples.   This is what I am getting:


PythonWin 2.5.2 (r252:60911, Mar 27 2008, 17:57:18) [MSC v.1310 32 bit (Intel)] on \
win32. Portions Copyright 1994-2006 Mark Hammond - see 'Help/About PythonWin' for \
further copyright information.
> > > from PyQt4.QtSql import *
> > > QSqlDatabase.isDriverAvailable("QSQLITE")
False
> > > li = QSqlDatabase.drivers()
> > > li
<PyQt4.QtCore.QStringList object at 0x00D084B0>
> > > li.isEmpty()
True
> > > 


My folder C:\Python25\Lib\site-packages\PyQt4\src\plugins\sqldrivers\sqlite
contains these 3 files:  README, smain.cpp, sqlite.pro

Am I missing something simple or do I have no drivers at all installed?


      
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic