-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Hi,
I meet an issue when I used the pyapr.converter.get_apr_interactive() function, but this error was not raised when I changed to pyapr.converter.get_apr(). The error mostly aligns with a package named filegui.py. In 370 line of this file,:
Traceback (most recent call last): File "/mnt/d/STUDY/PhD/GU/APR/APR.py", line 76, in <module> main() File "/mnt/d/STUDY/PhD/GU/APR/APR.py", line 21, in main brain() File "/mnt/d/STUDY/PhD/GU/APR/APR.py", line 59, in brain apr, parts = pyapr.converter.get_apr_interactive(np.squeeze(np.nan_to_num(img.astype('uint8'), 0)).astype('uint16'), File "/mnt/d/STUDY/PhD/GU/APR/pyapr/myenv/lib/python3.8/site-packages/pyapr/converter/converter_methods.py", line 120, in get_apr_interactive io_int = InteractiveIO() File "/mnt/d/STUDY/PhD/GU/APR/pyapr/myenv/lib/python3.8/site-packages/pyapr/utils/filegui.py", line 370, in __init__ self.app = Qt.QtGui.QApplication.instance() AttributeError: module 'pyqtgraph.Qt.QtGui' has no attribute 'QApplication'
After we changed 'Qapplication' to 'app = QtWidgets.QApplication(sys.argv)', another problem showed up:
qt.qpa.plugin: Could not load the Qt platform plugin "xcb".
Is it a Qt problem in the backend?