Re: Crash with python 3.5 on ubuntu 16.04
Matti Kariluoma <[email protected]> Mon, 20 Feb 2017 17:48:29 -0600
| Newsgroups | gmane.comp.python.opengl.user |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--===============3206101382496601606==
Content-Type: multipart/alternative;
boundary="------------4BF3417AB9CAB3E8BC679EA0"
This is a multi-part message in MIME format.
--------------4BF3417AB9CAB3E8BC679EA0
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
I wasn't able to reproduce your error (Ubuntu 16.10), how did you
install 3.0.2?
But before answering that! If its not a hard requirement to use 3.0.2 I
would suggest installing and using 3.1.0 :
# remove your current pyopengl, might through synaptic or with $ sudo
apt-get remove python3-pyopengl
$ sudo apt-get install python3-pip
$ python3 -m pip install pyopengl
...using 3.1.0 I saw no errors with your test script.
==
The most-recent code changes the line that errored out to:
def mapVBO( vbo, access=0x88BA ): # GL_READ_WRITE
If you really don't want to install 3.1.0, you could try editing
/usr/lib/python3/dist-packages/OpenGL/arrays/vbo.py line 430 and making
the change above-- you may find more errors though.
On 2/20/17 3:07 PM, Joel Palmius wrote:
> (cross-posted from the -devel list)
>
> I have a very simple script:
>
> #!/usr/bin/python3
> import OpenGL
> from OpenGL.GL import *
>
> Running this script with python 3.5.1 on an updated ubuntu 16.04 causes the following stack trace:
>
> Traceback (most recent call last):
> File "test.py", line 3, in <module>
> from OpenGL.GL import *
> File "/usr/lib/python3/dist-packages/OpenGL/GL/__init__.py", line 3, in <module>
> from OpenGL.GL.VERSION.GL_1_1 import *
> File "/usr/lib/python3/dist-packages/OpenGL/GL/VERSION/GL_1_1.py", line 10, in <module>
> from OpenGL import platform, constants, constant, arrays
> File "/usr/lib/python3/dist-packages/OpenGL/arrays/__init__.py", line 22, in <module>
> formathandler.FormatHandler.loadAll()
> File "/usr/lib/python3/dist-packages/OpenGL/arrays/formathandler.py", line 28, in loadAll
> cls.loadPlugin( entrypoint )
> File "/usr/lib/python3/dist-packages/OpenGL/arrays/formathandler.py", line 35, in loadPlugin
> plugin_class = entrypoint.load()
> File "/usr/lib/python3/dist-packages/OpenGL/plugins.py", line 14, in load
> return importByName( self.import_path )
> File "/usr/lib/python3/dist-packages/OpenGL/plugins.py", line 28, in importByName
> module = __import__( ".".join(moduleName), {}, {}, moduleName)
> File "/usr/lib/python3/dist-packages/OpenGL/arrays/vbo.py", line 430, in <module>
> def mapVBO( vbo, access=GL.GL_READ_WRITE ):
> AttributeError: module 'OpenGL.GL' has no attribute 'GL_READ_WRITE'
>
> Running exactly the same script with python 2.7.12 does not cause any crash.
>
> The installed version of pyopengl is 3.0.2.
>
> Is this a bug with pyopengl, and is this mailing list then the appropriate place to report it?
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> PyOpenGL Homepage
> http://pyopengl.sourceforge.net
> _______________________________________________
> PyOpenGL-Users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pyopengl-users
--------------4BF3417AB9CAB3E8BC679EA0
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: 8bit
<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>I wasn't able to reproduce your error (Ubuntu 16.10), how did you
install 3.0.2?</p>
<p>But before answering that! If its not a hard requirement to use
3.0.2 I would suggest installing and using 3.1.0 :</p>
<p># remove your current pyopengl, might through synaptic or with $
sudo apt-get remove python3-pyopengl<br>
</p>
<p>$ sudo apt-get install python3-pip</p>
<p>$ python3 -m pip install pyopengl<br>
</p>
...using 3.1.0 I saw no errors with your test script.<br>
<br>
==<br>
<p>The most-recent code changes the line that errored out to:</p>
<p>
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
<span class="pl-k">def</span> <span class="pl-en">mapVBO</span>(
<span class="pl-smi">vbo</span>, <span class="pl-smi">access</span><span
class="pl-k">=</span><span class="pl-c1"><span class="pl-k">0x</span>88BA</span>
): <span class="pl-c"><span class="pl-c">#</span> GL_READ_WRITE</span></p>
If you really don't want to install 3.1.0, you could try editing
/usr/lib/python3/dist-packages/OpenGL/arrays/vbo.py line 430 and
making the change above-- you may find more errors though.<br>
<br>
<div class="moz-cite-prefix">On 2/20/17 3:07 PM, Joel Palmius wrote:<br>
</div>
<blockquote
cite="mid:AM4PR0802MB2132D26959EF1B2844FC420EDB5E0@AM4PR0802MB2132.eurprd08.prod.outlook.com"
type="cite">
<pre wrap="">(cross-posted from the -devel list)
I have a very simple script:
#!/usr/bin/python3
import OpenGL
from OpenGL.GL import *
Running this script with python 3.5.1 on an updated ubuntu 16.04 causes the following stack trace:
Traceback (most recent call last):
File "test.py", line 3, in <module>
from OpenGL.GL import *
File "/usr/lib/python3/dist-packages/OpenGL/GL/__init__.py", line 3, in <module>
from OpenGL.GL.VERSION.GL_1_1 import *
File "/usr/lib/python3/dist-packages/OpenGL/GL/VERSION/GL_1_1.py", line 10, in <module>
from OpenGL import platform, constants, constant, arrays
File "/usr/lib/python3/dist-packages/OpenGL/arrays/__init__.py", line 22, in <module>
formathandler.FormatHandler.loadAll()
File "/usr/lib/python3/dist-packages/OpenGL/arrays/formathandler.py", line 28, in loadAll
cls.loadPlugin( entrypoint )
File "/usr/lib/python3/dist-packages/OpenGL/arrays/formathandler.py", line 35, in loadPlugin
plugin_class = entrypoint.load()
File "/usr/lib/python3/dist-packages/OpenGL/plugins.py", line 14, in load
return importByName( self.import_path )
File "/usr/lib/python3/dist-packages/OpenGL/plugins.py", line 28, in importByName
module = __import__( ".".join(moduleName), {}, {}, moduleName)
File "/usr/lib/python3/dist-packages/OpenGL/arrays/vbo.py", line 430, in <module>
def mapVBO( vbo, access=GL.GL_READ_WRITE ):
AttributeError: module 'OpenGL.GL' has no attribute 'GL_READ_WRITE'
Running exactly the same script with python 2.7.12 does not cause any crash.
The installed version of pyopengl is 3.0.2.
Is this a bug with pyopengl, and is this mailing list then the appropriate place to report it?
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! <a class="moz-txt-link-freetext" href="http://sdm.link/slashdot">http://sdm.link/slashdot</a>
_______________________________________________
PyOpenGL Homepage
<a class="moz-txt-link-freetext" href="http://pyopengl.sourceforge.net">http://pyopengl.sourceforge.net</a>
_______________________________________________
PyOpenGL-Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/pyopengl-users">https://lists.sourceforge.net/lists/listinfo/pyopengl-users</a>
</pre>
</blockquote>
<br>
</body>
</html>
--------------4BF3417AB9CAB3E8BC679EA0--
--===============3206101382496601606==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
--===============3206101382496601606==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net
_______________________________________________
PyOpenGL-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyopengl-users
--===============3206101382496601606==--