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 #237

Open
FazedWithPhase opened this issue Dec 22, 2024 · 2 comments
Open

AttributeError: function 'glGetUniformLocation' not found #237

FazedWithPhase opened this issue Dec 22, 2024 · 2 comments

Comments

@FazedWithPhase
Copy link

I tried to run this code:
image
and this error happened:
AttributeError: function 'glGetUniformLocation' not found

How do I fix this?

@Ed-Peterson
Copy link

OpenGL version: 4.6.0 NVIDIA 566.36
GPU: GTX 1060 6GB
Error messages: glGetUniformLocation and capture_frame

@IaMaAVerYRANdOmPerSoN
Copy link

[Genesis] [14:28:01] [INFO] ╭─────────────────────────────────────────────────────────────────────────────────────╮
[Genesis] [14:28:01] [INFO] │┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉ Genesis ┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉┈┉│
[Genesis] [14:28:01] [INFO] ╰─────────────────────────────────────────────────────────────────────────────────────╯
[Genesis] [14:28:01] [INFO] Running on [NVIDIA GeForce RTX 3060] with backend gs.cuda. Device memory: 12.00 GB.
[Genesis] [14:28:02] [INFO] 🚀 Genesis initialized. 🔖 version: 0.2.0, 🌱 seed: None, 📏 precision: '32', 🐛 debug: False, 🎨 theme: 'dark'.
[Genesis] [14:28:02] [INFO] Scene created.
[Genesis] [14:28:02] [INFO] Adding <gs.RigidEntity>. idx: 0, uid: , morph: <gs.morphs.Plane>, material: <gs.materials.Rigid>.
[Genesis] [14:28:02] [INFO] Adding <gs.RigidEntity>. idx: 1, uid: <000d928>, morph: <gs.morphs.MJCF(file='C:\Users\wenmi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\genesis\assets\xml/franka_emika_panda/panda.xml')>, material: <gs.materials.Rigid>.
[Genesis] [14:28:03] [INFO] Building scene ...
[Genesis] [14:28:19] [INFO] Compiling simulation kernels...
[Genesis] [14:28:39] [INFO] Building visualizer...
Traceback (most recent call last):
File "c:\Users\wenmi\Hello_Genesis.py", line 34, in
scene.build()
File "C:\Users\wenmi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\genesis\utils\misc.py", line 38, in wrapper
return method(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\wenmi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\genesis\engine\scene.py", line 556, in build
self._visualizer.build()
File "C:\Users\wenmi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\genesis\vis\visualizer.py", line 101, in build
self._context.build(self._scene)
File "C:\Users\wenmi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\genesis\vis\rasterizer_context.py", line 70, in build
self.jit = JITRenderer(self._scene, [], [])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\wenmi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\genesis\ext\pyrender\jit_render.py", line 201, in init
self.gen_func_ptr()
File "C:\Users\wenmi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\genesis\ext\pyrender\jit_render.py", line 354, in gen_func_ptr
self.gl = GLWrapper()
^^^^^^^^^^^
File "C:\Users\wenmi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\genesis\ext\pyrender\numba_gl_wrapper.py", line 24, in init
load_func("glGetUniformLocation", GLint, GLuint, GLvoidp)
File "C:\Users\wenmi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\genesis\ext\pyrender\numba_gl_wrapper.py", line 52, in load_func
func_ptr = GL.platform.ctypesloader.buildFunction(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\wenmi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\OpenGL\platform\ctypesloader.py", line 96, in buildFunction
return functionType( (name, dll), )
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: function 'glGetUniformLocation' not found
[Genesis] [14:28:40] [INFO] 💤 Exiting Genesis and caching compiled kernels...

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