muccc / gr-iridium

Iridium burst detector and demodulator.
372 stars 81 forks source link

TypeError: Wrong number or type of arguments for overloaded function 'new_time_spec_t' #118

Closed dukuilanu closed 2 years ago

dukuilanu commented 2 years ago

Hi there,

I get the following error when trying to run iridium-extractor with an rtl-sdr blog v3. Any help would be much appreciated:

raspberrypi% iridium-extractor ./rtl-sdr.conf > ~/output.bits gr-osmosdr 0.2.0.0 (0.2.0) gnuradio 3.8.2.0 built-in source types: file fcd rtl rtl_tcp uhd hackrf bladerf rfspace airspy airspyhf soapy redpitaya freesrp [INFO] [UHD] linux; GNU C++ version 10.2.0; Boost_107100; UHD_3.15.0.0-4 Found Rafael Micro R820T tuner Using device #0 Realtek RTL2838UHIDIR SN: 00000001 Found Rafael Micro R820T tuner [R82XX] PLL not locked! Exact sample rate is: 2000000.052982 Hz [R82XX] PLL not locked! Traceback (most recent call last): File "/usr/local/bin/iridium-extractor", line 342, in tb = iridium.iridium_extractor_flowgraph.FlowGraph(center_frequency=center, sample_rate=sample_rate, decimation=decimation, File "/usr/local/lib/python3.9/dist-packages/iridium/iridium_extractor_flowgraph.py", line 137, in init source.set_time_now(osmosdr.time_spec_t(int(t0), t0 - int(t0))) File "/usr/lib/python3/dist-packages/osmosdr/osmosdr_swig.py", line 936, in init _osmosdr_swig.time_spec_t_swiginit(self, _osmosdr_swig.new_time_spec_t(*args)) TypeError: Wrong number or type of arguments for overloaded function 'new_time_spec_t'. Possible C/C++ prototypes are: osmosdr::time_spec_t::time_spec_t(double) osmosdr::time_spec_t::time_spec_t(time_t,double) osmosdr::time_spec_t::time_spec_t(time_t,long,double)

versions of stuff:

gcc (Raspbian 10.2.1-6+rpi1) 10.2.1 20210110

Python 3.9.2 (default, Mar 12 2021, 04:06:34)

gnuradio 3.8

raspberrypi% git branch

raspberry os bullseye (which is fairly new)

schneider42 commented 2 years ago

I can reproduce this on 3.8. CI did not help here as without unit tests this needs an actual SDR connected.

schneider42 commented 2 years ago

Waiting for the backport

schneider42 commented 2 years ago

@dukuilanu can you give main-3.8 another try? should be fixed now.

dukuilanu commented 2 years ago

Confirmed working. Thank you kindly.