Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 362679 - Suggested patch to media-gfx/freecad ebuild
Summary: Suggested patch to media-gfx/freecad ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Andreas K. Hüttel
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-09 01:31 UTC by Robert Penny
Modified: 2011-04-10 20:59 UTC (History)
1 user (show)

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 Robert Penny 2011-04-09 01:31:05 UTC
The FreeCAD Report View window was showing an error in the import of PyQt4.

I searched for the error string and found it in draftGui.py.
--------------------
try:
        from PyQt4 import QtCore,QtGui,QtSvg    
except:
        FreeCAD.Console.PrintMessage("Error: Python-qt4 package must be installed on your system to use the Draft module.")
-------------------


On my system, the error was being thrown by the QtSvg part of the import.  I added an "svg" to dev-python/PyQt4 and rebuilt this package.  It seems to have stopped the error.  (I'm still learning how to drive FreeCAD, so I'm not clear what functionality wasn't working.)

However, the FreeCAD ebuild (media-gfx/freecad) could probably benefit from having the RDEPEND for PyQt4 include a use flag for svg, namely

RDEPEND="
...
   dev-python/PyQt4[svg]
...
"

Thanks!
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2011-04-10 20:59:33 UTC
Makes sense. Applied, thanks!