Note that there are some explanatory texts on larger screens.

plurals
  1. POpyOpenGL exe made with PyInstaller gives attributeerror
    primarykey
    data
    text
    <p>I'm trying to make lesson18.py from the pyOpenGL examples into an exe but when compiled it gives this error:</p> <pre><code>Traceback (most recent call last): File "&lt;string&gt;", line 46, in &lt;module&gt; File "C:\pyinstaller-1.5.1\iu.py", line 436, in importHook mod = _self_doimport(nm, ctx, fqname) File "C:\pyinstaller-1.5.1\iu.py", line 521, in doimport exec co in mod.__dict__ File "pyinstall\build\pyi.win32\lesson18\outPYZ1.pyz/OpenGL.GL", line 3, in &lt;m odule&gt; File "C:\pyinstaller-1.5.1\iu.py", line 436, in importHook mod = _self_doimport(nm, ctx, fqname) File "C:\pyinstaller-1.5.1\iu.py", line 521, in doimport exec co in mod.__dict__ File "pyinstall\build\pyi.win32\lesson18\outPYZ1.pyz/OpenGL.GL.VERSION.GL_1_1" , line 10, in &lt;module&gt; File "C:\pyinstaller-1.5.1\iu.py", line 477, in importHook mod = self.doimport(nm, ctx, ctx+'.'+nm) File "C:\pyinstaller-1.5.1\iu.py", line 521, in doimport exec co in mod.__dict__ File "pyinstall\build\pyi.win32\lesson18\outPYZ1.pyz/OpenGL.arrays", line 22, in &lt;module&gt; File "pyinstall\build\pyi.win32\lesson18\outPYZ1.pyz/OpenGL.arrays.formathandl er", line 28, in loadAll File "pyinstall\build\pyi.win32\lesson18\outPYZ1.pyz/OpenGL.arrays.formathandl er", line 35, in loadPlugin File "pyinstall\build\pyi.win32\lesson18\outPYZ1.pyz/OpenGL.plugins", line 14, in load File "pyinstall\build\pyi.win32\lesson18\outPYZ1.pyz/OpenGL.plugins", line 28, in importByName File "C:\pyinstaller-1.5.1\iu.py", line 436, in importHook mod = _self_doimport(nm, ctx, fqname) File "C:\pyinstaller-1.5.1\iu.py", line 521, in doimport exec co in mod.__dict__ File "pyinstall\build\pyi.win32\lesson18\outPYZ1.pyz/OpenGL.arrays.vbo", line 430, in &lt;module&gt; AttributeError: 'module' object has no attribute 'GL_READ_WRITE' Press any key to continue . . . </code></pre> <p>This happens with all programs(including my own) that use pyOpenGL, the error is the same.</p> <p>Are there any additional tricks(imports, etc.) to make a working executable with pyInstaller(I know there are with py2exe, but I prefer pyInstaller)?</p> <p>My python version is 2.7 pyOpenGL ver.: 3.0.2a5 pyinstaller ver.: 1.5.1</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload