miohtama / desfire

MIFARE DESFire NFC communication protocol for Python

Home Page:https://desfire.readthedocs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No module named protocol

eoghanj opened this issue · comments

Hi
I've just installed desfire, however when I run an example (https://desfire.readthedocs.io/en/latest/usage.html#id2), I am getting the following error:
from desfire.protocol import DESFire
ImportError: No module named protocol
Any ideas on how to resolve this?
Thanks!

Hi!

How did you install? Did you follow the official package installation guide?

https://packaging.python.org/

Same thing happened to me when I named the example file desfire.py. Solution: rename the example file to something else like test.py.