Hi there
I'm trying py2exe to build an .exe for windows XP, from a PyQt4 with
database (mysql) access.
After follow all steps, resolve problems by googling, i end with a exe that
works, but when i run a module that
connects with mysql, i get the error:
Driver not loaded Driver not loaded
Hi there,
I've downloaded the latest pyqt for python 2.5 (PyQt-Py2.5-gpl-4.4.3-1.exe)
The notes says that this binary package has support for MySql:
Qt (with database support for MySQL, PostgreSQL, SQLite3 and ODBC)
But my program do not connect using QMYSQL or QMYSQL3 drivers (with
QODBC3
2009/11/26, Phil Thompson p...@riverbankcomputing.com:
On Thu, 26 Nov 2009 10:59:21 -0300, Mario Daniel Carugno
carug...@gmail.com wrote:
Hi there,
I've downloaded the latest pyqt for python 2.5
(PyQt-Py2.5-gpl-4.4.3-1.exe)
The notes says that this binary package has support for MySql
I've installed Python2.6 and PyQt-Py2.6
Running the same program that works with PyQt-Py2.5, now using QMYSQL
driver, I've got the following error:
connection 'qt_sql_default_connection' is still in use, all queries
will cease to work
Any idea ?
PD: Sorry Phil, it was that gmail's replying
Thanks for replies. First i'd like to make sure if that''s the normal
behavior or not. Can you confirm please ?
** To David **
Here you get the error string after execution!
Sorry, the order of the lines is:
errorstr = str(query.lastError().text())
query.exec_()
But the problem is there.
2009/9/5 Andreas Pakulat ap...@gmx.de:
On 04.09.09 17:23:32, Mario Daniel Carugno wrote:
Hi list, i'm coding my first PyQt4-Sql application, and i can't
understand a strange behavior.
I'll write a snippet of code with an erroneous Sql syntax, and i hope
then to catch the error
text
Hi list, i'm coding my first PyQt4-Sql application, and i can't
understand a strange behavior.
I'll write a snippet of code with an erroneous Sql syntax, and i hope
then to catch the error
text and display it, in order to know what happened:
query = QSqlQuery()
query.prepare(insert inta table
2009/8/18 Mario Daniel Carugno carug...@gmail.com:
Hi, i've installed PyQt4 (Py2.5-gpl4.4.3-1.exe) on Windows.
That release has sql support, and i use the ODBC driver. I know it
works since i use this same release in another Windows machines.
But in this particular computer, when i run
Hi, i've installed PyQt4 (Py2.5-gpl4.4.3-1.exe) on Windows.
That release has sql support, and i use the ODBC driver. I know it
works since i use this same release in another Windows machines.
But in this particular computer, when i run the same code that works
in the others, i get the following
I guess Eric is a complex application, and Python is not the best option to
write applications to run fast (Eric is written in Python as you probably know).
I don't like Eric for that reason. Use kate or a better editor, VIM ;-)
Good luck
===
Mario D Carugno
===
Hello, i was trying to run a pyqt application on windows. It works,
but when i close it, the following error appears:
The instruction at 0x018f9098 references memory at 0x00a8c448.
The memory can't be read
The message could be not exact in english since i'm translating it from spanish.
I've
Hi there, i have a little problem with my PyQt development. It uses MySQL.
Under Linux, everything is fine.
Under Windows... the first query it tries gives an error like this:
# using unsupported buffer type: 253
I'm using the latest pyqt binary for windows with Python 2.6 and Mysql 5.0.
Could
Hi list, i have a little problem here.
I setup a QTableWidget with editable items. When i press ENTER or
doubleclick on an item,
it becomes editable. After edit, when i press ENTER again, editing ends.
I need to trap that last event. I need to do something when user press
ENTER after editing,
to
Hi there
I'm starting with a pyqt development, a database application (what original).
I can't decide which datatypes and sql library to use. I mean, is it
better to use
python datatypes (str, int, bool) or qt4 datatypes (qstring, ...) ?
If i use python datatypes, using pyqt4-sql to access data
Hi there, i'm developing a mysql based application and pyqt.
The qt version is 4.3 or higher
On linux, there is no problem. I have the compiled mysql driver.
Now, if i want to run it on windows, i know that i can compile qt with
mysql support.
But i don't want to compile the qt lib on windows. I
Hi there
I'm doing a dialog with a sql data form and it's OK/Cancel buttons.
The data is managed with model/mapper
I connect the button's cancel.clicked() signal to a method that
reverts changes, quits editing mode,
and do more things like enabling some widgets back. Call that method 'rollback'.
I'm isolating my problem with mapper.
When i setup a mapper, the ESC key reverts changes in the edited widgets.
That's ok, but i need to trap that situation. I need to do more than
revert changes
when i press ESC.
For instance, before going into editing mode i disable some buttons.
When i press
Hi, given this code:
...
child = Form()
app = Framework(child)
...
Ok, Form is a grid of data, and Framework includes it with addWidget.
class Framework:
def __init__(self, child):
...
self.layout.addWidget(child)
Now, can i reference a Framework's widget from a Form's instance
Hi, i'm trying eric4 and seems too buggy.
Now i configure options, but every time i start Eric, configuration is
lost and i get the dialog:
eric4 has not been configured yet. The configuration dialog will be started
I tried with version 4.1 from debian testing, but also i've downloaded
the last
Hi, i'm developing a pyqt application and need to decide if i'll use
pyqt's database support or
mysqldb.
The point is that the application must be abel to run in Linux and
Windows, and connect to
mysql.
In linux, no problems. But in windows the odbc plugin don't works with
mysql. I know i can
2009/3/13, Andreas Pakulat ap...@gmx.de:
I want that it could be as simple as derivating the 'data' class
from the 'main window' class. I've read that derivating a widget
from another one, makes that widget to appear inside it's parent,
right ?
No thats wrong. Deriving one class from
Hi, i'm using pytq4 + designer4.
I want to design a generic main window with common buttons (next,
previous, new, edit, ...)
with a central area for data. That central area could be a frame.
But i want to design widgets to fill that frame independently. One
widget for products, other for
customers
2009/3/11 Andreas Pakulat ap...@gmx.de:
On 11.03.09 16:55:11, Mario Daniel Carugno wrote:
Hi, i'm using pytq4 + designer4.
I want to design a generic main window with common buttons (next,
previous, new, edit, ...)
with a central area for data. That central area could be a frame.
In QT3
Hi there, i'm developing an application under Linux, where i can use
the mysql driver.
But if i want that app to run in Windows too, there PyQt do not have
(compiled) that driver but the ODBC.
So, if i'd write only simple SQL queries, not using specific db
functions, could that app run in linux
Hi, i'm new in this list and new to pyqt too.
I'm trying to develop my first gui application, and have some questions.
I hope to make the correct questions. Please tell me if i'm going wrong.
Well, i want to develop a tipical bussiness app, and think to divide all in
modules.
A module for
Hi, i've installed pyqt4 + python2.5 in windows, and wrote a small script to
test ODBC access to
a MySQL table. The script is:
from PyQt4 import QtSql
import sys
db = QtSql.QSqlDatabase.addDatabase(QODBC)
db.setDatabaseName(dnsMySQL)
db.setHostName(localhost)
db.setUserName(myuser)
I've downloaded the pyqt4 binary package for windows, and comes with
sql drivers for odbc and sqlite3.
I need the mysql driver. Can it be installed easy or do i have to
compile qt libs ?
How can i get it ?
Thank you
___
PyQt mailing list
Hi, i have a problem with printers.
When i run QPrinter.setup() no printers are listed in the dialog.
But with KDE printer dialogs, they are there.
I use it in Debian Etch, but even worse, in another machine with
Debian Etch, QPrinter.setup() shows the printers !
Do i have to install or
Hi, i was looking for a pyqt3 for windows binary package, and i found it.
I've installed and works. I can run my pyqt3 programs developed in linux.
But in the windows version seems to have no database drivers.
I need the QMYSQL3 or at least QODBC3 for the windows version.
So, how can i get them ?
Hi, now i know that with eric4 i must use the 'Generate Dialog Code'
instead of subclassing.
I use this and check the option to generate a function for a 'button
clicked' event, and then i put some print inside of that function to
see if it works, but nothing happen when i click the button.
Why
Hi there, i'm trying eric3 with designer-qt4.
I develop some dialog with designer, and compile it from eric3, but i
can't subclass it.
The option is grayed, why ?
Thank you
___
PyQt mailing listPyQt@riverbankcomputing.com
Hi there, mi name is Mario and i'm starting with pyqt3.
Until now everything was quite easy en clear, but i'm with a problem i
can't solve.
I use designer to draw an interface with a DataTable. I make the
connection and works fine in the designer's preview. I can see table's
data.
But when i run
32 matches
Mail list logo