Thread: [PyOpenGL-Users] GLE on linux systems
Brought to you by:
mcfletch
From: Stéphane A. <san...@fr...> - 2015-10-15 16:27:01
|
Hi, I have noticed in my recent linux systems I was no more able to use GLE API with pyopengl. I tried reinstalling the sources, the problem is the same : I can import GLE but not use any functions . OpenGL.error.NullFunctionError: Attempt to call an undefined function gleSetJoinStyle, check for bool(gleSetJoinStyle) before calling I have found similar people with same problem, but no answer. I am a bit surprised, since setting up Release 3.0.2 from source is working , but not releases 3.1.x . I tried using ctypes and loading libgle libs, no problem. So, If there is no "good" reason, to inhibit it in 3.1.x releases it should work. Please can you correct it in 3.1.x release .Thanks. Regards, S.Ancelot |
From: Mike C. F. <mcf...@vr...> - 2015-11-11 18:45:10
|
On 15/10/15 12:26, Stéphane ANCELOT wrote: > Hi, > > I have noticed in my recent linux systems I was no more able to use > GLE API with pyopengl. > > I tried reinstalling the sources, the problem is the same : > I can import GLE but not use any functions . > > OpenGL.error.NullFunctionError: Attempt to call an undefined function > gleSetJoinStyle, check for bool(gleSetJoinStyle) before calling > > I have found similar people with same problem, but no answer. > > I am a bit surprised, since setting up Release 3.0.2 from source is > working , but not releases 3.1.x . > > I tried using ctypes and loading libgle libs, no problem. > > So, If there is no "good" reason, to inhibit it in 3.1.x releases it > should work. Could you give more details as to *what* Linux systems? PyOpenGL is primarily written on Kubuntu machines (12.04 and 15.10) and on both GLE tests using PyOpenGL-Demo and OpenGLContext are all working. Are you sure that you've created a GL context before calling any GLE functions? I was working on getting the final 3.1.1 release out today, but it seems that will need to wait until we address this (afraid I haven't been monitoring my PyOpenGL folder as I worked on my conference presentation). Take care, Mike -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |
From: Stéphane A. <san...@fr...> - 2015-11-26 08:45:13
|
On 11/11/2015 19:26, Mike C. Fletcher wrote: > On 15/10/15 12:26, Stéphane ANCELOT wrote: >> Hi, >> >> I have noticed in my recent linux systems I was no more able to use >> GLE API with pyopengl. >> >> I tried reinstalling the sources, the problem is the same : >> I can import GLE but not use any functions . >> >> OpenGL.error.NullFunctionError: Attempt to call an undefined function >> gleSetJoinStyle, check for bool(gleSetJoinStyle) before calling >> >> I have found similar people with same problem, but no answer. >> >> I am a bit surprised, since setting up Release 3.0.2 from source is >> working , but not releases 3.1.x . >> >> I tried using ctypes and loading libgle libs, no problem. >> >> So, If there is no "good" reason, to inhibit it in 3.1.x releases it >> should work. > > Could you give more details as to *what* Linux systems? PyOpenGL is > primarily written on Kubuntu machines (12.04 and 15.10) and on both > GLE tests using PyOpenGL-Demo and OpenGLContext are all working. > OpenSuse 13.2 64 bits system. (you can testdrive it on susestudio.com) > Are you sure that you've created a GL context before calling any GLE > functions? This is a working / running application, with context, no problem. > I was working on getting the final 3.1.1 release out today, but it > seems that will need to wait until we address this (afraid I haven't > been monitoring my PyOpenGL folder as I worked on my conference > presentation). It looks like you are using ctypes, so I made few investigations and tried this : I had the /usr/lib64/libgle.so library file in the system. I made a symlink named "libGLE.so" in the same directory ===> now, PyOpenGL can run gle Commands ! That may give you some ideas... without any context, the following gle command should work : gleGetJoinStyle() gleSetJoinStyle(...) > Take care, > Mike > > > > -- > ________________________________________________ > Mike C. Fletcher > Designer, VR Plumber, Coder > http://www.vrplumber.com > http://blog.vrplumber.com > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > PyOpenGL Homepage > http://pyopengl.sourceforge.net > _______________________________________________ > PyOpenGL-Users mailing list > PyO...@li... > https://lists.sourceforge.net/lists/listinfo/pyopengl-users |
From: Stéphane A. <san...@fr...> - 2015-11-26 09:08:41
|
On 26/11/2015 09:45, Stéphane ANCELOT wrote: > On 11/11/2015 19:26, Mike C. Fletcher wrote: >> On 15/10/15 12:26, Stéphane ANCELOT wrote: >>> Hi, >>> >>> I have noticed in my recent linux systems I was no more able to use >>> GLE API with pyopengl. >>> >>> I tried reinstalling the sources, the problem is the same : >>> I can import GLE but not use any functions . >>> >>> OpenGL.error.NullFunctionError: Attempt to call an undefined >>> function gleSetJoinStyle, check for bool(gleSetJoinStyle) before calling >>> >>> I have found similar people with same problem, but no answer. >>> >>> I am a bit surprised, since setting up Release 3.0.2 from source is >>> working , but not releases 3.1.x . >>> >>> I tried using ctypes and loading libgle libs, no problem. >>> >>> So, If there is no "good" reason, to inhibit it in 3.1.x releases it >>> should work. >> >> Could you give more details as to *what* Linux systems? PyOpenGL is >> primarily written on Kubuntu machines (12.04 and 15.10) and on both >> GLE tests using PyOpenGL-Demo and OpenGLContext are all working. >> > OpenSuse 13.2 64 bits system. (you can testdrive it on susestudio.com) >> Are you sure that you've created a GL context before calling any GLE >> functions? > This is a working / running application, with context, no problem. >> I was working on getting the final 3.1.1 release out today, but it >> seems that will need to wait until we address this (afraid I haven't >> been monitoring my PyOpenGL folder as I worked on my conference >> presentation). > > It looks like you are using ctypes, so I made few investigations and > tried this : > I had the /usr/lib64/libgle.so library file in the system. > I made a symlink named "libGLE.so" in the same directory ===> now, > PyOpenGL can run gle Commands ! > > That may give you some ideas... > > without any context, the following gle command should work : > gleGetJoinStyle() > gleSetJoinStyle(...) > This more complicated than that , if I import GLU before GLE, the behaviour is not the same: linux-qhf9:~ # python Python 2.7.8 (default, Sep 30 2014, 15:34:38) [GCC] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from OpenGL.GLE import * >>> gleGetJoinStyle() Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.7/site-packages/OpenGL/platform/baseplatform.py", line 407, in __call__ self.__name__, self.__name__, OpenGL.error.NullFunctionError: Attempt to call an undefined function gleGetJoinStyle, check for bool(gleGetJoinStyle) before calling >>> linux-qhf9:~ # python Python 2.7.8 (default, Sep 30 2014, 15:34:38) [GCC] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from OpenGL.GLU import * >>> from OpenGL.GLE import * >>> gleGetJoinStyle() 274 Take care, >> Mike >> >> >> >> -- >> ________________________________________________ >> Mike C. Fletcher >> Designer, VR Plumber, Coder >> http://www.vrplumber.com >> http://blog.vrplumber.com >> >> >> ------------------------------------------------------------------------------ >> >> >> _______________________________________________ >> PyOpenGL Homepage >> http://pyopengl.sourceforge.net >> _______________________________________________ >> PyOpenGL-Users mailing list >> PyO...@li... >> https://lists.sourceforge.net/lists/listinfo/pyopengl-users > > > > ------------------------------------------------------------------------------ > Go from Idea to Many App Stores Faster with Intel(R) XDK > Give your users amazing mobile app experiences with Intel(R) XDK. > Use one codebase in this all-in-one HTML5 development environment. > Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs. > http://pubads.g.doubleclick.net/gampad/clk?id=254741551&iu=/4140 > > > _______________________________________________ > PyOpenGL Homepage > http://pyopengl.sourceforge.net > _______________________________________________ > PyOpenGL-Users mailing list > PyO...@li... > https://lists.sourceforge.net/lists/listinfo/pyopengl-users |