Thread: [PyOpenGL-Users] OpenGLContext
Brought to you by:
mcfletch
From: Festila C. <cat...@gm...> - 2008-01-01 13:52:12
|
Hello! I use linux-debian . I use Standard Install (setuptools/egg based) and not work for glprint.py I try python glprint.py Traceback (most recent call last): File "glprint.py ", line 25, in ? from OpenGLContext.wxinteractivecontext import wxInteractiveContext File "/usr/lib/python2.4/site-packages/OpenGLContext/wxinteractivecontext.py", line 2, in ? from OpenGLContext import interactivecontext, wxcontext, context, viewplatformmixin File "/usr/lib/python2.4/site-packages/OpenGLContext/interactivecontext.py", line 2, in ? from OpenGLContext import context File "/usr/lib/python2.4/site-packages/OpenGLContext/context.py", line 33, in ? from OpenGLContext import renderpass, visitor, texturecache File "/usr/lib/python2.4/site-packages/OpenGLContext/renderpass.py", line 16, in ? from OpenGLContext import visitor, rendervisitor, displaylist, frustum, utilities File "/usr/lib/python2.4/site-packages/OpenGLContext/visitor.py", line 3, in ? from OpenGLContext.scenegraph import nodepath File "/usr/lib/python2.4/site-packages/OpenGLContext/scenegraph/nodepath.py", line 3, in ? from vrml.vrml97 import nodepath, nodetypes File "/usr/lib/python2.4/site-packages/vrml/vrml97/nodepath.py", line 4, in ? from vrml import nodepath File "/usr/lib/python2.4/site-packages/vrml/nodepath.py", line 3, in ? from vrml import node, weaktuple File "/usr/lib/python2.4/site-packages/vrml/node.py", line 6, in ? from vrml import field, fieldtypes, weaklist, weakkeydictfix File "/usr/lib/python2.4/site-packages/vrml/field.py", line 2, in ? from dispatch import dispatcher, robustapply ImportError: cannot import name dispatcher I try to install OpenGLContext-2.0.0c1 on my home directory , but i have some problems . First PyDispatcher-2.0.0 . I put files from arhive over ~/OpenGLContext-2.0.0c1$ python setup.pyinstall running install running build running build_py copying ./extensionmanager.py -> build/lib/pydispatch ... copying ./tests/indexedlinesetobject.py -> build/lib/pydispatch/tests copying ./tests/cubebackgroundobject.py -> build/lib/pydispatch/tests copying ./tests/getteximage.py -> build/lib/pydispatch/tests error: package directory './examples' does not exit 1.What is the correct method to install OpenGLContext on my debian ? 2.The text on site say :" OpenGLContext is a learning environment for PyOpenGL. " but is so hard to install :( Thanks ! |
From: Mike C. F. <mcf...@vr...> - 2008-01-02 04:30:42
|
Festila Catalin wrote: > Hello! I use linux-debian . > I use Standard Install (setuptools/egg based) and not work for glprint.py glprint is a Win32-only demonstration (it's an adaptation of of a NeHe tutorial that uses wgl* calls to render text). That said, the problems you're encountering are not likely due to that issue. Setting up OpenGLContext is rather difficult at the moment. I've just put together .egg and source distributions for all of the dependencies and registering them in the Python Package index. The following *should* work, but hasn't been tested on a Linux machine yet (just haven't had time to build a chroot or image in which to work): easy_install OpenGLContext easy_install SimpleParse easy_install TTFQuery OpenGLContext 2.1 (released today) is, incidentally, the first release to be compatible with PyOpenGL 3.x. Eventually Debian might have an OpenGLContext package, but until then the easy_install path is probably the "correct" way. Good luck, Mike > 1.What is the correct method to install OpenGLContext on my debian ? > > 2.The text on site say :" OpenGLContext is a learning environment for > PyOpenGL. " but is so hard to install :( -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |