Re: [PyOpenGL-Users] Continued problems with PyOpenGL 2.0.1.04 on Mac OS X with (fink) Python 2.3
Brought to you by:
mcfletch
From: Mike C. F. <mcf...@ro...> - 2003-05-12 17:30:45
|
Togl is a binary extension to the Tk GUI, I can't really tell from your question whether you built PyOpenGL yourself, or solved the problem by using a binary distribution. If you built it yourself, it's quite likely that during configuration, you either didn't have tkinter installed, or you disabled the building of togl to try and get PyOpenGL to compile and then didn't turn it back on before the final compile (build_togl = 1 should be in your darwin.cfg)... just noticed that it's actually disabled by default in the latest source (Jack and co, is this for a reason? Does OS X even have tkinter?) If you used a binary installer, it's possible that the builder didn't include togl in the package, or possibly included it as a separate package. Check your OpenGL/Tk/ directory for a togl.so, and a pkgIndex.tcl file. If those are not there, then your package doesn't include togl, and you should ask the packager (likely Jack) if they have a togl compile available. If the files *are* there, it's possible the installation of the package is not triggering the registration with Tkinter/Tcl/Tk package manager which the setup.py file does. The actual command is at line 211 in togl_setup.py, it's basically something like this: tkinter_root_widget.tk.call( "pkg_mkIndex", "-verbose", "path/to/togl/directory", "togl.so" ) which you could do manually, but if you do and it works, let your packager (and us) know, so that we can attempt to fix the problem. Good luck, Mike Richard Muller wrote: > I upgraded my Python to 2.3b over the weekend to try and fix the > problems that were reported on this list last week (the problem was > that Python 2.2 couldn't load multiple __init___.so files). Now I'm > getting a different problem: > > Traceback (most recent call last): > File "xyz_render_ogl.py", line 10, in ? > from BallStickOGL import Scene > File "/Users/rpm/Python/BallStickOGL.py", line 11, in ? > from OpenGL.Tk import * > File "/sw/lib/python2.3/site-packages/OpenGL/Tk/__init__.py", line > 81, in ? > _default_root.tk.call('package', 'require', 'Togl') > _tkinter.TclError: can't find package Togl > > Does anyone have any suggestions for hacking around this? > > R. > > Rick Muller > rp...@wa... > http://wag.caltech.edu/home/rpm _______________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://members.rogers.com/mcfletch/ |