oggconvert breaks modules list in python's Interactive help

Bug #175770 reported by O. Emmerson
2
Affects Status Importance Assigned to Milestone
OggConvert
Fix Released
Low
Unassigned
oggconvert (Ubuntu)
Fix Released
Low
Luca Falavigna

Bug Description

Binary package hint: oggconvert

When I type modules in Python's interactive help the command seems to fail because of a problem in oggconvert.

help> modules

Please wait a moment while I gather a list of all available modules...

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.5/site.py", line 351, in __call__
    return pydoc.help(*args, **kwds)
  File "/usr/lib/python2.5/pydoc.py", line 1649, in __call__
    self.interact()
  File "/usr/lib/python2.5/pydoc.py", line 1667, in interact
    self.help(request)
  File "/usr/lib/python2.5/pydoc.py", line 1683, in help
    elif request == 'modules': self.listmodules()
  File "/usr/lib/python2.5/pydoc.py", line 1804, in listmodules
    ModuleScanner().run(callback)
  File "/usr/lib/python2.5/pydoc.py", line 1855, in run
    for importer, modname, ispkg in pkgutil.walk_packages():
  File "/usr/lib/python2.5/pkgutil.py", line 110, in walk_packages
    __import__(name)
  File "/usr/lib/python2.5/site-packages/OggConvert/__init__.py", line 22, in <module>
    pygst.require("0.10")
  File "/usr/lib/python2.5/site-packages/pygst.py", line 52, in require
    raise RequiredVersionError, "pygst.require() must be called before importing gst"
pygst.RequiredVersionError: pygst.require() must be called before importing gst

Related branches

Changed in oggconvert:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
O. Emmerson (oemmerson) wrote :

I commented out the below two lines in /usr/lib/python2.5/site-packages/pygst.py and the modules command then worked in the python shell.

if sys.modules.has_key('gst'):
    raise RequiredVersionError, "pygst.require() must be called before importing gst"

Revision history for this message
Tristan Brindle (tristan-brindle) wrote :

Well, I guess this is a lesson: don't initialise things in __init__.py!

I can't actually recreate this myself (help> modules has a problem with something else before it reaches OggConvert on my system), but I think I know what's going wrong and I'll fix it in the next version.

Changed in oggconvert:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Tristan Brindle (tristan-brindle) wrote :

Fix released in 0.3.1

Changed in oggconvert:
status: Confirmed → Fix Released
Revision history for this message
Luca Falavigna (dktrkranz) wrote :

Thanks Tristan, I'll upload new version soon.

Changed in oggconvert:
assignee: nobody → dktrkranz
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package oggconvert - 0.3.1-1ubuntu1

---------------
oggconvert (0.3.1-1ubuntu1) hardy; urgency=low

  * Merge from debian unstable. Fix LP: #175770
    Remaining changes:
    - Suggest gstreamer multiverse plugins

oggconvert (0.3.1-1) unstable; urgency=low

  * New upstream release.
  * Drop the following patches (merged upstream) together with dpatch:
    - debian/patches/01_shebang_removals.dpatch
    - debian/patches/02_TypeError_fix.dpatch

 -- Luca Falavigna <email address hidden> Sat, 19 Jan 2008 17:52:14 +0100

Changed in oggconvert:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.