<p style="font-size:14px;white-space:normal;">
Hi,
</p>
<p style="font-size:14px;white-space:normal;">
<br>
</p>
<p style="font-size:14px;white-space:normal;">
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:
</p>
<p style="font-size:14px;white-space:normal;">
'mcplot-pyqtgraph C:\mcstas-2.7.1\source_test\13b20220704_20221031_165658
</p>
<p style="font-size:14px;white-space:normal;margin-bottom:0px;">
loading system configuration
</p>
<p style="font-size:14px;white-space:normal;margin-bottom:0px;">
mcplot error: module 'pyqtgraph.Qt.QtGui' has no attribute 'QApplication'
</p>
<p style="font-size:14px;white-space:normal;margin-bottom:0px;">
Traceback (most recent call last):
</p>
<p style="font-size:14px;white-space:normal;margin-bottom:0px;">
File "C:\\mcstas-2.7.1\\lib\\tools\\Python\\mcplot\\pyqtgraph\\mcplot.py", line 67, in <module>
</p>
<p style="font-size:14px;white-space:normal;margin-bottom:0px;">
main(args)
</p>
<p style="font-size:14px;white-space:normal;margin-bottom:0px;">
File "C:\\mcstas-2.7.1\\lib\\tools\\Python\\mcplot\\pyqtgraph\\mcplot.py", line 57, in main
</p>
<p style="font-size:14px;white-space:normal;margin-bottom:0px;">
raise e
</p>
<p style="font-size:14px;white-space:normal;margin-bottom:0px;">
File "C:\\mcstas-2.7.1\\lib\\tools\\Python\\mcplot\\pyqtgraph\\mcplot.py", line 49, in main
</p>
<p style="font-size:14px;white-space:normal;margin-bottom:0px;">
plotter = pqtgfrontend.McPyqtgraphPlotter(graph, sourcedir=loader.directory, plot_func=plotfuncs.plot, invcanvas=args.invcanvas)
</p>
<p style="font-size:14px;white-space:normal;margin-bottom:0px;">
File "C:\mcstas-2.7.1\lib\tools\Python\mcplot\pyqtgraph\..\..\mccodelib\pqtgfrontend.py", line 46, in __init__
</p>
<p style="font-size:14px;white-space:normal;margin-bottom:0px;">
self.app = QtGui.QApplication(sys.argv)
</p>
<p style="font-size:14px;white-space:normal;margin-bottom:0px;">
AttributeError: module 'pyqtgraph.Qt.QtGui' has no attribute 'QApplication''
</p>
<p style="font-size:14px;white-space:normal;margin-bottom:0px;">
<br>
</p>
<p style="font-size:14px;white-space:normal;margin-bottom:0px;">
Can you give me some advice on how to solve this problem?
</p>
<p style="font-size:14px;white-space:normal;margin-bottom:0px;">
<br>
</p>
<p style="font-size:14px;white-space:normal;margin-bottom:0px;">
<br>
</p>
<p style="font-size:14px;white-space:normal;margin-bottom:0px;">
Best regards,
</p>
<p style="font-size:14px;white-space:normal;margin-bottom:0px;">
Lisa
</p>