Hey folks -
I noticed an wacky problem with that only manifests itself when I run a
program from the top level of my home directory. (OS X Lion, Python 2.7,
pyglet 1.1.4.):
import os
import pyglet
print __file__
dirname = os.path.dirname(__file__)
loc = pyglet.resource.FileLocation(dirname)
This program runs fine when it is located anywhere in my directory tree
except precisely in my "root" home directory. When the file is there and I
run it, the program hangs. When I stop it with a ctrl-c, I get the below
error. Any idea what's going on?
Thanks...
--
Dave Musicant
Traceback (most recent call last):
File "temp.py", line 6, in <module>
loc = pyglet.resource.FileLocation(dirname)
File
"/Library/Python/2.7/site-packages/pyglet-1.1.4-py2.7.egg/pyglet/__init__.py",
line 306, in __getattr__
File
"/Library/Python/2.7/site-packages/pyglet-1.1.4-py2.7.egg/pyglet/resource.py",
line 680, in <module>
File
"/Library/Python/2.7/site-packages/pyglet-1.1.4-py2.7.egg/pyglet/resource.py",
line 291, in __init__
File
"/Library/Python/2.7/site-packages/pyglet-1.1.4-py2.7.egg/pyglet/resource.py",
line 335, in reindex
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py",
line 294, in walk
for x in walk(new_path, topdown, onerror, followlinks):
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py",
line 294, in walk
for x in walk(new_path, topdown, onerror, followlinks):
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py",
line 294, in walk
for x in walk(new_path, topdown, onerror, followlinks):
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py",
line 294, in walk
for x in walk(new_path, topdown, onerror, followlinks):
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py",
line 294, in walk
for x in walk(new_path, topdown, onerror, followlinks):
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py",
line 284, in walk
if isdir(join(top, name)):
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/genericpath.py",
line 41, in isdir
st = os.stat(s)
KeyboardInterrupt
--
You received this message because you are subscribed to the Google Groups
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyglet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.