-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Conflict with PyQT library #6174
Comments
This sounds similar to the bug I reported. #6141. Importing the pyrealsense2 library (and not calling anything) causes issues with wxPython and Tkinter on Windows. |
@zapaishchykova What's the SDK version when you get the issue? And did you check if python examples in SDK package work normally? Looking forward to your update. Thanks! |
Hi! Yes, python samples work just fine, it all happens when such imports are present alongside with librealsence import:
I am using SDK 2.0 but as far as I understand it is not used while I import the package in Python? |
I faced a very similar issue and solved it by adding these lines before any other imports:
Now pyrealsense2 can be imported together with the PyQt5 components and opening further windows from the GUI works, too. @alaricLEA maybe you can find a useful hint for your issue, too. This would be a minimal example which works with these additional lines, but breaks without them as soon as you try to open the file dialogue:
|
That works! Awesome, Thanks!! |
Works for me too. Many thanks! |
It works like a charm. Many thanks to @mareikethies ! |
Issue Description
So my problem is that when librealsense.py ( ver.2) cannot be imported into the project with PyQT. I open my UI, and then just one simple pressing button stops the app completely. I didn't call any functions from libsense library, it's just simple:
import pyrealsense2 as rs
The more frustrating is that it doesn't show any error. Seems to be similar to the #4856 , but i don't get what means "import localy".
Also tried to build wrapper from wheel/ installing with
pip install pyrealsense2
, neither worked. Also tried building from source with this https://github.com/IntelRealSense/librealsense/blob/master/doc/installation_windows.md , but after building solution in VS I don't see any files in python wrapper folder so I gave up.Any suggestions on how to tackle this issue will be much appreciated!
The text was updated successfully, but these errors were encountered: