python-pyglet import failure breaks pydoc

Bug #333781 reported by Erno Kuusela on 2009-02-24
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Pyglet
Unknown
Unknown
pyglet (Debian)
New
Undecided
Unassigned
pyglet (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: python-pyglet

$ pydoc -k rmtree
Traceback (most recent call last):
  File "/usr/bin/pydoc", line 5, in <module>
    pydoc.cli()
  File "/usr/lib/python2.5/pydoc.py", line 2196, in cli
    apropos(val)
  File "/usr/lib/python2.5/pydoc.py", line 1891, in apropos
    ModuleScanner().run(callback, key)
  File "/usr/lib/python2.5/pydoc.py", line 1856, in run
    for importer, modname, ispkg in pkgutil.walk_packages():
  File "/usr/lib/python2.5/pkgutil.py", line 125, in walk_packages
    for item in walk_packages(path, name+'.', onerror):
  File "/usr/lib/python2.5/pkgutil.py", line 125, in walk_packages
    for item in walk_packages(path, name+'.', onerror):
  File "/usr/lib/python2.5/pkgutil.py", line 125, in walk_packages
    for item in walk_packages(path, name+'.', onerror):
  File "/usr/lib/python2.5/pkgutil.py", line 110, in walk_packages
    __import__(name)
  File "/var/lib/python-support/python2.5/pyglet/media/drivers/directsound/__init__.py", line 47, in <module>
    from pyglet.media.drivers.directsound import lib_dsound as lib
  File "/var/lib/python-support/python2.5/pyglet/media/drivers/directsound/lib_dsound.py", line 39, in <module>
    lib = ctypes.oledll.dsound
AttributeError: 'module' object has no attribute 'oledll'
AL lib: ALc.c:1302: exit() 1 device(s) and 1 context(s) NOT deleted

Ubuntu release: current Jaunty

Package version:
$ apt-cache policy python-pyglet
python-pyglet:
  Installed: 1.1.2.dfsg-1
  Candidate: 1.1.2.dfsg-1
  Version table:
 *** 1.1.2.dfsg-1 0
        500 http://fi.archive.ubuntu.com jaunty/universe Packages
        100 /var/lib/dpkg/status
$ apt-cache policy python
python:
  Installed: 2.5.4-0ubuntu3
  Candidate: 2.5.4-0ubuntu3
  Version table:
 *** 2.5.4-0ubuntu3 0
        500 http://fi.archive.ubuntu.com jaunty/main Packages
        100 /var/lib/dpkg/status

Stephan Peijnik (speijnik) wrote :

Hi,

I just had a look at that and it seems like a valid bug report to me. Obviously importing directsound will not work on GNU/Linux.

I will try getting into touch with upstream on this issue. However, as a short-term solution I am thinking to either remove that code from the package for now or disabling it somehow.

-- Stephan

PS: This means I will try to fix this problem in Debian and then get it added to Ubuntu at some point.

Stephan Peijnik (speijnik) wrote :

I have now reported this problem upstream: http://code.google.com/p/pyglet/issues/detail?id=404

Edward Donovan (edward.donovan) wrote :

(Hi, I was just passing by; this wasn't the bug I was looking for, but I thought I'd see if Launchpad could import that Google Code bug url. So I added it. Thanks.)

Juan J. Martínez (jjmartinez) wrote :

I've closed the bug upstream as invalid. The problem *was* in pydoc and it's been fixed, see: https://code.google.com/p/pyglet/issues/detail?id=404#c4

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

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