[PyQt] PyKDE3 compilation under Karmic fails
Hi, I was wondering if anyone might be able to offer some insight regarding PyKDE3 and SIP. When I try to build PyKDE under Ubuntu Karmic, the build fails, claiming it can't find SIP. At the beginning of the compilation, it is detected properly: cd build-2.5 && python2.5 ../configure.py \ -c -u -k /opt/kde3 -o /opt/kde3/include/kde -n /opt/kde3/lib \ -v /opt/kde3/share/sip/kde3 -j 4 PyKDE version 3.16.6 --- Python include directory is /usr/include/python2.5 Python version is 2.5.4 sip version is 4.9.1-snapshot-20091015 (4.9.1) Qt directory is /usr/share/qt3 Qt version is 3.3.8 PyQt directory is /usr/share/sip/qt PyQt version is 3.18.1 (3.18.1) gcc version 4.4.1 concatenating files KDE base directory is /opt/kde3 KDE include directory is /opt/kde3/include/kde KDE lib directory is /opt/kde3/lib lib directory is lib *** True KDE version is 0x3050a -- building for KDE 0x30503 *** KDE version is 3.5.3 (0x30503) PyKDE modules will be installed in /usr/lib/python2.5/site-packages PyKDE .sip files will be installed in /opt/kde3/share/sip/kde3 PyKDE modules to be built: dcop kdecore kdefx kdeui kio kresources kabc kutils kfile kparts khtml kspell kdeprint kmdi Later on, it fails with: cd dbg-build-2.6 && python2.6-dbg ../configure.py \ -c -u -k /opt/kde3 -o /opt/kde3/include/kde -n /opt/kde3/lib \ -v /opt/kde3/share/sip/kde3 -j 4 Can't find sipconfig.py (expected in sys.path) Have you built the correct version of sip? [16829 refs] make: *** [dbg-build-2.6/configure-stamp] Error 255 dpkg-buildpackage: error: debian/rules build gave error exit status 2 The full build log is available here: http://launchpadlibrarian.net/33924400/buildlog_ubuntu-karmic-amd64.python-kde3-kde3_3.16.3-0ubuntu2_FAILEDTOBUILD.txt.gz I need to rebuild this ASAP; the Ubuntu release is on the 29th of this month and I just found this problem a few days ago. I am not a Python programmer, so I don't know where to even begin in tracking this down. Thanks in advance for any help you can provide! Timothy Pearson KDE3.5 Maintainer/Developer [C/C++/Qt, not Python ;-)] ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] question about installation best practices on OS X
By default (as you've noticed), SIP and PyQt install their binary executables in the framework. This is fine for the python.org Python, but installing in the system frameworks is not quite proper. What I do for SIP and PyQt and the system python is specify a custom bin (and site-packages and other files) location in configuration: SIP: python configure.py -n -d /Library/Python/2.6/site-packages -b /usr/ local/bin -e /usr/local/include -v /usr/local/share/sip --arch=i386 -s MacOSX10.6.sdk PyQt: export QTDIR=/Developer/Applications/Qt python configure.py -d /Library/Python/2.6/site-packages -b /usr/local/ bin --use-arch=i386 On Oct 18, 2009, at 8:29 PM, Darren Dale wrote: I just recently started working with OS X, and was wondering if someone could point me to some discussion about best practices for installing Qt and PyQt. For example, today I installed the Qt-4.6 beta dmg, but was surprised that symlinks to tools like designer were not created on the path. Likewise, I installed the most recent sip and PyQt4 snapshots, and after installing I was surprised that I could not find utilities like pyuic4 on the path. I'm using the python that shipped with snow leopard (2.6.1), and packages using distutils, like numpy, scipy, matplotlib, Distribute and nose, all installed to /Library/Python/2.6/site-packages, which I guess is where I want them, as opposed to /System/Library/Frameworks/... but I think sip and PyQt4 installed into Frameworks. Is this intentional? Any advice from seasoned os x veterans? Thanks, Darren ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt - William Kyngesburye http://www.kyngchaos.com/ All generalizations are dangerous, even this one. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] question about installation best practices on OS X
I just recently started working with OS X, and was wondering if someone could point me to some discussion about best practices for installing Qt and PyQt. For example, today I installed the Qt-4.6 beta dmg, but was surprised that symlinks to tools like designer were not created on the path. Likewise, I installed the most recent sip and PyQt4 snapshots, and after installing I was surprised that I could not find utilities like pyuic4 on the path. I'm using the python that shipped with snow leopard (2.6.1), and packages using distutils, like numpy, scipy, matplotlib, Distribute and nose, all installed to /Library/Python/2.6/site-packages, which I guess is where I want them, as opposed to /System/Library/Frameworks/... but I think sip and PyQt4 installed into Frameworks. Is this intentional? Any advice from seasoned os x veterans? Thanks, Darren ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] [ANN] Spyder v1.0.0 released
Hi all, I'm pleased to announce here that Spyder version 1.0.0 has been released: http://packages.python.org/spyder Previously known as Pydee, Spyder (Scientific PYthon Development EnviRonment) is a free open-source Python development environment providing MATLAB-like features in a simple and light-weighted software, available for Windows XP/Vista/7, GNU/Linux and MacOS X: * advanced code editing features (code analysis, ...) * interactive console with MATLAB-like workpace (with GUI-based list, dictionary, tuple, text and array editors -- screenshots: http://packages.python.org/spyder/console.html#the-workspace) and integrated matplotlib figures * external console to open an interpreter or run a script in a separate process (with a global variable explorer providing the same features as the interactive console's workspace) * code analysis with pyflakes and pylint * search in files features * documentation viewer: automatically retrieves docstrings or source code of the function/class called in the interactive/external console * integrated file/directories explorer * MATLAB-like path management ...and more! Spyder is part of spyderlib, a Python module based on PyQt4 and QScintilla2 which provides powerful console-related PyQt4 widgets. I would like to thanks here all the Spyder users and especially the beta testers and contributors: without them, Spyder wouldn't be as stable, easy-to-use and full-featured as it is. - Pierre ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Crash in sip_api_is_py_method() with PyQt 4.6
On Wed, Oct 14, 2009 at 10:55 PM, Ville M. Vainio wrote: >> Try also tonight snapshot, Phil wrote that the bug will be fixed. > > I'm seeing several reports of this same crash, so at least it appears > to be systematic. Great that the fix is out. I can confirm that this crash is now fixed by Karmic packages. -- Ville M. Vainio http://tinyurl.com/vainio ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Next Releases of PyQt and SIP
On Sun, Oct 18, 2009 at 2:15 AM, Hans-Peter Jansen wrote: > Am Sonntag 18 Oktober 2009 schrieb Melton Low: > > Executing PyQt4's configure.py on Mac OS X 10.4.11 continues to produce > > errors. > > This is on a PPC Mac running OS X 10.4.11: > > Python 2.6.3 > > Qt 4.5.3 carbon version > > Sip 4.9.1 snapshots 20091015 > > PyQt4 4.6.1 snapshots 20091014 > > > > Configuration problem sharted with: > > Qt 4.5.3 carbon version > > Sip 4.9.1 snapshots 20091002 > > PyQt4 4.6.1 snapshots 20091002 > > > > Problem disappeared if I completely removed Qt and reinstalled an earlier > > version of Qt: > > Qt 4.5.2 carbon version > > Sip 4.9.1 snapshots 20091001 > > PyQt4 4.6.1 snapshots 20091001 > > > > I had posted the problem earlier. If this is being worked on, please > > ignore this. In case the new configure verbose output is useful I am > > including it as an attachment since it's quite lengthy. > > > > That line looks suspicious: > > g++ -c -pipe -g -gdwarf-2 -arch > i386 -Wall -W -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Qt4.5/mkspecs/macx-g++ > -I. -I/Library/Frameworks/QtCore.framework/Versions/4/Headers > -I/usr/include/QtCore -I/usr/include -I. -F/Library/Frameworks -o qtdirs.o > qtdirs.cpp > > It looks like it is confused about two Qt installations. Remove one and try > again. > > Pete > ___ > PyQt mailing listPyQt@riverbankcomputing.com > http://www.riverbankcomputing.com/mailman/listinfo/pyqt > Hi Pete, Thanks for looking into this. Originally I upgraded Qt 4.5.3 on top of Qt 4.5.2. That's when the problem started. I also tried a clean build by removing Qt 4.5.2 completely including all the Sip and PyQt4 components inside the Python library site-packages folder. Unless I missed a location with bits and pieces of Qt, there should only be one version of Qt the 4.5.3 version. When the configure failed, I removed Qt 4.5.3, reinstalled Qt 4.5.2, and reinstalled Sip then configured and build PyQt4 to completion. As far as I can tell, on the Mac Qt is installed in several Qt subfolders under /Developer and in /Library/Frameworks. It is also in /usr/local/Qt4.5. There are also entries in /Library/Receipts which I believe the installer use to determine whether to do a new install or do an upgrade. In the case of a clean build, I manually removed all the Qt subfolders in /Developer, removed all the folders starting with Qtx.frameworks and phonon.framework in /Library/Frameworks, and removed /usr/local/Qt4.5 as well as the entries in /Library/Receipts. I also removed everything starting with sip* and the PyQt4 folder in the Python framework site-packages folder. I did find under /Library/Frameworks/QtCore.framework/Versions/ a folder named "4" as well as two aliases named "4.0" and "Current" pointing to "4". I did not find a folder named QtCore in /usr/include. If there is anything of Qt in /usr/include, I don't know what it is. I did not find entries for Qt, Sip or PyQt in the system preferences and in my user preferences areas. If there are such entries, they don't have obvious names. So I am not sure where you suspect another version may be lurking somewhere. Could you point out on the suspicious line where you suspect contains another version? Mel ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Slot error handling
I have a similar type of problem as Zac, so it would be nice to see a solution :) Zac Burns wrote: > > Is there a way to add an error handler for all slots in an application? > > Eg: I have a window with lots of buttons and menus etc, connected via > Signals/Slots. When slot code fails it prints a traceback to the > console. I would rather it pop a dialog because the console is hidden. > So, I would like to somewhere in my app say if any slot fails call > this function with the exception, slot, signal, and whatever other > info can be provided. -- View this message in context: http://www.nabble.com/Slot-error-handling-tp25792280p25944963.html Sent from the PyQt mailing list archive at Nabble.com. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Next Releases of PyQt and SIP
Am Sonntag 18 Oktober 2009 schrieb Melton Low: > Executing PyQt4's configure.py on Mac OS X 10.4.11 continues to produce > errors. > This is on a PPC Mac running OS X 10.4.11: > Python 2.6.3 > Qt 4.5.3 carbon version > Sip 4.9.1 snapshots 20091015 > PyQt4 4.6.1 snapshots 20091014 > > Configuration problem sharted with: > Qt 4.5.3 carbon version > Sip 4.9.1 snapshots 20091002 > PyQt4 4.6.1 snapshots 20091002 > > Problem disappeared if I completely removed Qt and reinstalled an earlier > version of Qt: > Qt 4.5.2 carbon version > Sip 4.9.1 snapshots 20091001 > PyQt4 4.6.1 snapshots 20091001 > > I had posted the problem earlier. If this is being worked on, please > ignore this. In case the new configure verbose output is useful I am > including it as an attachment since it's quite lengthy. > That line looks suspicious: g++ -c -pipe -g -gdwarf-2 -arch i386 -Wall -W -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Qt4.5/mkspecs/macx-g++ -I. -I/Library/Frameworks/QtCore.framework/Versions/4/Headers -I/usr/include/QtCore -I/usr/include -I. -F/Library/Frameworks -o qtdirs.o qtdirs.cpp It looks like it is confused about two Qt installations. Remove one and try again. Pete ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt