Error dump (try to run eric4 with PyQt4 installed w/o svg flag): Error information: -------------------------------------------------------------------------------- 2009-02-07, 05:41:15 -------------------------------------------------------------------------------- <type 'exceptions.ImportError'>: No module named QtSvg -------------------------------------------------------------------------------- File "/usr/lib/python2.6/site-packages/eric4/eric4.py", line 248, in <module> main() File "/usr/lib/python2.6/site-packages/eric4/eric4.py", line 227, in main from UI.UserInterface import UserInterface File "//usr/lib/python2.6/site-packages/eric4/UI/UserInterface.py", line 85, in <module> from Graphics.SvgDiagram import SvgDiagram File "//usr/lib/python2.6/site-packages/eric4/Graphics/SvgDiagram.py", line 12, in <module> from PyQt4.QtSvg import QSvgWidget -------------------------------------------------------------------------------- Version Numbers: Python 2.6.1 Qt 4.4.2 PyQt4 4.4.4 sip 4.7.9 QScintilla 2.3.2 eric4 4.2.5 (r2785) Platform: linux2 2.6.1 (r261:67515, Feb 1 2009, 00:32:10) [GCC 4.1.2 20070214 ( (gdc 0.24, using dmd 1.020)) (Gentoo 4.1.2 p1.0.2)] Reproducible: Always Steps to Reproduce: 1. USE=-svg emerge PyQt4 eric4 2. /usr/bin/eric4 3. == crash. Actual Results: Eric crashes while trying to import svg module from pyqt4 Expected Results: Hmmm... no errors :) Not sure emerge --info needed here.. I'm sure right now eric4-4.2.5.ebuild does not checks for svg flag in PyQt4 at all.
I'll check for other needed use flags for PyQt4 package (right now I'm sitting on too slow machine for recompiling PyQt4 several times :)).
Hello. Thanks for reporting Do you have qt-svg-4.4.2 package installed?
Yes, but PyQt4 needs qt-svg only if "svg" flag is set (at least I think so). eric4 needs use flag checking on PyQt4 package, not qt-svg. Anyway, I dont know how this could help, but: yes, I have qt-svg-4.2 :).
(In reply to comment #3) > Yes, but PyQt4 needs qt-svg only if "svg" flag is set (at least I think so). > eric4 needs use flag checking on PyQt4 package, not qt-svg. > > Anyway, I dont know how this could help, but: yes, I have qt-svg-4.2 :). > My point was to check if eric4 compiles fine when you have qt-svg on your system. Does it? :)
It will "compile" in any way not depending on PyQt4 use flags or qt-svg existence. But runs only with qt-svg and PyQt4 with svg flag. And it "runs" fine in that case :). Wait a moment - I'll fix ebuild.
Ye my mistake. Its a runtime dependency. Dont bother fixing the ebuilds. I am on it :)
Quite simple, though. --- eric-4.2.5.ebuild 2009-02-07 15:57:08.000000000 +0300 +++ eric-4.2.5-r1.ebuild 2009-02-07 15:56:08.000000000 +0300 @@ -38,6 +38,10 @@ eerror "Please build qscintilla-python with qt4 useflag." die "qscintilla-python built without qt4." fi + if ! built_with_use 'dev-python/PyQt4' 'svg'; then + eerror "Please build dev-python/PyQt4 with svg useflag." + die "dev-python/PyQt4 built without svg." + fi } src_unpack() {
Fixed on cvs (eric-4.2.5-r1) http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/eric/eric-4.2.5-r1.ebuild?rev=1.1&view=log Thanks for reporting. If you still have issues with ebuild, reopen this bug :)
Sure, thanks.
btw, I did checked: svg useflag is the only one strictly needed on PyQt4. Other dont.