Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
TurnOffNOD opened this issue Jun 5, 2023 · 3 comments

Comments

@TurnOffNOD
Copy link

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
Copy link

diqiu114 commented Sep 2, 2023

I have same problem.

@xTheDoctah
Copy link

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.

@TurnOffNOD
Copy link
Author

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.

Ah, it is longer than 1 year between my post and your reply, and several months passed until I see the reply.

I was doing my class assignment (course project?) at that time, it was my first time using it and I have never install other lib related to ndef and this lib is fresh install.

Never mind, the course is finished and I am not using it now.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants