[PyOpenGL-Users] Shader Support OS X
Brought to you by:
mcfletch
From: Steven W. <st...@li...> - 2008-09-10 20:00:34
|
I am testing a PyOpenGL install on OS X vr 10.4 and have run in to some trouble with the OpenGL shader implementation in an example written for 3.X. The Error is included below along with some information about the system it is currently running on. python shader_test.py is available at http://storage.sureal.cc/python/shader_test. As a side note I am able to run http://storage.sureal.cc/python/Works.zip. Maybe a more experienced user can help identify the major differences between the two programs. Hit ESC key to quit. Traceback (most recent call last): File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python25/work/Python-2.5.2/Modules/_ctypes/callbacks.c", line 206, in 'calling callback function' File "shader_test.py", line 121, in DrawGLScene InitGL(640, 480) File "shader_test.py", line 98, in InitGL ''', File "shader_test.py", line 27, in compileProgram program = glCreateProgramObjectARB() File "/opt/local/lib/python2.5/site-packages/OpenGL/platform/baseplatform.py", line 296, in __call__ if self.extension and self.load(): File "/opt/local/lib/python2.5/site-packages/OpenGL/platform/baseplatform.py", line 275, in load pointer = platform.PLATFORM.getExtensionProcedure( AttributeError: 'DarwinPlatform' object has no attribute 'getExtensionProcedure' I am currently using the MacPorts project for my python installs. XCode 2.5 is installed on the system. I used the py25-openGL build which is PyOpenGL version 3.0.0b5. Yesterday I manually installed Python 2.5 and PyOpenGL 3.0b5 and ran in to the exact same error. I wanted to make sure that I did not cause the problem with an abundance of possible lib conflicts from the install being old. So this morning I reinstalled OS X and cleaned off the HDD. The install is up to date now with only XCode 2.5, MacPorts, and PyOpenGL installed. MacPorts installs all of its files in /opt/local. The environment when the error was received was. declare -x HOME="/Users/steven" declare -x INCLUDE_PATH="/opt/local/include:" declare -x LANG="en_US.US-ASCII" declare -x LC_COLLATE="en_US.US-ASCII" declare -x LC_CTYPE="en_US.US-ASCII" declare -x LC_MESSAGES="en_US.US-ASCII" declare -x LC_MONETARY="en_US.US-ASCII" declare -x LC_NUMERIC="en_US.US-ASCII" declare -x LC_TIME="en_US.US-ASCII" declare -x LD_LIBRARY_PATH="/opt/local/lib:" declare -x LOGNAME="steven" declare -x OLDPWD declare -x PATH="/opt/local/sbin:/opt/local/bin:/bin:/sbin:/usr/bin:/usr/sbin" declare -x PWD="/Users/steven" declare -x SECURITYSESSIONID="990af0" declare -x SHELL="/bin/bash" declare -x SHLVL="1" declare -x TERM="linux" declare -x TERM_PROGRAM="iTerm.app" declare -x USER="steven" declare -x __CF_USER_TEXT_ENCODING="0x1F5:0:0" |