gary-harlow / HESXRD-Analysis-Toolkit

Software for the analysis of high-energy surface x-ray diffraction data
MIT License
5 stars 0 forks source link

Errors with pyqtgraph #3

Closed gary-harlow closed 3 years ago

gary-harlow commented 3 years ago

Cannot initialize filter fcidecomp: File not found qt5ct: using qt5ct plugin Traceback (most recent call last): File "main.py", line 43, in ex = interface.Ram() File "/home/giuseppe/HESXRD-Analysis-Toolkit/interface.py", line 39, in init self.initUI() File "/home/giuseppe/HESXRD-Analysis-Toolkit/interface.py", line 714, in initUI self.qRegion=pg.LinearRegionItem(orientation='horizontal') File "/usr/lib/python3/dist-packages/pyqtgraph/graphicsItems/LinearRegionItem.py", line 66, in init raise Exception('Orientation must be one of LinearRegionItem.Vertical or LinearRegionItem.Horizontal') Exception: Orientation must be one of LinearRegionItem.Vertical or LinearRegionItem.Horizontal

or

self.p.param('Crystal', 'a₁').setValue(2.885) ^ SyntaxError: Non-ASCII character '\xe2' in file /home/giuseppe/HESXRD-Analysis-Toolkit/interface.py on line 406, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

gary-harlow commented 3 years ago

This is a problem with having an older version of pyqtgraph, in linux please try to run:

pip3 install --user --upgrade pip pip3 install --user --upgrade pyqtgraph