On Tuesday 18 September 2007, kim gerdes wrote: > hi there, > > i'd love to install eric4 on my mandriva, but i can't get it going! > so here's what i did > > _____________ > > 1st try: using rpms: > > from mandriva cooker (no other choice as qt4 is only in version 4.1.4 > in the regular updates – too low for eric) > i got > > qt 4.3.1 (qt4-common, 4.3.1-12mdv2008.0.i586) > python-sip: 4.7-1mdv2008.0.i586 > Qscintilla2: libqscintilla-qt4_2 2.1-2mdv2008.0.i586 > python-qt4: 4.3-4mdv2008.0.i586 (and python-qt4-gui also version 4.3-4) > > installed > > two ways now: > > ___ > A: using the eric4 rpm : > > the eric4 rpm recently disappeared from mandriva cooker, so i tried an > eric4 rpm i found somewhere: > eric4-4.0.1-1mdv2008.0.noarch.rpm > > when i run it i get: > > Traceback (most recent call last): > File "/usr/lib/python2.5/site-packages/eric4/eric4.py", line 22, in > <module> from PyQt4.QtGui import QApplication, QErrorMessage > ImportError: /usr/lib/qt4/lib/libQtGui.so.4: undefined symbol: > XRRFreeScreenResources > > ___ > B: using the tarball > i get exactly the same thing when i try to install eric from the > tarball eric4-4.0.1 by python install.py: > Sorry, please install QScintilla2 and > it's PyQt4 wrapper. > Error: /usr/lib/qt4/lib/libQtGui.so.4: undefined symbol: > XRRFreeScreenResources > > the file libQtGui.so.4 points to libQtGui.so.4.3.1 as it probably > should. i've no idea what this error could mean. > > ____________ > > 2nd try: > > > ok, well, something is wrong with my qscintilla. i tried to install it > from source (i'm not sure whether things change if i kick out the > above rpms or not, but i tried both ways and it doesn't work in any > case) : > > QScintilla-gpl-2-snapshot-20070916 > > qmake --version > QMake version 2.01a > Using Qt version 4.3.1 in /usr/lib/qt4/lib > > qmake qscintilla.pro > or > qmake -Wall qscintilla.pro > > say nothing. it just stops. > > make > make: Rien à faire pour « first ». > (french for « nothing to do for first » - whatever that means...) > > make install > cp -f -r > /home/kim/.local/share/Trash/files/QScintilla-gpl-2-snapshot-20070916/Qt4/Q >sci /usr/lib/qt4/include/ > install -m 644 -p > /home/kim/.local/share/Trash/files/QScintilla-gpl-2-snapshot-20070916/Qt4/q >scintilla_cs.qm /usr/lib/qt4/translations/ > install -m 644 -p > /home/kim/.local/share/Trash/files/QScintilla-gpl-2-snapshot-20070916/Qt4/q >scintilla_de.qm /usr/lib/qt4/translations/ > install -m 644 -p > /home/kim/.local/share/Trash/files/QScintilla-gpl-2-snapshot-20070916/Qt4/q >scintilla_fr.qm /usr/lib/qt4/translations/ > install -m 644 -p > /home/kim/.local/share/Trash/files/QScintilla-gpl-2-snapshot-20070916/Qt4/q >scintilla_pt_br.qm /usr/lib/qt4/translations/ > install -m 644 -p > /home/kim/.local/share/Trash/files/QScintilla-gpl-2-snapshot-20070916/Qt4/q >scintilla_ru.qm /usr/lib/qt4/translations/ > cp -f -r > /home/kim/.local/share/Trash/files/QScintilla-gpl-2-snapshot-20070916/qsci > /usr/lib/qt4/ > install -m 755 -p "libqscintilla2.so.3.0.0" > "/usr/lib/qt4/lib/libqscintilla2.so.3.0.0" > strip --strip-unneeded "/usr/lib/qt4/lib/libqscintilla2.so.3.0.0" > ln -sf "libqscintilla2.so.3.0.0" "/usr/lib/qt4/lib/libqscintilla2.so" > ln -sf "libqscintilla2.so.3.0.0" "/usr/lib/qt4/lib/libqscintilla2.so.3" > ln -sf "libqscintilla2.so.3.0.0" "/usr/lib/qt4/lib/libqscintilla2.so.3.0" > > that looks good, doesn't it? > i don't really know why it takes anything from my trash, but that may > not matter... > > > > ok, now i try PyQt4 > PyQt-x11-gpl-4.3-snapshot-20070913 > > [EMAIL PROTECTED] PyQt-x11-gpl-4.3-snapshot-20070913]# python configure.py > Determining the layout of your Qt installation... > This is the GPL version of PyQt 4.3-snapshot-20070913 (licensed under the > GNU General Public License) for Python 2.5 on linux2. > > Type 'L' to view the license. > Type 'yes' to accept the terms of the license. > Type 'no' to decline the terms of the license. > > Do you accept the terms of the license? yes > Checking to see if the QtGui module should be built... > Checking to see if the QtNetwork module should be built... > Checking to see if the QtOpenGL module should be built... > Checking to see if the QtScript module should be built... > Checking to see if the QtSql module should be built... > Checking to see if the QtSvg module should be built... > Checking to see if the QtTest module should be built... > Checking to see if the QtXml module should be built... > Checking to see if the QtAssistant module should be built... > Checking to see if the QtDesigner module should be built... > Checking to see if the dbus support module should be built... > The Python dbus module doesn't seem to be installed. > Qt v4.3.1 free edition is being used. > SIP 4.7 is being used. > The Qt header files are in /usr/lib/qt4/include. > The shared QtCore library is in /usr/lib/qt4/lib. > The Qt binaries are in /usr/lib/qt4/bin. > The Qt mkspecs directory is in /usr/lib/qt4. > These PyQt modules will be built: QtCore QtNetwork QtScript QtTest QtXml. > The PyQt Python package will be installed in > /usr/lib/python2.5/site-packages. The Designer plugin will be installed in > /usr/lib/qt4/plugins/lib/designer. The QScintilla API file will be > installed in /usr/lib/qt4/qsci/api/python. The PyQt .sip files will be > installed in /usr/share/sip/PyQt4. > pyuic4, pyrcc4 and pylupdate4 will be installed in /usr/bin. > Generating the C++ source for the QtCore module... > Creating the Makefile for the QtCore module... > Generating the C++ source for the QtNetwork module... > Creating the Makefile for the QtNetwork module... > Generating the C++ source for the QtScript module... > Creating the Makefile for the QtScript module... > Generating the C++ source for the QtTest module... > Creating the Makefile for the QtTest module... > Generating the C++ source for the QtXml module... > Creating the Makefile for the QtXml module... > Generating the C++ source for the Qt module... > Creating the Makefile for the Qt module... > Creating QScintilla API file... > Creating top level Makefile... > Creating QPy libraries Makefile... > Creating pyuic4 wrapper... > Creating pyuic4 Makefile... > Creating pylupdate4 Makefile... > Creating pyrcc4 Makefile... > Creating pyqtconfig.py... > > but if i do make, i get so many errors my bash won't even show them > all, ending with: > ... > make[1]: *** [sipQtCorecmodule.o] Erreur 1 > make[1]: quittant le répertoire « > /home/kim/Desktop/PyQt-x11-gpl-4.3-snapshot-20070913/QtCore » > make: *** [all] Erreur 2 > > if i redirect the make errors to a file, i see the first messages: > > > In file included from sipAPIQtCore.h:30, > from sipQtCorecmodule.cpp:26: > /usr/include/python2.5/sip.h:29:20: error: Python.h: Aucun fichier ou > répertoire de ce type > (meaning no file of this type) > /usr/include/python2.5/sip.h:47:2: error: #error "This version of SIP > requires Python v2.3 or later" > sip/QtCore/qobject.sip:2226:26: error: structmember.h: Aucun fichier > ou répertoire de ce type > /usr/include/python2.5/sip.h:167: error: 'PyHeapTypeObject' does not name a > type > > so there is no file Python.h > and something is strange with my python version (2.5) > > ________ > > > so one more step back: > i try to compile sip: > > > make > make[1]: entrant dans le répertoire « /home/kim/Desktop/sip-4.7/sipgen » > make[1]: « sip » est à jour. > make[1]: quittant le répertoire « /home/kim/Desktop/sip-4.7/sipgen » > make[1]: entrant dans le répertoire « /home/kim/Desktop/sip-4.7/siplib » > gcc -c -pipe -fPIC -O2 -w -I. -I/usr/include/python2.5 -o siplib.o siplib.c > siplib.c:17:20: error: Python.h: Aucun fichier ou répertoire de ce type > In file included from siplib.c:23: > sip.h:47:2: error: #error "This version of SIP requires Python v2.3 or > later" In file included from siplib.c:23: > > > so again this thing about python.h > i actually checked on how to reinstall all of python, but that's scary > as so much stuff depends on python (on the python-base package and not > on the simple python package – i don't really understand the > difference). > so i didn't do that. > > > ____________________________ > > what did i do wrong? > maybe some links are missing somewhere? > any help is highly appreciated as i spent quite a few evenings already > on this problem and i'm getting nowhere – i don't even know what else > i could try - reinstall everything ??? :-)
Your original problem is with the Qt4 build, nothing to do eric, SIP, PyQt or QScintilla. I would guess that your subsequent problems are because your distro has split Python into runtime and development sub-packages - and you don't have the latter installed. Phil _______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
