Python Forum
NullFunctionError in opengl - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: NullFunctionError in opengl (/thread-2688.html)



NullFunctionError in opengl - hsunteik - Apr-03-2017

Always when I call an opengl function,it will result in a NullFunctionError:trying to call an undefined function,so I need to check for print( bool(functionname)),which output False,so I need check my graphic card version and name to check for compability error,but I don't know how.
Some of the function that result this error are 
glutInit() and glGenVertexArrays().
What could be the most common cause of this problem and how to fix it?


RE: NullFunctionError in opengl - sparkz_alot - Apr-03-2017

Did you install PyOpenGL? If you received an error, post the entire traceback in the error code blocks.  You need to post any relevant code in the python code blocks.  Instructions for posting code, errors, output, etc are located here: BBCode Help.

Also refer to How to ask smart questions


RE: NullFunctionError in opengl - hsunteik - Apr-04-2017

Yes,I am quite sure I installe pyopengl,because some function works.
The reason I dint post the error and code block is because I am sure this error is not from my code,but from the software or hardware instead,because I have already opened a new python file and do print(bool(functionname))and it still returns false,that means my system dint have that function or is not supported.
I heard that I need to do something about activating contextattribute or core profile,what is it?
Please help?

Information:
Window 7 professional
Opengl version:4.0(equivalent to DirectX11)
Pyopengl version:3.1
Graphic card:Intel HD graphic 4400
Cpu:Intel core i3 1.8GHz
Vram: intergrated,not sure about how much memory there is.
Ram:4gb

Similar error:
http://stackoverflow.com/questions/19950518/python-opengl-error-nullfunctionerror-glgenbuffers