nfcpy / ndeflib

Python package for parsing and generating NFC Data Exchange Format messages.
ISC License
63 stars 12 forks source link

Hi, when I use it, it raised "AttributeError: module 'ndef' has no attribute 'message_decoder'" error? #9

Open TurnOffNOD opened 1 year ago

TurnOffNOD commented 1 year ago

Hi, I am using python 3.10, and using this package. I am following the instructions on webpage , but when I executed decoder = ndef.message_decoder(octets), it says:

>>> decoder = ndef.message_decoder(octets)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'ndef' has no attribute 'message_decoder'

Is it a bug?

diqiu114 commented 1 year ago

I have same problem.

xTheDoctah commented 1 month ago

Its not a bug, check with pip list if you have another lib called ndef or something like that. If you do remove it. Check if in your project folder you have a file named ndef.py rename it.