title: OpenGL in Python with Snow Leopard?
body: <p>I'm interested in playing around with OpenGL in Python. I've used OpenGL in C++ and Objective-C, but I don't have much experience in Python. I'm wondering if there's a good tutorial that works in Snow Leopard. I'd prefer to stay in 64-bit mode if possible, since I've heard 32-bit programs require loading a lot of extra 32-bit libraries.</p>
  
  <p>I've already tried a <a href="http://www.siafoo.net/snippet/97" rel="nofollow noreferrer">PyOpenGL/wxPython tutorial</a>. When I ran the code, it crashed with this message:</p>
  
  <pre><code>ImportError: /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode/wx/_core_.so: no appropriate 64-bit architecture (see "man python" for running in 32-bit mode)
  </code></pre>
  
  <p>It looks like there's a <a href="http://trac.wxwidgets.org/ticket/11160" rel="nofollow noreferrer">bug</a> in wxPython that prevents it from working on a 64-bit system.</p>
  
  <p>I also looked at Pyglet, but they have a <a href="http://code.google.com/p/pyglet/issues/detail?id=438" rel="nofollow noreferrer">similar issue</a>. They provide a work-around (setting Python to 32-bit mode), but it doesn't look like they're going to fix it.</p>
  
  <p>Finally, I looked at PyGLUT, but I think it's only for Windows.</p>
  
  <p>Are there any other libraries that would let me access OpenGL and draw on the screen? Again, I'd prefer to stay in 64-bit mode, but if nothing works, I'll switch to 32-bit and try wxPython or Pyglet again.</p>
  
  <hr/>
  
  <p><strong>Edit:</strong> I've also tried PyGame. It depends on SDL which is <a href="http://bugzilla.libsdl.org/show_bug.cgi?id=581" rel="nofollow noreferrer">broken</a> in SL. I thought about trying to use Cocoa through PyObjc, but the Xcode Python application templates <a href="https://stackoverflow.com/questions/1382252/xcode-3-2-ruby-and-python-templates">have been removed</a>.</p>