Skip to content

Module 'pyqtgraph.Qt.QtGui' has no attribute 'QApplication' #68

@hanzh346

Description

@hanzh346

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?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions