Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
NullFunctionError in opengl
#1
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?
Reply
#2
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
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Reply
#3
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/19950...genbuffers
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Pygame with OpenGL on RPI Zero without X: invalid operation aserranoh 0 1,432 Mar-20-2022, 09:49 PM
Last Post: aserranoh
  Creating shadow in OpenGL with normal? hsunteik 0 3,371 Apr-27-2017, 08:23 AM
Last Post: hsunteik
  how to destroy or remove object rendered with opengl from the screen? hsunteik 1 7,055 Apr-09-2017, 01:30 PM
Last Post: hsunteik
  Traditional OpenGL vs GLSL? hsunteik 2 4,064 Mar-27-2017, 03:54 PM
Last Post: nilamo
  How to set the window icon with OpenGL GLUT hsunteik 3 6,257 Mar-19-2017, 11:53 AM
Last Post: Larz60+
  NullFunctionError opengl glutInit hsunteik 3 12,396 Mar-18-2017, 10:25 AM
Last Post: wavic
  how to draw terrain like minecraft in python using opengl with perlin noise value? hsunteik 0 5,511 Jan-21-2017, 11:45 AM
Last Post: hsunteik
  Can OpenGL object be overlap? hsunteik 4 5,098 Jan-19-2017, 02:43 PM
Last Post: Windspar
  find location of opengl object? hsunteik 1 3,349 Jan-17-2017, 11:30 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020