# Zed 2 Camera openGl problem

**URL:** <https://community.stereolabs.com/t/zed-2-camera-opengl-problem/148>\
**Category:** Uncategorized\
**Created:** [March 14, 2021, 6:10pm UTC](https://community.stereolabs.com/t/zed-2-camera-opengl-problem/148 "2021-03-14T18:10:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dlraro](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/d/d6d6ee/32.png) [@dlraro](https://community.stereolabs.com/u/dlraro)\
**Post date:** [March 14, 2021, 6:10pm UTC](https://community.stereolabs.com/t/zed-2-camera-opengl-problem/148/1 "2021-03-14T18:10:41Z")

</div>

Hello Everyone

I have installed all the requirements and i have run a couple of demos but when i try to run object\_detection\_image\_viewer.py it gives me this error

OpenGL.error.NullFunctionError: Attempt to call an undefined function glutInit, check for bool(glutInit) before calling

does anyhow have an idea why?

---

<div class="post-metadata">

**Author:** ![quythao.truong](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/q/c68b51/32.png) [@quythao.truong](https://community.stereolabs.com/u/quythao.truong)\
**Post date:** [March 15, 2021, 9:17am UTC](https://community.stereolabs.com/t/zed-2-camera-opengl-problem/148/2 "2021-03-15T09:17:24Z")

</div>

Hi @dlraro,

You might need to update your OpenGL packages.  
You can find the latest versions on [that page](https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyopengl). You need to download PyOpenGL and PyOpenGL\_accelerate packages.  
To install them, download the .whl files matching your Python version and run the command :  
`python3 -m pip install <name_of_your_whl_file> `

---

<div class="post-metadata">

**Author:** ![dlraro](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/d/d6d6ee/32.png) [@dlraro](https://community.stereolabs.com/u/dlraro)\
**Post date:** [March 16, 2021, 8:28am UTC](https://community.stereolabs.com/t/zed-2-camera-opengl-problem/148/3 "2021-03-16T08:28:27Z")

</div>

Hello!

Thanks for the reply, i currently have both installed and is version 3.1.5  
I am currently running it on windows 10  
Cuda 10.2  
and an RTX 5000  
if that information helps

---

<div class="post-metadata">

**Author:** ![quythao.truong](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/q/c68b51/32.png) [@quythao.truong](https://community.stereolabs.com/u/quythao.truong)\
**Post date:** [March 16, 2021, 8:50am UTC](https://community.stereolabs.com/t/zed-2-camera-opengl-problem/148/4 "2021-03-16T08:50:24Z")

</div>

Hi @dlraro,

What version of Python are you using ? Are you running the sample inside a virtual environment ?  
If that is the case, make sure to install the packages inside your virtual environment.

Otherwise, can you try running `python3 -m pip install --ignore-installed <name_of_your_whl_file>` instead and see if that helps with your issue ? This will overwrite existing packages on your system.

---

<div class="post-metadata">

**Author:** ![dlraro](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/d/d6d6ee/32.png) [@dlraro](https://community.stereolabs.com/u/dlraro)\
**Post date:** [March 17, 2021, 8:51am UTC](https://community.stereolabs.com/t/zed-2-camera-opengl-problem/148/5 "2021-03-17T08:51:40Z")

</div>

No, I’m running it on my base environment and i have all the packages installed i have been able to use the Zed explorer and so on. but not to run the python script , object detection  
im using python 3.6.8 and this is the packages that i have installed

 ![image](https://community.stereolabs.com/uploads/default/original/1X/292e832203269e8cf9130117547c776b7b312297.png)
