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

AttributeError: function 'glGetUniformLocation' not found #1

Open
MingYiDing opened this issue Dec 19, 2024 · 2 comments
Open

AttributeError: function 'glGetUniformLocation' not found #1

MingYiDing opened this issue Dec 19, 2024 · 2 comments

Comments

@MingYiDing
Copy link

[Genesis] [23:02:28] [INFO] Running on [NVIDIA GeForce RTX 4060 Ti] with backend gs.cuda. Device memory: 16.00 GB.
[Genesis] [23:02:28] [INFO] 🚀 Genesis initialized. 🔖 version: 0.2.0, 🌱 seed: None, 📏 precision: '32', 🐛 debug: False, 🎨 theme: 'dark'.
[Genesis] [23:02:28] [INFO] Scene <134f033> created.
[Genesis] [23:02:28] [INFO] Adding <gs.RigidEntity>. idx: 0, uid: <0e1534b>, morph: <gs.morphs.Plane>, material: <gs.materials.Rigid>.
[Genesis] [23:02:28] [INFO] Adding <gs.RigidEntity>. idx: 1, uid: , morph: <gs.morphs.MJCF(file='E:\Anaconda\envs\genesis\lib\site-packages\genesis\assets\xml/franka_emika_panda/panda.xml')>, material: <gs.materials.Rigid>.
[Genesis] [23:02:28] [WARNING] Overriding base link's pos with user provided value in morph.
[Genesis] [23:02:28] [WARNING] Overriding base link's quat with user provided value in morph.
[Genesis] [23:02:28] [INFO] Building scene <134f033>...
[Genesis] [23:02:40] [INFO] Compiling simulation kernels...
[Genesis] [23:02:54] [INFO] Building visualizer...
Traceback (most recent call last):
File "E:\00_Project\02_Genesis\genesis\01_JMR_case\hello_world.py", line 27, in
scene.build()
File "E:\Anaconda\envs\genesis\lib\site-packages\genesis\utils\misc.py", line 38, in wrapper
return method(self, *args, **kwargs)
File "E:\Anaconda\envs\genesis\lib\site-packages\genesis\engine\scene.py", line 556, in build
self._visualizer.build()
File "E:\Anaconda\envs\genesis\lib\site-packages\genesis\vis\visualizer.py", line 101, in build
self._context.build(self._scene)
File "E:\Anaconda\envs\genesis\lib\site-packages\genesis\vis\rasterizer_context.py", line 70, in build
self.jit = JITRenderer(self._scene, [], [])
File "E:\Anaconda\envs\genesis\lib\site-packages\genesis\ext\pyrender\jit_render.py", line 201, in init
self.gen_func_ptr()
File "E:\Anaconda\envs\genesis\lib\site-packages\genesis\ext\pyrender\jit_render.py", line 354, in gen_func_ptr
self.gl = GLWrapper()
File "E:\Anaconda\envs\genesis\lib\site-packages\genesis\ext\pyrender\numba_gl_wrapper.py", line 24, in init
load_func("glGetUniformLocation", GLint, GLuint, GLvoidp)
File "E:\Anaconda\envs\genesis\lib\site-packages\genesis\ext\pyrender\numba_gl_wrapper.py", line 52, in load_func
func_ptr = GL.platform.ctypesloader.buildFunction(
File "E:\Anaconda\envs\genesis\lib\site-packages\OpenGL\platform\ctypesloader.py", line 96, in buildFunction
return functionType( (name, dll), )
AttributeError: function 'glGetUniformLocation' not found
[Genesis] [23:02:55] [INFO] 💤 Exiting Genesis and caching compiled kernels...

There is pip list:
Package Version


absl-py 2.1.0
annotated-types 0.7.0
certifi 2024.12.14
charset-normalizer 3.4.0
coacd 1.0.5
colorama 0.4.6
contourpy 1.3.1
cycler 0.12.1
dataclasses-json 0.6.7
decorator 5.1.1
Deprecated 1.2.15
dill 0.3.9
etils 1.11.0
filelock 3.16.1
fonttools 4.55.3
freetype-py 2.5.1
fsspec 2024.10.0
genesis-world 0.2.0
glfw 2.8.0
idna 3.10
imageio 2.36.1
imageio-ffmpeg 0.5.1
importlib_resources 6.4.5
Jinja2 3.1.4
kiwisolver 1.4.7
lazy_loader 0.4
libigl 2.5.1
llvmlite 0.43.0
lxml 5.3.0
markdown-it-py 3.0.0
MarkupSafe 3.0.2
marshmallow 3.23.2
matplotlib 3.10.0
mdurl 0.1.2
moviepy 2.1.1
mpmath 1.3.0
msvc_runtime 14.42.34433
mujoco 3.2.5
mypy-extensions 1.0.0
networkx 3.4.2
numba 0.60.0
numpy 1.26.4
opencv-python 4.10.0.84
OpenEXR 3.3.2
packaging 24.2
pillow 10.4.0
pip 24.2
platformdirs 4.3.6
plotly 5.24.1
pooch 1.8.2
proglog 0.1.10
psutil 6.1.0
pycollada 0.8
pydantic 2.7.1
pydantic_core 2.18.2
PyGEL3D 0.5.2
pyglet 2.0.20
pygltflib 1.16.0
Pygments 2.18.0
pymeshlab 2023.12.post2
PyOpenGL 3.1.7
pyparsing 3.2.0
python-dateutil 2.9.0.post0
python-dotenv 1.0.1
pyvista 0.44.2
requests 2.32.3
rich 13.9.4
scikit-image 0.25.0
scipy 1.14.1
scooby 0.10.0
screeninfo 0.8.1
setuptools 75.1.0
six 1.17.0
sympy 1.13.1
taichi 1.7.2
tenacity 9.0.0
tetgen 0.6.4
tifffile 2024.12.12
torch 2.5.1+cu124
torchaudio 2.5.1+cu124
torchvision 0.20.1+cu124
tqdm 4.67.1
typing_extensions 4.12.2
typing-inspect 0.9.0
urllib3 2.2.3
vtk 9.3.1
wheel 0.44.0
wrapt 1.17.0
zipp 3.21.0

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2024 NVIDIA Corporation
Built on Thu_Mar_28_02:30:10_Pacific_Daylight_Time_2024
Cuda compilation tools, release 12.4, V12.4.131
Build cuda_12.4.r12.4/compiler.34097967_0

@zym787
Copy link

zym787 commented Dec 20, 2024

The same problem with Windows10, with all the dependencies installed

@rockali02
Copy link

pip install PyOpenGL-accelerate==3.1.5

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

3 participants