Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 257976 - dev-util/eric4-4.2.5 needs dev-python/PyQt4 with svg flag enable (or it will fail during startup)
Summary: dev-util/eric4-4.2.5 needs dev-python/PyQt4 with svg flag enable (or it will ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-07 03:05 UTC by Vadim Fint
Modified: 2009-02-07 14:35 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vadim Fint 2009-02-07 03:05:37 UTC
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.
Comment 1 Vadim Fint 2009-02-07 03:07:17 UTC
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 :)).
Comment 2 Markos Chandras (RETIRED) gentoo-dev 2009-02-07 11:38:11 UTC
Hello. Thanks for reporting

Do you have qt-svg-4.4.2 package installed?
Comment 3 Vadim Fint 2009-02-07 12:05:30 UTC
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 :).
Comment 4 Markos Chandras (RETIRED) gentoo-dev 2009-02-07 12:39:44 UTC
(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? :)
Comment 5 Vadim Fint 2009-02-07 12:55:04 UTC
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.
Comment 6 Markos Chandras (RETIRED) gentoo-dev 2009-02-07 12:57:35 UTC
Ye my mistake. Its a runtime dependency. Dont bother fixing the ebuilds. I am on it :)
Comment 7 Vadim Fint 2009-02-07 12:59:10 UTC
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() {
Comment 8 Markos Chandras (RETIRED) gentoo-dev 2009-02-07 14:04:05 UTC
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 :)
Comment 9 Vadim Fint 2009-02-07 14:10:16 UTC
Sure, thanks.
Comment 10 Vadim Fint 2009-02-07 14:35:37 UTC
btw, I did checked: svg useflag is the only one strictly needed on PyQt4. Other dont.