Hi.

In Mac OX Maverick, I created a clean virtual environment (virtualenv, 
Python 2.7) and installed pyglet using

pip install pyglet

The Hello world example does not work with the following error:

Traceback (most recent call last): 

File "pyglet_test.py", line 4, in <module> 

window = pyglet.window.Window() 

File 
"/Users/jorgecarleitao/.env/opengl/lib/python2.7/site-packages/pyglet/__init__.py",
 
line 306, in __getattr__ 
__import__(import_name) 
File 
"/Users/jorgecarleitao/.env/opengl/lib/python2.7/site-packages/pyglet/window/__init__.py",
 
line 1669, in <module> 
from pyglet.window.carbon import CarbonPlatform, CarbonWindow 
File 
"/Users/jorgecarleitao/.env/opengl/lib/python2.7/site-packages/pyglet/window/carbon/__init__.py",
 
line 69, in <module> 
framework='/System/Library/Frameworks/QuickTime.framework') 
File 
"/Users/jorgecarleitao/.env/opengl/lib/python2.7/site-packages/pyglet/lib.py", 
line 90, in load_library 
return self.load_framework(kwargs['framework']) 
File 
"/Users/jorgecarleitao/.env/opengl/lib/python2.7/site-packages/pyglet/lib.py", 
line 226, in load_framework 
lib = ctypes.cdll.LoadLibrary(realpath) 
File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py",
 
line 443, in LoadLibrary 
return self._dlltype(name) 
File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py",
 
line 365, in __init__ 
self._handle = _dlopen(self._name, mode) 
OSError: dlopen(/System/Library/Frameworks/QuickTime.framework/QuickTime, 
6): no suitable image found. Did find: 
/System/Library/Frameworks/QuickTime.framework/QuickTime: mach-o, but wrong 
architecture 
/System/Library/Frameworks/QuickTime.framework/QuickTime: mach-o, but wrong 
architecture

However, using

pip install hg+https://pyglet.googlecode.com/hg/ (after pip uninstall pyglet
)

makes it work correctly. If it makes a difference, I have xquartz installed.

Cheers,
Jorge

On Tuesday, November 5, 2013 10:36:58 PM UTC+1, Charles wrote:
>
> Now that 10.9 has been released, has anyone had success using pyglet 
> with it?  I checked out the latest trunk from the repository.  When I 
> tried to run examples/show_input.py, I get the following: 
>
> python show_input.py 
> Unexpected error loading library c: dlopen(c, 6): no suitable image 
> found.  Did find: 
>      /c: not a file 
> Traceback (most recent call last): 
>    File "show_input.py", line 16, in <module> 
>      class LineGroup(pyglet.graphics.OrderedGroup): 
>    File "/test/pyglet/pyglet/__init__.py", line 347, in __getattr__ 
>      __import__(import_name) 
>    File "/test/pyglet/pyglet/graphics/__init__.py", line 167, in <module> 
>      from pyglet.gl import * 
>    File "/test/pyglet/pyglet/gl/__init__.py", line 235, in <module> 
>      import pyglet.window 
>    File "/test/pyglet/pyglet/window/__init__.py", line 1815, in <module> 
>      gl._create_shadow_window() 
>    File "/test/pyglet/pyglet/gl/__init__.py", line 205, in 
> _create_shadow_window 
>      _shadow_window = Window(width=1, height=1, visible=False) 
>    File "/test/pyglet/pyglet/window/__init__.py", line 494, in __init__ 
>      display = get_platform().get_default_display() 
>    File "/test/pyglet/pyglet/window/__init__.py", line 1764, in 
> get_default_display 
>      return pyglet.canvas.get_display() 
>    File "/test/pyglet/pyglet/canvas/__init__.py", line 77, in get_display 
>      from pyglet.app import displays 
>    File "/test/pyglet/pyglet/app/__init__.py", line 158, in <module> 
>      event_loop = EventLoop() 
>    File "/test/pyglet/pyglet/app/base.py", line 115, in __init__ 
>      self.clock = clock.get_default() 
>    File "/test/pyglet/pyglet/__init__.py", line 347, in __getattr__ 
>      __import__(import_name) 
>    File "/test/pyglet/pyglet/clock.py", line 168, in <module> 
>      _c = pyglet.lib.load_library('c') 
>    File "/test/pyglet/pyglet/lib.py", line 117, in load_library 
>      lib = ctypes.cdll.LoadLibrary(name) 
>    File 
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py",
>  
>
> line 443, in LoadLibrary 
>      return self._dlltype(name) 
>    File 
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py",
>  
>
> line 365, in __init__ 
>      self._handle = _dlopen(self._name, mode) 
> OSError: dlopen(c, 6): no suitable image found.  Did find: 
>      /c: not a file 
>
> Other examples show a similar traceback once they make their way to 
> initializing the clock.  Any ideas on what is causing that? 
>
> -Charles 
>
> On 9/6/13, 11:03 PM, Flip Phillips wrote: 
> > Just a quick heads up here - 
> > I have some code I'm trying to run under the most recent Mac OS 
> > Mavericks / 10.9 pre-release, with a 64-bit Python (enthought / 
> > canopy). It 'runs' in that there are no errors generated, but, alas, 
> > there is no display. 
> > 
> > I reverted back to trying to run some of the examples in the alpha 
> > example tarball, like OpenGL.py, timer.py. The OpenGL example 
> > generates nothing and the timer example gives me a whole-blank-screen 
> > but no drawing. 
> > 
> > I know I'm playing with unstable stuff all around here and that the 
> > source of my troubles could be anywhere in the sw chain... but thought 
> > I'd at least have a look here and make it known just in case someone 
> > is already ahead of me. If not, I'll continue digging around to see 
> > what I can find to help resolve it. 
> > 
> > Cheers- 
> > fp 
> > -- 
> > 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] <javascript:>. 
> > To post to this group, send email to 
> > [email protected]<javascript:>. 
>
> > Visit this group at http://groups.google.com/group/pyglet-users. 
> > For more options, visit https://groups.google.com/groups/opt_out. 
>
>

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to