I am running windows 10, I tried both running the exe and running the gui_main in command. Neither work and both error code/throw exception. Cannot tell as the programs just immediately shutdown without time to read what the errors say.
I checked to see if all python libs are the versions that the industrial visualizer call for, and all my versions are correct. But when i pip list some are missing, could this be the issue? Although they are not present when i pip list, they are called correctly and no errors occur with the initial imports of the libraries.
Thanks for any help with this
Python version: sys.version_info(major=3, minor=6, micro=0, releaselevel='final', serial=0)
ARB::createContext: wglCreateContextAttribsARB() failed (GL error code: 0x0) for format: QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 1, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 1, samples -1, swapBehavior QSurfaceFormat::DoubleBuffer, swapInterval -1, colorSpace QSurfaceFormat::DefaultColorSpace, profile QSurfaceFormat::NoProfile), shared context: 0x0 (The operation completed successfully.)
GDI::createContext: wglCreateContext failed. (The operation completed successfully.)
Unable to create a GL Context.
Traceback (most recent call last):
File "C:\Users\Ryan Pryor\AppData\Local\Programs\Python\Python36\lib\site-packages\OpenGL\latebind.py", line 43, in __call__
return self._finalCall( *args, **named )
TypeError: 'NoneType' object is not callable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Ryan Pryor\AppData\Local\Programs\Python\Python36\lib\site-packages\pyqtgraph\opengl\GLViewWidget.py", line 60, in addItem
item.initializeGL()
File "C:\Users\Ryan Pryor\AppData\Local\Programs\Python\Python36\lib\site-packages\pyqtgraph\opengl\items\GLScatterPlotItem.py", line 73, in initializeGL
self.pointTexture = glGenTextures(1)
File "C:\Users\Ryan Pryor\AppData\Local\Programs\Python\Python36\lib\site-packages\OpenGL\latebind.py", line 47, in __call__
return self._finalCall( *args, **named )
File "C:\Users\Ryan Pryor\AppData\Local\Programs\Python\Python36\lib\site-packages\OpenGL\wrapper.py", line 678, in wrapperCall
raise err
File "C:\Users\Ryan Pryor\AppData\Local\Programs\Python\Python36\lib\site-packages\OpenGL\wrapper.py", line 671, in wrapperCall
result = wrappedOperation( *cArguments )
File "C:\Users\Ryan Pryor\AppData\Local\Programs\Python\Python36\lib\site-packages\OpenGL\platform\baseplatform.py", line 415, in __call__
return self( *args, **named )
File "C:\Users\Ryan Pryor\AppData\Local\Programs\Python\Python36\lib\site-packages\OpenGL\error.py", line 234, in glCheckError
baseOperation = baseOperation,
OpenGL.error.GLError: GLError(
err = 1282,
description = b'invalid operation',
baseOperation = glGenTextures,
pyArgs = (
1,
<object object at 0x000002B8AAFD9720>,
),
cArgs = (1, array([0], dtype=uint32)),
cArguments = (1, array([0], dtype=uint32))
)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "gui_main.py", line 1532, in <module>
main = Window(size=size)
File "gui_main.py", line 196, in __init__
self.init3dGraph()
File "gui_main.py", line 733, in init3dGraph
self.pcplot.addItem(self.scatter)
File "C:\Users\Ryan Pryor\AppData\Local\Programs\Python\Python36\lib\site-packages\pyqtgraph\opengl\GLViewWidget.py", line 62, in addItem
self.checkOpenGLVersion('Error while adding item %s to GLViewWidget.' % str(item))
File "C:\Users\Ryan Pryor\AppData\Local\Programs\Python\Python36\lib\site-packages\pyqtgraph\opengl\GLViewWidget.py", line 429, in checkOpenGLVersion
ver = glGetString(GL_VERSION).split()[0]
File "C:\Users\Ryan Pryor\AppData\Local\Programs\Python\Python36\lib\site-packages\OpenGL\platform\baseplatform.py", line 415, in __call__
return self( *args, **named )
File "C:\Users\Ryan Pryor\AppData\Local\Programs\Python\Python36\lib\site-packages\OpenGL\error.py", line 234, in glCheckError
baseOperation = baseOperation,
OpenGL.error.GLError: GLError(
err = 1282,
description = b'invalid operation',
baseOperation = glGetString,
cArguments = (GL_VERSION,)
)
I managed to catch the error throw. Let me know if this helps
Can you run the code on python 3.7.3 and run the setupEnvironment.bat script, then see if it work? Make sure that you use pip on the correct version of python on your computer. I like to use a venv for this.
https://docs.python.org/3/library/venv.html
Best,
(project) C:\Users\Ryan Pryor\Desktop>C:\ti\radar_toolbox_1_00_01_07\radar_toolbox_1_00_01_07\tools\visualizers\Industrial_Visualizer\mmWave_Industrial_Visualizer
Python is 64 bit
Python version: sys.version_info(major=3, minor=7, micro=9, releaselevel='final', serial=0)
ARB::createContext: wglCreateContextAttribsARB() failed (GL error code: 0x0) for format: QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 1, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 1, samples -1, swapBehavior QSurfaceFormat::DoubleBuffer, swapInterval -1, colorSpace QSurfaceFormat::DefaultColorSpace, profile QSurfaceFormat::NoProfile), shared context: 0x1 (The operation completed successfully.)
GDI::createContext: wglCreateContext failed. (The operation completed successfully.)
Unable to create a GL Context.
Traceback (most recent call last):
File "OpenGL\latebind.py", line 43, in __call__
TypeError: 'NoneType' object is not callable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "pyqtgraph\opengl\GLViewWidget.py", line 60, in addItem
File "pyqtgraph\opengl\items\GLScatterPlotItem.py", line 73, in initializeGL
File "OpenGL\latebind.py", line 47, in __call__
File "OpenGL\wrapper.py", line 678, in wrapperCall
File "OpenGL\wrapper.py", line 671, in wrapperCall
File "OpenGL\platform\baseplatform.py", line 415, in __call__
File "OpenGL\error.py", line 234, in glCheckError
OpenGL.error.GLError: GLError(
err = 1282,
description = b'invalid operation',
baseOperation = glGenTextures,
pyArgs = (
1,
<object object at 0x0000028BA44A5D50>,
),
cArgs = (1, array([0], dtype=uint32)),
cArguments = (1, array([0], dtype=uint32))
)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "gui_main.py", line 1532, in <module>
File "gui_main.py", line 196, in __init__
File "gui_main.py", line 733, in init3dGraph
File "pyqtgraph\opengl\GLViewWidget.py", line 62, in addItem
File "pyqtgraph\opengl\GLViewWidget.py", line 429, in checkOpenGLVersion
File "OpenGL\platform\baseplatform.py", line 415, in __call__
File "OpenGL\error.py", line 234, in glCheckError
OpenGL.error.GLError: GLError(
err = 1282,
description = b'invalid operation',
baseOperation = glGetString,
cArguments = (GL_VERSION,)
)
[4064] Failed to execute script 'gui_main' due to unhandled exception!
Getting the same error after trying inside venv awith python 3.7.3
All the pip lists were present and the folders are present in the venv directory as well. No launch still.
I tried this on my home desktop rather than my work computer and it works just fine, I can launch the visualizer.exe first try. Is there some sort of graphical necessity? Like a certain graphics driver or must you need a discrete graphics card to run the exe? At this point, I'm running out of ideas to get it working on my work system.
As far as I understand there are no graphics cards/GPU requirements. Can you print the python version and pip versions that you found before? pip versioning will matter here for the libraries used. I am using the pip versions in the setupEnvironment.bat script and python 3.7.3.
Best,
All versions are identical to those that are listed under the visualizer pages, as well, the python version says 3.6 on the page, but I am using 3.7.3 as you suggested earlier. I more concerned that the error above is happening only on of my computers, and not the other. Only one with a discrete card works properly, but I do not have access to the radar sensor on the home computer.
The error above mentioned is still occurring, I'm going to give it one last go and reinstall all packages, and maybe even the radar toolbox, mmwave stuff, etc.
Please also print the pip versions you're using to this thread so we can continue to support you here. Use pip list as I have done below.
Best,
altgraph 0.17.3
backcall 0.2.0
colorama 0.4.6
debugpy 1.6.7
decorator 5.1.1
entrypoints 0.4
fbs 1.2.1
ipykernel 6.16.2
ipython 7.34.0
jedi 0.18.2
joblib 1.2.0
jupyter_client 7.4.9
jupyter_core 4.12.0
macholib 1.16.2
matplotlib-inline 0.1.6
nest-asyncio 1.5.6
numpy 1.19.4
packaging 23.1
parso 0.8.3
pefile 2023.2.7
pickleshare 0.7.5
pip 23.1.2
prompt-toolkit 3.0.38
psutil 5.9.5
Pygments 2.15.1
PyInstaller 3.4
PyOpenGL 3.1.5
PyQt5 5.15.4
PyQt5-Qt5 5.15.2
PyQt5-sip 12.12.1
pyqtgraph 0.11.0
pyserial 3.5
python-dateutil 2.8.2
pywin32 306
pywin32-ctypes 0.2.0
pyzmq 25.0.2
scikit-learn 0.21.2
scipy 1.7.3
setuptools 40.8.0
six 1.16.0
tornado 6.2
traitlets 5.9.0
wcwidth 0.2.6
wheel 0.40.0
This is my pip list above.
The console from above that was showing 3.7.9 was showing a previous python from another user that used this laptop, which has since been uninstalled.
Hi Ryan,
Is your work computer particularly underpowered? I've been googling some of the key phrases in your error message and they seem to relate to running too many tasks on your computer at once?
https://bugreports.qt.io/browse/QTBUG-52397
Best,
It has an i7-6700 something and an older gtx card (probably in 600 or 700 series), and over 12GB of RAM. SSD storage. That shouldn't be the issue, but it is possible. There doesn't seem to be any major performance issues when running too many programs as far as I can tell. Yesterday I checked other users on the PC for any remnant Python or pip installs and got rid of those, so that checks another thing off the list of potentials. Let me know if you get any other ideas.
Really appreciating the help.
My home desktop is really new with 4000 series Ryzen and a 3000 series RTX card. Basically, top-of-the-line gear if that helps.
Hi Ryan,
Yea I'm not sure at this point. It seems pretty clear to me that it's a python issue at this point. Did you try the venv? That should ensure that other pip/pythons on your computer don't interfere.
Best,
Did some deep diving into the particular error I am having, seems its a issue with the OpenGL texture creation at runtime for the GPU, I am thinking it is hardware related, rather than python/libraries.
Opened up NVIDIA control panel and the pc is actually running a gtx 960M, made sure that it was the dedicated visual output and assigned it to OpenGL processes specifically (as the CPU has integrated). Still nothing though.
Only difference between work pc and home pc is hardware, and yes I tried the virtual environment again, to no avail.
The traceback seems to be to creating the actual textures themselves off the get go, specifically the 3D scatter plot. If I delete the line for the scatter plot, the program and the GUI runs perfectly, otherwise nothing, just throws the GLGenTexture error call.
Anyways, again, really appreciate all the help.
Alright, well it sounds like you have a workaround for now so I will close this thread. Good luck and don't hesitate to reach out if you run into more trouble.
Best,