Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to install the pyOpenGL correctly #33

Closed
zyj-2000 opened this issue Feb 22, 2023 · 0 comments
Closed

How to install the pyOpenGL correctly #33

zyj-2000 opened this issue Feb 22, 2023 · 0 comments

Comments

@zyj-2000
Copy link

zyj-2000 commented Feb 22, 2023

Thanks for the great job. I have run the ./RTL/main.py and come across the fault:

Traceback (most recent call last):
File "RTL/main.py", line 162, in
scene = MonoPortScene(size=(256, 256))
File "/home/zyj/Projects/Digital_Human_Recons/MonoPort/RTL/scene.py", line 102, in init
create_opengl_context(size[0], size[1])
File "/home/zyj/Projects/Digital_Human_Recons/MonoPort/monoport/lib/render/gl/glcontext.py", line 43, in create_opengl_context
glutInit()
File "/home/zyj/.conda/envs/torchzyj/lib/python3.8/site-packages/OpenGL/GLUT/special.py", line 333, in glutInit
_base_glutInit( ctypes.byref(count), holder )
File "/home/zyj/.conda/envs/torchzyj/lib/python3.8/site-packages/OpenGL/platform/baseplatform.py", line 423, in call
raise error.NullFunctionError(
OpenGL.error.NullFunctionError: Attempt to call an undefined function glutInit, check for bool(glutInit) before calling

I search the Internet for help and know it may be the incorrect installation of pyOpenGL. However, many solutions on the Internet are based on win_amd64 platform. I wonder how to install the pyOpenGL in Ubuntu18.04 correctly?

@zyj-2000 zyj-2000 closed this as completed Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant