raspberry pi: reader found, nfc module not found
Many thanks for what appears to be a great library.
Adafruit reader is detected:
pi@raspberrypi ~/nfcpy/
[nfc.clf] searching for reader with path 'tty:AMA0:pn53x'
[nfc.clf] using NXP PN532 at /dev/ttyAMA0
[main] touch a tag
However Python has a problem with importing the module nfc.
If I put a file called "test.py" containing one line "import nfc" in the directory as below
pi@raspberrypi ~/nfcpy/
Traceback (most recent call last):
File "test.py", line 3, in <module>
import nfc
ImportError: No module named nfc
Similarly with a change of directory, or from the python console.
pi@raspberrypi ~/nfcpy $ python test.py
Traceback (most recent call last):
File "test.py", line 3, in <module>
import nfc
ImportError: No module named nfc
If I change the file "test.py" to include:
import sys
print sys.path
The following results:
pi@raspberrypi ~/nfcpy $ python test.py
['/home/pi/nfcpy', '/usr/local/
Why doesn't Python find the "nfc" module?
What can I do?
Many thanks in advance,
R.
(Raspbery Pi 2 running Raspbian)
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- nfcpy Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Rupert
- Solved:
- Last query:
- Last reply: