[mcstas-users] help!--AttributeError: module 'pyqtgraph.Qt.QtGui' has no attribute 'QApplication'
曾智蓉
zengzr at ihep.ac.cn
Tue Nov 1 03:21:53 CET 2022
Hi,
I'm using McStas to simulate the instrument. I uninstalled my old version of McStas and installed the version 2.7.1. But there is a problem with the 'plot' function. I can't use it. Error prompt always pops up when compiling. The error is as following:
'mcplot-pyqtgraph C:\mcstas-2.7.1\source_test\13b20220704_20221031_165658
loading system configuration
mcplot error: module 'pyqtgraph.Qt.QtGui' has no attribute 'QApplication'
Traceback (most recent call last):
File "C:\\mcstas-2.7.1\\lib\\tools\\Python\\mcplot\\pyqtgraph\\mcplot.py", line 67, in <module>
main(args)
File "C:\\mcstas-2.7.1\\lib\\tools\\Python\\mcplot\\pyqtgraph\\mcplot.py", line 57, in main
raise e
File "C:\\mcstas-2.7.1\\lib\\tools\\Python\\mcplot\\pyqtgraph\\mcplot.py", line 49, in main
plotter = pqtgfrontend.McPyqtgraphPlotter(graph, sourcedir=loader.directory, plot_func=plotfuncs.plot, invcanvas=args.invcanvas)
File "C:\mcstas-2.7.1\lib\tools\Python\mcplot\pyqtgraph\..\..\mccodelib\pqtgfrontend.py", line 46, in __init__
self.app = QtGui.QApplication(sys.argv)
AttributeError: module 'pyqtgraph.Qt.QtGui' has no attribute 'QApplication''
Can you give me some advice on how to solve this problem?
Best regards,
Lisa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20221101/29ba312f/attachment.html>
More information about the mcstas-users
mailing list