In the example code I give, is directsound not omitted? (I don't know
if I'm doing it wrong :P) With code as:
    for driver_name in pyglet.options['audio']:
        try:
            driver_name = 'pyglet.media.drivers.' + driver_name
            __import__(driver_name)
            driver = sys.modules[driver_name]
            break
        except (ImportError, AttributeError), e:
            import sys, traceback
            traceback.print_exc(file=sys.stdout)

I still only get:
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/pyglet/media/__init__.py",
line 1328, in <module>
    __import__(driver_name)
  File "/usr/lib/python2.5/site-packages/pyglet/media/drivers/
directsound/__init__.py", line 47, in <module>
    from pyglet.media.drivers.directsound import lib_dsound as lib
  File "/usr/lib/python2.5/site-packages/pyglet/media/drivers/
directsound/lib_dsound.py", line 39, in <module>
    lib = ctypes.oledll.dsound
AttributeError: 'module' object has no attribute 'oledll'

On Sep 2, 12:12 pm, "Alex Holkner" <[EMAIL PROTECTED]> wrote:
> On Tue, Sep 2, 2008 at 9:09 PM, Ragzouken <[EMAIL PROTECTED]> wrote:
>
> > I changed line 1332 to 'raise', but that produces an error for both
> > drivers: AttributeError: 'module' object has no attribute 'oledll'.
> > What are right changes to make to __init__.py to discover the errors?
>
> This is coming from the directsound driver (for Windows), you need to
> omit this from your driver list (or merely print the traceback of the
> exception instead of re-raising it).
>
> Alex.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to