Re: [PyQt] sip: __or__() unsupported function return type - provide %MethodCode and a C++ signature

2012-04-28 Thread Nico Dufort
Hey Daniel, I will quote Brian's response to the problem. I had that same error (building on linux) back in December, but this did the trick. I believe the change was mentioned to be available in a perhaps future snapshot. Edit PyQt-*-4.9.1/sip/QtNetwork/qssl.sip > You need to edit the bottom o

Re: [PyQt] [SOLVED] sip: __or__() unsupported function return type - provide %MethodCode and a C++ signature ( QT 4.8.1 + PyQt 4.9.1 )

2012-04-28 Thread Nico Dufort
Thanks Brian, I just tried it and that took care of the problem I had since December. Successfully built and installed. Cheers, nico On Thu, Apr 26, 2012 at 11:08 AM, Brian Kelley wrote: > Phil is putting out a new snapshot, but here are the details: > > this bug is encountered when Qt is bui

Re: [PyQt] Cannot 'configure' PyQt4.9 before build on Linuxmint

2012-04-28 Thread Nico Dufort
I just wanted to bring some closure to my old thread in case someone browses the archive: Following Brian's suggestion of editing PyQt-*-4.9.1/sip/QtNetwork/qssl.sip as explained in the following thread solved the configuration problem I had since December. I had given up then since nothing seeme

Re: [PyQt] Disturbing evidence of garbage collection error

2012-04-28 Thread Erik Janssens
and are you sure the query is being garbage collected, and not something else ? I've noticed in the past that the garbage collector often kicks in right after a query or so. Probably because of some time that has passed or something like that. On Sat, 2012-04-28 at 12:14 +0100, Andrew Suffield

Re: [PyQt] Disturbing evidence of garbage collection error

2012-04-28 Thread Adrian Buehlmann
On 2012-04-27 13:53, Andrew Suffield wrote: > query = QtSql.QSqlQuery() > if not query.prepare('select %s from %s where %s' % > (','.join(field_names), table, self.key_expr(table))): > > I get 'RuntimeError: underlying C/C++ object has been deleted' on the > second line, with low

Re: [PyQt] Disturbing evidence of garbage collection error

2012-04-28 Thread Andrew Suffield
On Sat, Apr 28, 2012 at 01:05:37PM +0200, Erik Janssens wrote: > which version of PyQt are you using ? > > When in older versions (I think something like 2 releases ago), > the garbage collection kicks in in a thread and it deletes > a QObject from another thread, this object was deleted > immedia

Re: [PyQt] Disturbing evidence of garbage collection error

2012-04-28 Thread Erik Janssens
which version of PyQt are you using ? When in older versions (I think something like 2 releases ago), the garbage collection kicks in in a thread and it deletes a QObject from another thread, this object was deleted immediately, while in recent versions those are deleted later on in the event loo

Re: [PyQt] pyqtSlot, getting "undefined" return values when called from qml javascript

2012-04-28 Thread Ville M. Vainio
On Sat, Apr 28, 2012 at 1:10 AM, Andrew Suffield wrote: >> I have a qml file invoking methods on a QObject subclass. I have used >> @pyqtSlot decorator to expose the methods as slots. >> >> I can see that the methods are run; however, the return values seem to >> be discarded. > > Qt slots don't