jcrona / gr-nfc

GNURadio blocks allowing decode NFC transactions
GNU General Public License v3.0
38 stars 16 forks source link

AttributeError: module 'nfc' has no attribute 'modified_miller_decoder' #9

Closed KimlongSeng closed 2 years ago

KimlongSeng commented 2 years ago

In top_block.py generated code on line 93

self.nfc_modified_miller_decoder_0 = nfc.modified_miller_decoder(samp_rate)

AttributeError: module 'nfc' has no attribute 'modified_miller_decoder'

KimlongSeng commented 2 years ago

/usr/local/lib/python3/dist-packages is the missing pieces for this

Solution: Create a File that link the nfc import (if error code : import nfc, no module name nfc ) $ cd /usr/lib/python3/dist-packages $ sudo su $ cat > path_mypath.pth $ sudo nano path_mypath.pth Type in /usr/local/lib/python3/dist-packages/ /usr/local/include/nfc/

and Ctrl+X And Save, Exit