lutusp / PLSDR

Software-defined radio application written in Python
GNU General Public License v3.0
156 stars 21 forks source link

v2.0 crashes if no config file #12

Open sertsa opened 4 years ago

sertsa commented 4 years ago

PLSDR v2.0, Arch linux, rtl_sdr dongle

Troubleshooting another issue, removed ~/.PLSDR/config.ini file resulting in:

gr-osmosdr 0.2.0.0 (0.2.0) gnuradio 3.8.0.0
built-in source types: file rtl rtl_tcp uhd hackrf bladerf rfspace airspy soapy redpitaya 
Traceback (most recent call last):
  File "./PLSDR.py", line 566, in change_modes
    self.run_stop()
  File "./PLSDR.py", line 560, in run_stop
    self.radio.initialize_radio(self.config)
  File "/home/tim/bin/PLSDR/Radio.py", line 127, in initialize_radio
    self.configure_source_controls()
  File "/home/tim/bin/PLSDR/Radio.py", line 265, in configure_source_controls
    self.osmosdr_source = osmosdr.source( args="numchan=1 %s" % self.device_driver_name)
  File "/usr/lib/python3.8/site-packages/osmosdr/osmosdr_swig.py", line 946, in make
    return _osmosdr_swig.source_make(*args, **kwargs)
RuntimeError: Failed to open AirSpy device (-5) AIRSPY_ERROR_NOT_FOUND
Aborted (core dumped)

tried removing entire ~/.PLSDR directory, this would be the state in a fresh install I guess, results in same.

Tried moving the rtl_sdr to top of list in device_dict of PLSDR.py, same result

lutusp commented 4 years ago

On Sat, Apr 25, 2020 at 9:59 PM sertsa notifications@github.com wrote:

PLSDR v2.0, Arch linux, rtl_sdr dongle

Troubleshooting another issue, removed ~/.PLSDR/config file resulting in:

gr-osmosdr 0.2.0.0 (0.2.0) gnuradio 3.8.0.0 built-in source types: file rtl rtl_tcp uhd hackrf bladerf rfspace airspy soapy redpitaya Traceback (most recent call last): File "./PLSDR.py", line 566, in change_modes self.run_stop() File "./PLSDR.py", line 560, in run_stop self.radio.initialize_radio(self.config) File "/home/tim/bin/PLSDR/Radio.py", line 127, in initialize_radio self.configure_source_controls() File "/home/tim/bin/PLSDR/Radio.py", line 265, in configure_source_controls self.osmosdr_source = osmosdr.source( args="numchan=1 %s" % self.device_driver_name) File "/usr/lib/python3.8/site-packages/osmosdr/osmosdr_swig.py", line 946, in make return _osmosdr_swig.source_make(*args, **kwargs) RuntimeError: Failed to open AirSpy device (-5) AIRSPY_ERROR_NOT_FOUND Aborted (core dumped)

tried removing entire ~/.PLSDR directory, his would be the state in a fresh install I guess, results in same.

Tried moving the rtl_sdr to top of list in device_dict of PLSDR.py, same result

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/lutusp/PLSDR/issues/12, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADVTB4NLVB3VR4VEMOTYCXDROO5T3ANCNFSM4MRB2SFQ .

Although most likely a GNURadio library bug, try reinstalling gr-osmosdr. Try this:

   $ sudo apt install --reinstall gr-osmosdr

I suspect that Arch doesn't use "apt", sorry, the above may need translation.

But after some research, I see this is a known problem in a GNURadio library with no clear resolution:

https://github.com/airspy/airspyone_host/wiki/Troubleshooting

-- and --

https://groups.google.com/forum/#!topic/gqrx/rAlHUKYomgc

I forgot to ask -- do you have an Airspy device? If so, do you see this crash if the device is not connected?

Again, I hope this helps.

-- Paul Lutus http://arachnoid.com