Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 265999

Summary: app-misc/anki-0.9.9.7.1: depends on PyQt4 with USE=svg
Product: Gentoo Linux Reporter: Dennis Felsing <gentoobugs.dennisfelsing>
Component: Current packagesAssignee: Heath Caldwell (RETIRED) <hncaldwell>
Status: RESOLVED FIXED    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch to fix this

Description Dennis Felsing 2009-04-13 13:34:54 UTC
I didn't try the other versions, but the latest (unstable) version of anki in
portage, 0.9.9.7.1 fails to be run because it depends on dev-python/PyQt4 to
be installed with USE=svg, but doesn't announce that.


Reproducible: Always

Steps to Reproduce:
1. echo "dev-python/PyQT4 -svg" >> /etc/portage/package.use
2. emerge -1 dev-python/PyQT4
3. emerge anki
4. anki
Actual Results:  
Traceback (most recent call last):
  File "/usr/bin/anki", line 31, in <module>
    ankiqt.run()
  File "/usr/lib/python2.5/site-packages/ankiqt/__init__.py", line 157, in run
    ui.importAll()
  File "/usr/lib/python2.5/site-packages/ankiqt/__init__.py", line 14, in importAll
    appForum="http://groups.google.com/group/ankisrs/topics"
  File "usr/lib/python2.5/site-packages/ankiqt/ui/facteditor.py", line 7, in <module>
ImportError: No module named QtSvg

Expected Results:  
Fail at "emerge anki" and tell the user to enable the svg use flag for PyQt4.
Comment 1 Dennis Felsing 2009-04-13 13:39:55 UTC
Created attachment 188237 [details, diff]
Patch to fix this
Comment 2 Heath Caldwell (RETIRED) gentoo-dev 2009-04-13 19:43:43 UTC
Fixed in tree, thanks.  I also added an ebuild for the latest anki.