On Sun, Dec 28, 2008 at 6:14 AM, George Wright <[email protected]>wrote:
>
> Gidday
> I have been getting all sorts of odd things when I type help() and
> then modules at the python prompt.
> The latest seems to involve pyglet so I thought maybe someone here can
> help me.
> Python 2.5.1 (r251:54863, Apr 15 2008, 22:57:26)
> [GCC 4.0.1 (Apple Inc. build 5465)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
> >>> help()
> .........
> help> modules
>
> Please wait a moment while I gather a list of all available modules...
>
> Leopard libedit detected.
> /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/
> pkgutil.py:110: DeprecationWarning: twisted.flow is unmaintained.
> __import__(name)
> /Library/Python/2.5/site-packages/Twisted-8.1.0-py2.5-macosx-10.5-
> i386.egg/twisted/words/im/__init__.py:8: UserWarning: twisted.im will
> be undergoing a rewrite at some point in the future.
> warnings.warn("twisted.im will be undergoing a rewrite at some
> point in the future.")
> /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/
> pkgutil.py:110: DeprecationWarning: The wxPython compatibility package
> is no longer automatically generated or actively maintained. Please
> switch to the wx package as soon as possible.
> __import__(name)
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/site.py", line 348, in __call__
> return pydoc.help(*args, **kwds)
> File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/pydoc.py", line 1647, in __call__
> self.interact()
> File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/pydoc.py", line 1665, in interact
> self.help(request)
> File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/pydoc.py", line 1681, in help
> elif request == 'modules': self.listmodules()
> File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/pydoc.py", line 1802, in listmodules
> ModuleScanner().run(callback)
> File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/pydoc.py", line 1853, in run
> for importer, modname, ispkg in pkgutil.walk_packages():
> File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/pkgutil.py", line 125, in walk_packages
> for item in walk_packages(path, name+'.', onerror):
> File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/pkgutil.py", line 125, in walk_packages
> for item in walk_packages(path, name+'.', onerror):
> File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/pkgutil.py", line 125, in walk_packages
> for item in walk_packages(path, name+'.', onerror):
> File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/pkgutil.py", line 110, in walk_packages
> __import__(name)
> File "/Library/Python/2.5/site-packages/PIL/__init__.py", line 180,
> in import_hook
>
> File "/Library/Python/2.5/site-packages/pyglet/media/drivers/
> directsound/__init__.py", line 47, in <module>
> from pyglet.media.drivers.directsound import lib_dsound as lib
> File "/Library/Python/2.5/site-packages/PIL/__init__.py", line 180,
> in import_hook
>
> File "/Library/Python/2.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'
> >>> Terminated
>
> What's going on here?
> I believe this is a reference to dynamic link libraries on Windows. I
> can't see why my macbook would need them?
> btw - if I import ctypes and dir(ctypes) i find a cdll and a pydll -
> but no oledll.
>
Running 'pydoc modules' on my MacBook (10.5.6), also fails, albeit with a
different pyglet error. I think you should just avoid the 'modules' keyword
- running pydoc on individual pyglet modules works fine.
>
> George Wright
> [email protected]
> http://mywebsite.bigpond.net.au/georgewr/
> http://www.labyrinth.net.au/~gwright
>
>
>
>
>
> >
>
--
Tristam MacDonald
http://swiftcoder.wordpress.com/
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---