[Pythonmac-SIG] problem importing OpenGL.Tk

Patrick Moran patrickjmoran at earthlink.net
Mon Oct 13 01:17:17 EDT 2003


I'm new to Mac ... and I'm in the process of porting over some
3-D graphics tools I have running under Linux.  My application
uses PyOpenGL.  I downloaded MacPython-OSX-2.3.1.  Then,
using PackageManager, I downloaded PyOpenGL-
binary and _tkinter-2.3-binary.  So far seems OK.  The basic
Tkinter widgets are working.  Cool.  But when I try to import
OpenGL.Tk, in preparation to do some 3-D rendering, I get:

[Patrick-Morans-Computer:~] pmoran% /usr/local/bin/pythonw
Python 2.3 (#2, Jul 30 2003, 11:45:28)
[GCC 3.1 20020420 (prerelease)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
 >>> import OpenGL.GL
 >>> import OpenGL.Tk
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
packages/OpenGL/Tk/__init__.py", line 81, in ?
     _default_root.tk.call('package', 'require', 'Togl')
_tkinter.TclError: can't find package Togl

I have a PowerBook, running  OS X 10.2.8.

Help, suggestions, would be appreciated.  Is there some sort of path
I need to set?



More information about the Pythonmac-SIG mailing list