dji_droneid icon indicating copy to clipboard operation
dji_droneid copied to clipboard

TypeError: make() missing 1 required positional argument: 'arg2'

Open alphafox02 opened this issue 2 years ago • 5 comments

Good evening. I switched from the gnuradio branch to the new gnuradio branch, uninstalled and then installed the latest.

While performing a quick test (on same machine the older gnuradio flowgraph ran on) I now encounter this upon starting and wondered if it's just me or if anyone else is having this issue,

`[INFO] [B200] Detected Device: B205mini [INFO] [B200] Operating over USB 3. [INFO] [B200] Initialize CODEC control... [INFO] [B200] Initialize Radio control... [INFO] [B200] Performing register loopback test... [INFO] [B200] Register loopback test passed [INFO] [B200] Setting master clock rate selection to 'automatic'. [INFO] [B200] Asking for clock rate 16.000000 MHz... [INFO] [B200] Actually got clock rate 16.000000 MHz. [INFO] [B200] Asking for clock rate 30.720000 MHz... [INFO] [B200] Actually got clock rate 30.720000 MHz. [INFO] [MULTI_USRP] 1) catch time transition at pps edge [INFO] [MULTI_USRP] 2) set times next pps (synchronously) Traceback (most recent call last): File "/tmp/drone_id_demod_test.py", line 357, in main() File "/tmp/drone_id_demod_test.py", line 335, in main tb = top_block_cls() File "/tmp/drone_id_demod_test.py", line 222, in init self.droneid_extractor_0 = droneid.extractor(samp_rate / decimation, ) TypeError: make() missing 1 required positional argument: 'arg2'

Done (return code 1) `

alphafox02 avatar Jul 31 '22 22:07 alphafox02

I uninstalled gr-droneid update branch, went back to just the gr-droneid branch and all is well after making the /tmp/bursts directory. Not sure what's causing the difference in the update branch.

alphafox02 avatar Jul 31 '22 22:07 alphafox02

I think this is because I changed up the arguments that the GNU Radio OOT modules take. Double check that the flow graph doesn't have errors about missing fields in some of the blocks. If you see any that are red it's almost certainly due to missing parameters to one or more blocks. I'll try to clone a fresh copy tonight to see if there's a bad block in the flow graph.

proto17 avatar Aug 01 '22 16:08 proto17

No red that I can see, graph builds, but maybe somehow there’s a missing variable even though the blocks are not red.

alphafox02 avatar Aug 01 '22 16:08 alphafox02

Looks like arg2 should be a float. When looking at the generated .py file there’s nothing after the , so no arg2 that is. Just seeing what might be expected there.

alphafox02 avatar Aug 02 '22 15:08 alphafox02

Got it, the extractor on the flow graph had no correlator value, but then again no red. I put a zero in and the flow graph will run now.

alphafox02 avatar Aug 02 '22 15:08 alphafox02