Closed KimlongSeng closed 2 years ago
It look like it could be issue with importing modual from python2+ to python 3+
Fix is to $ cd /usr/lib/python3/dist-packages $ Sudo su $ cat > path_mypath.pth $ sudo nano path_mypath.pth Type in /usr/local/include/nfc
Save and exit.
Generating: '/home/rlab-dell-2/Documents/GNU radio/top_block.py'
Executing: /usr/bin/python3 -u /home/rlab-dell-2/Documents/GNU radio/top_block.py
Warning: failed to XInitThreads() gr-osmosdr 0.2.0.0 (0.2.0) gnuradio 3.8.1.0 built-in source types: file osmosdr fcd rtl rtl_tcp uhd miri hackrf bladerf rfspace airspy airspyhf soapy redpitaya freesrp Using device #0 Realtek RTL2838UHIDIR SN: 00000001 Found Rafael Micro R820T tuner [R82XX] PLL not locked! Enabled direct sampling mode, input 2 Exact sample rate is: 2000000.052982 Hz Traceback (most recent call last): File "/home/rlab-dell-2/Documents/GNU radio/top_block.py", line 172, in main() File "/home/rlab-dell-2/Documents/GNU radio/top_block.py", line 150, in main tb = top_block_cls() File "/home/rlab-dell-2/Documents/GNU radio/top_block.py", line 93, in init self.nfc_modified_miller_decoder_0 = nfc.modified_miller_decoder(samp_rate) AttributeError: module 'nfc' has no attribute 'modified_miller_decoder'
Done (return code 1)
Have any ever encounter this error : module 'nfc' has no attribute 'modified_miller_decoder'. it is from the auto generate gnu-radio python(graph flow) nmae top_block.py