> standard on SuSE is
> /usr/lib64/python2.5/site-packages/
>
> but the egg-laying machine seems to put stuff to
> /usr/local/lib64/python2.5/site-packages
> instead
> (maybe I could have reconfigured this, anyway)
Weird. Curious about the reasoning behind this.
> However, gl_interop.py did not run until I did
> export PYTHONPATH=/usr/local/lib64/python2.5/site-packages/
> (was PYTHONPATH="" before)
>
> maybe this is since there is still the old python-opengl-2.0.1.09-224.1
> /usr/lib64/python2.5/site-packages/OpenGL/GL/ARB/
> ...with-no-vertex-buffer-in-there in the way which is caught before.
>
> But to figure it out I'm definitely lacking sufficient python experience.
There is an easy trick to find out what file path actually gets imported:
>>> import pytools
>>> pytools.__file__
'/home/andreas/research/software/pytools/pytools/__init__.py'

...
runnign gl_interop.py works...
=================================================
so, although the $PYTHONPATH environment variable solved my python-opengl
problem, there seems to be another place where the path info is kept / set.
Either in some global way? but then gl_interop.py should run in case 1, too
And I would consider it as bad implementation, having side effects of
environment variables between different consoles.
Think python itself ist quite mature, isn't it?
maybe >>> import pytools already changes the path.
Isn't there any python builtin way to show the module search path?
and how are all the SuSE-configured modules in
/usr/lib64/python2.5/site-packages/
found?
but something seems already screwed on my python:
looking for an answer for above question pops up an empty tk window and throws
an error ($PYTHONPATH=/usr/local/lib64/python2.5/site-packages/)
===== case 2 ======================
help> modules environment
Here is a list of matching modules. Enter any module name to get more help.
No handlers could be found for logger "OpenGL.Tk"
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python2.5/site.py", line 346, in __call__
return pydoc.help(*args, **kwds)
File "/usr/lib64/python2.5/pydoc.py", line 1644, in __call__
self.interact()
File "/usr/lib64/python2.5/pydoc.py", line 1662, in interact
self.help(request)
File "/usr/lib64/python2.5/pydoc.py", line 1680, in help
self.listmodules(split(request)[1])
File "/usr/lib64/python2.5/pydoc.py", line 1785, in listmodules
apropos(key)
File "/usr/lib64/python2.5/pydoc.py", line 1883, in apropos
ModuleScanner().run(callback, key)
File "/usr/lib64/python2.5/pydoc.py", line 1848, in run
for importer, modname, ispkg in pkgutil.walk_packages():
File "/usr/lib64/python2.5/pkgutil.py", line 125, in walk_packages
for item in walk_packages(path, name+'.', onerror):
File "/usr/lib64/python2.5/pkgutil.py", line 110, in walk_packages
__import__(name)
File "/usr/local/lib64/python2.5/site-packages/OpenGL/Tk/__init__.py", line
114, in <module>
_default_root.tk.call('package', 'require', 'Togl')
_tkinter.TclError: can't find package Togl