Re: [PyQt] Symbol not found: _sipQtConnect on Mac OSX 10.5

2009-03-28 Thread Damien Elmes
to occur after importing about 3 modules which import PyQt4.QtGui. Importing modules which don't use QtGui seems to work fine. On Sat, Mar 28, 2009 at 1:01 PM, Damien Elmes reso...@ichi2.net wrote: Found the bug. In the project files, you are doing CONFIG += ppc i386 as per the qmake docs

Re: [PyQt] Symbol not found: _sipQtConnect on Mac OSX 10.5

2009-03-27 Thread Damien Elmes
This seems to be a problem with building universal binaries. If I recompile sip without the -n flag to configure, the library loads correctly. Watching the compile for a -n build shows this warning ld warning: in /Users/ema/PyQt-mac-gpl-4.5-snapshot-20090326/qpy/QtCore/libqpycore.a, file is not

Re: [PyQt] Symbol not found: _sipQtConnect on Mac OSX 10.5

2009-03-27 Thread Damien Elmes
Found the bug. In the project files, you are doing CONFIG += ppc i386 as per the qmake docs, it should read CONFIG += ppc x86 This resulted in only the PPC half of the library being built, and thus missing symbols when running on an Intel. I changed configure.py in a few places to use the

Re: [PyQt] Symbol not found: _sipQtConnect on Mac OSX 10.5

2009-03-26 Thread Damien Elmes
Unfortunately in my case one of the machines I tested was a fresh install, so there should be no issue of old libraries lying around. I also tried removing the old sip libraries and installing the latest sip on the other machine, but no go. Phil, can you give me any instructions on how I can

Re: [PyQt] Symbol not found: _sipQtConnect on Mac OSX 10.5

2009-03-25 Thread Damien Elmes
I had this error on two different machines using both 10.4 and 10.5. I'm building universal binaries by passing -n to sip. Is your build environment any different? On Wed, Mar 25, 2009 at 8:08 PM, Phil Thompson p...@riverbankcomputing.com wrote: On Wed, 25 Mar 2009 10:05:39 +0100, Oliver Heyme

Re: [PyQt] How-to: Deploying PyQt applications on Windows and Mac OS X

2009-03-19 Thread Damien Elmes
The article has a number of mistakes in it. The author could have installed a mac python package and xcode and saved themselves a lot of trouble getting pyqt working. They also assert that plugins are not distributable when Qt in fact provides an API call to modify the plugin path, allowing you to

Re: [PyQt] postgresql

2009-03-18 Thread Damien Elmes
So an alternative would be to reimplement the Qsql classes using based on the Python DBAPI protocol, but maybe the cost/benefit ratio for that is too high? I'd say far to high. Qt has it own philosophy with databases, if you want snappy grids, and automatic updates and all that stuff, i'd

Re: [PyQt] postgresql

2009-03-17 Thread Damien Elmes
I used wxwidgets for a while for my app (http://ichi2.net/anki) which runs on Linux, Win32 and Mac. It was really painful. Compared to pyqt, there were many platform specific bugs I had to work around, and at the time wxwidgets' rich text widget on Mac did not even support text centering. I moved

[PyQt] default to list?

2009-03-12 Thread Damien Elmes
Hi all, Currently the list defaults to the original author when replying. What do you think about changing it to default to replying to the whole list instead? As it stands, people have to go out of their way to make their replies and advice public. Cheers, Damien

Re: Re: [PyQt] default to list?

2009-03-12 Thread Damien Elmes
:59:10 Damien Elmes wrote: Currently the list defaults to the original author when replying. What do you think about changing it to default to replying to the whole list instead?  As it stands, people have to go out of their way to make their replies and advice public. You mean mangling the reply

Re: [PyQt] Build problem : Pyqt-4.5 on mac osx Leopard

2009-03-12 Thread Damien Elmes
I posted about this less than a day ago: While I wait for the next snapshot, I have tried compiling against python2.5, and the compile proceeds. However, I did run into an issue with lucene, like mentioned in this post: http://article.gmane.org/gmane.comp.python.pyqt-pykde/12047 I had the same

Re: [PyQt] PyQt SIP Release Plans

2009-03-11 Thread Damien Elmes
Compile on OSX is failing for me. You mentioned there's no need to report bugs for Mac/Win on another thread, but the original poster there had managed to compile it, so I'm posting here just in case. g++ -c -pipe -fPIC -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -Os -Wall -W

Re: [PyQt] PyQt SIP Release Plans

2009-03-11 Thread Damien Elmes
While I wait for the next snapshot, I have tried compiling against python2.5, and the compile proceeds. However, I did run into an issue with lucene, like mentioned in this post: http://article.gmane.org/gmane.comp.python.pyqt-pykde/12047 I had the same issue compiling pyqt4.4, so I decided to

Re: [PyQt] PyQt SIP Release Plans

2009-03-10 Thread Damien Elmes
I'm finding that executing the following code in an abstracttablemodel results in a crash: self.emit(SIGNAL(dataChanged(QModelIndex, QModelIndex)), index, index) .. where index is taken from tableView.currentIndex() This code ran fine in PyQt4.4. Is it a bug in Qt/PyQt, or am I

Re: [PyQt] Programmatically changing the input method, and a missing qinputcontextfactory

2009-03-10 Thread Damien Elmes
28, 2009 at 2:48 AM, Phil Thompson p...@riverbankcomputing.com wrote: On Sat, 24 Jan 2009 17:25:18 +0900, Damien Elmes reso...@ichi2.net wrote: Hi folks, In my application (http://ichi2.net/anki/) I'd like text input fields to remember the last input method, so that if a user is inputting

[PyQt] Programmatically changing the input method, and a missing qinputcontextfactory

2009-01-24 Thread Damien Elmes
Hi folks, In my application (http://ichi2.net/anki/) I'd like text input fields to remember the last input method, so that if a user is inputting Japanese into one field and English in another, they don't have to switch between input methods every time. This works out of the box for me on Linux,