Bug 748141

Summary: ipython-gui needs to require python-pygments
Product: [Fedora] Fedora Reporter: T.C. Hollingsworth <tchollingsworth>
Component: ipythonAssignee: Thomas Spura <tomspur>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: bkearney, shahms, tomspur
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ipython-0.11-3.fc16 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-25 03:35:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description T.C. Hollingsworth 2011-10-22 11:28:08 UTC
The ipython Qt console fails to run because python-pygments is not required by ipython-gui.

$ ipython qtconsole
Traceback (most recent call last):
  File "/usr/bin/ipython", line 7, in <module>
    launch_new_instance()
  File "/usr/lib/python2.7/site-packages/IPython/frontend/terminal/ipapp.py", line 369, in launch_new_instance
    app.initialize()
  File "/usr/lib/python2.7/site-packages/IPython/frontend/terminal/ipapp.py", line 273, in initialize
    super(TerminalIPythonApp, self).initialize(argv)
  File "/usr/lib/python2.7/site-packages/IPython/core/application.py", line 298, in initialize
    self.parse_command_line(argv)
  File "/usr/lib/python2.7/site-packages/IPython/frontend/terminal/ipapp.py", line 269, in parse_command_line
    return super(TerminalIPythonApp, self).parse_command_line(argv)
  File "/usr/lib/python2.7/site-packages/IPython/config/application.py", line 340, in parse_command_line
    return self.initialize_subcommand(subc, subargv)
  File "/usr/lib/python2.7/site-packages/IPython/config/application.py", line 322, in initialize_subcommand
    subapp = import_item(subapp)
  File "/usr/lib/python2.7/site-packages/IPython/utils/importstring.py", line 40, in import_item
    module = __import__(package,fromlist=[obj])
  File "/usr/lib/python2.7/site-packages/IPython/frontend/qt/console/qtconsoleapp.py", line 26, in <module>
    from pygments.styles import get_all_styles
ImportError: No module named pygments.styles

$ rpm -q ipython-gui
ipython-gui-0.11-2.fc16.noarch

Comment 1 Thomas Spura 2011-10-23 00:12:58 UTC
Thanks for noticing this!
IPython is quite complex, so I'm unsure, if this were all missing dependencies now (matplotlib was also missing).


Please test the update below, so this can be pushed to stable tomorrow (and make it properly into F16, or it will be a zero day update).

Comment 2 Fedora Update System 2011-10-23 00:13:23 UTC
ipython-0.11-3.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/ipython-0.11-3.fc16

Comment 3 T.C. Hollingsworth 2011-10-23 03:00:41 UTC
The Requires look good.  I ran the testsuites and only two tests that are known to be broken upstream fail:
https://github.com/ipython/ipython/pull/172

That certainly isn't your fault, so I gave it good karma.  Thanks for fixing this so quickly!  :-)

Comment 4 Fedora Update System 2011-10-25 03:35:52 UTC
ipython-0.11-3.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.