EarToEarOak / RTLSDR-Scanner

A cross platform Python frequency scanning GUI for the OsmoSDR rtl-sdr library
http://eartoearoak.com/software/rtlsdr-scanner
GNU General Public License v3.0
682 stars 144 forks source link

AttributeError: 'RtlSdr' object has no attribute 'valid_gains_db' #7

Closed pschonmann closed 10 years ago

pschonmann commented 10 years ago

With dongle in, ive got that error, when no dogle, no error

root@t61:~/sdr/RTLSDR-Scanner/src# ./rtlsdr_scan.py RTLSDR Scanner

Found Rafael Micro R820T tuner Traceback (most recent call last): File "./rtlsdr_scan.py", line 109, in frame = FrameMain("RTLSDR Scanner", pool) File "/root/sdr/RTLSDR-Scanner/src/main_window.py", line 151, in init self.devicesRtl = get_devices_rtl(self.settings.devicesRtl) File "/root/sdr/RTLSDR-Scanner/src/devices.py", line 113, in get_devices_rtl device.gains = sdr.valid_gains_db AttributeError: 'RtlSdr' object has no attribute 'valid_gains_db'

EarToEarOak commented 10 years ago

Sound like https://github.com/roger-/pyrtlsdr is out of date.

pschonmann commented 10 years ago

Updated and works. Thanks