You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered a TypeError when trying to run QSpectrumAnalyzer with Python 3.12. The error was due to setRange expecting integer arguments, but receiving a float instead.
To fix:
edit qspectrumanalyzer-master/qspectrumanalyzer/main.py
Fedora 40, Python 3.12
I encountered a
TypeError
when trying to run QSpectrumAnalyzer with Python 3.12. The error was due tosetRange
expecting integer arguments, but receiving a float instead.To fix:
edit qspectrumanalyzer-master/qspectrumanalyzer/main.py
-self.progressbar.setRange(0, self.intervalSpinBox.value() * 1000)
+self.progressbar.setRange(0, int(self.intervalSpinBox.value() * 1000))
-self.progressbar.setRange(0, value_max)
+self.progressbar.setRange(0, int(value_max))
-self.progressbar.setValue(value)
+self.progressbar.setValue(int(value))
There is a further issue with QtGui not being imported, to fix:
edit qspectrumanalyzer-master/qspectrumanalyzer/plot.py
-from Qt import QtCore
+from Qt import QtCore, QtGui
Make sure you have all the dependencies installed:
sudo dnf install python3-SoapySDR soapy-rtlsdr qqc2-desktop-style python3-pyqt6-sip
The text was updated successfully, but these errors were encountered: