I suspect your graphics card do not have framebuffer extension.
Have look at the procedure to call opengl extensions from python.
[
^]
I have no experience in opengl in python. In windows I have retrieve the function pointers to get framebuffer extension functions. If I try to run my application in a pc without Graphics card it will return NULL pointer for glgenframebuffer function.