xmikos / qspectrumanalyzer

Spectrum analyzer for multiple SDR platforms (PyQtGraph based GUI for soapy_power, hackrf_sweep, rtl_power, rx_power and other backends)
GNU General Public License v3.0
1.21k stars 246 forks source link

Can't use crop option #95

Open dwarning opened 3 years ago

dwarning commented 3 years ago

I am using version 2.1.0 under Ubuntu together with rtl_power_fftw version 1.0-beta2 (installed from github). I can use rtl_power_fftw -f 869.70M:869.76M -p 46 -o 20 from command line. But using same parameter with 20% crop from qspectrumanalyzer GUI followed in a Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/qspectrumanalyzer/__main__.py", line 501, in on_singleShotButton_clicked self.start(single_shot=True) File "/usr/local/lib/python3.8/dist-packages/qspectrumanalyzer/__main__.py", line 476, in start self.power_thread.setup(float(self.startFreqSpinBox.value()), File "/usr/local/lib/python3.8/dist-packages/qspectrumanalyzer/backends/rtl_power_fftw.py", line 39, in setup "time": interval / hops, ZeroDivisionError: float division by zero I am bit worried about that qspectrumanalyzer is using a python script with same name as the executable.