ndeflib icon indicating copy to clipboard operation
ndeflib copied to clipboard

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

Open TurnOffNOD opened this issue 2 years ago • 4 comments

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?

TurnOffNOD avatar Jun 05 '23 18:06 TurnOffNOD

I have same problem.

diqiu114 avatar Sep 02 '23 02:09 diqiu114

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.

xTheDoctah avatar Sep 12 '24 02:09 xTheDoctah