Throws an error on run on MacOS
I was able to get it working on a windows machine. A Google search of this suggests that it is an issue with python 3.7 and macOS Big Sur and later https://stackoverflow.com/questions/63475461/unable-to-import-opengl-gl-in-python-on-macos
System info:
Model Name: Mac mini
Model Identifier: Macmini8,1
Processor Name: Quad-Core Intel Core i3
Processor Speed: 3.6 GHz
Number of Processors: 1
Total Number of Cores: 4
L2 Cache (per Core): 256 KB
L3 Cache: 6 MB
Memory: 8 GB
System Version: macOS 11.6.7 (20G630)
Kernel Version: Darwin 20.6.0

Throws an error on run on MacOS
I was able to get it working on a windows machine. A Google search of this suggests that it is an issue with python 3.7 and macOS Big Sur and later https://stackoverflow.com/questions/63475461/unable-to-import-opengl-gl-in-python-on-macos
System info:
Model Name: Mac mini
Model Identifier: Macmini8,1
Processor Name: Quad-Core Intel Core i3
Processor Speed: 3.6 GHz
Number of Processors: 1
Total Number of Cores: 4
L2 Cache (per Core): 256 KB
L3 Cache: 6 MB
Memory: 8 GB
System Version: macOS 11.6.7 (20G630)
Kernel Version: Darwin 20.6.0