Red Hat Bugzilla – Bug 1010518
[abrt] cura-13.04-2.fc19: special.py:323:glutInit:TypeError: 'NoneType' object is not callable
Last modified: 2014-10-27 12:48:54 EDT
Description of problem:
I simply installed cura using 'sudo yum install cura' in my terminal on fedora 19 and then tried running cura by typing 'cura' into my terminal. I also tried 'sudo cura' to the same effect.
Version-Release number of selected component:
cmdline: /usr/bin/python /bin/cura
runlevel: N 5
special.py:323:glutInit:TypeError: 'NoneType' object is not callable
Traceback (most recent call last):
File "/usr/lib64/python2.7/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 14656, in <lambda>
lambda event: event.callable(*event.args, **event.kw) )
File "/usr/lib/python2.7/site-packages/Cura/gui/splashScreen.py", line 16, in DoCallback
File "/usr/lib/python2.7/site-packages/Cura/gui/app.py", line 39, in afterSplashCallback
from Cura.gui import mainWindow
File "/usr/lib/python2.7/site-packages/Cura/gui/mainWindow.py", line 9, in <module>
from Cura.gui import preview3d
File "/usr/lib/python2.7/site-packages/Cura/gui/preview3d.py", line 24, in <module>
from Cura.gui.util import opengl
File "/usr/lib/python2.7/site-packages/Cura/gui/util/opengl.py", line 20, in <module>
File "/usr/lib/python2.7/site-packages/OpenGL/GLUT/special.py", line 323, in glutInit
_base_glutInit( ctypes.byref(count), holder )
TypeError: 'NoneType' object is not callable
Local variables in innermost frame:
os: <module 'os' from '/usr/lib64/python2.7/os.pyc'>
holder: <OpenGL.GLUT.special.c_char_p_Array_1 object at 0x3168a70>
Created attachment 800828 [details]
Created attachment 800829 [details]
Created attachment 800830 [details]
Thanks for reporting. I have the very same version of the package and never got this error, will definitely look at it.
According to this  it appears to be missing freeglut, but that's not possible, as PyOpenGL requires it.
However this  leaded me to an idea: both Cura and PyOpenGL are noarch. PyOpenGL requires ANY freeglut. So after installing freeglut.i686 and removing freeglut.x86_64, lot's of stuff went away, but PyOpenGL and Cura stayed. After, I got the very same error.
So, could you please check, if you have 64bit freeglut? And if not, please check if installing cura without any freeglut brings 654bit or 32bit freeglut.
Here I got:
# yum remove freeglut cura PyOpenGL
# yum install cura # or PyOpenGL
freeglut x86_64 ...
That means you might have 32bit freeglut form some weird reason, but should not get it from yum.