ImportError: No module named 'PIL'


If you see the following import error:

ImportError: No module named 'PIL'

This can be corrected by:

pip install image


This got rid of the PIL error, but then I got an error:
“OpenGL.error.NullFunctionError: Attempt to call an undefined function glutInit, check for bool(glutInit) before calling”
when trying to run the cablenet example from here:

Does the cablenet example no longer run, or is there something wrong with my install?


hi paul,

sorry about that.
i will check and get back to you with a solution…



lost track of this a bit…

i can’t reproduce the error.
could you paste the setup function of the default viewer here?