adafruit / Adafruit_CircuitPython_PN532

CircuitPython driver for the PN532 NFC/RFID Breakout and PN532 NFC/RFID Shield
MIT License
91 stars 47 forks source link

Module not found #8

Closed D37R4C7 closed 5 years ago

D37R4C7 commented 5 years ago

After

pip install adafruit-circuitpython-pn532

installing version 2 I get a Module not found error with the example file.

caternuson commented 5 years ago

Are you running version 3 for both pip and python? Can you post the complete text of the error message.

kattni commented 5 years ago

@D37R4C7 Hello! Are you still having the issue above? Please let us know so we can help you out or close the issue. Thanks!

tisfablab commented 5 years ago

@kattni I've got the same problem.

On raspberry pi (as root): apt-get -y install git python3 python3-requests python3-pip python3-dev python3-spidev python3-rpi.gpio pip3 install --upgrade setuptools pip3 freeze - local | grep -v ‘^-e’ | cut -d = -f 1 | xargs -n1 pip3 install -U pip3 install adafruit-circuitpython-pn532

afterwards I've tried to run "python3 pn532_simpletest.py" and it gives me: Traceback (most recent call last): File "pn532_simpletest.py", line 15, in from adafruit_pn532.spi import PN532_SPI ImportError: No module named 'adafruit_pn532'

tisfablab commented 5 years ago

Is this package complete?

pip3 show -f adafruit-circuitpython-pn532 Name: adafruit-circuitpython-pn532 Version: 2.0.0 Summary: CircuitPython library for controlling PN532 RFID/NFC reader-writer. Home-page: https://github.com/adafruit/Adafruit_CircuitPython_PN532 Author: Adafruit Industries Author-email: circuitpython@adafruit.com License: MIT Location: /usr/local/lib/python3.5/dist-packages Requires: adafruit-circuitpython-busdevice, Adafruit-Blinka, pyserial Files: adafruit_circuitpython_pn532-2.0.0.dist-info/INSTALLER adafruit_circuitpython_pn532-2.0.0.dist-info/METADATA adafruit_circuitpython_pn532-2.0.0.dist-info/RECORD adafruit_circuitpython_pn532-2.0.0.dist-info/WHEEL adafruit_circuitpython_pn532-2.0.0.dist-info/top_level.txt

caternuson commented 5 years ago

We found a small bug in one of the config files. Try upgrading to the 2.0.1 version and let us know if it works.

tisfablab commented 5 years ago

Version 2.0.1 works. Thank you!

caternuson commented 5 years ago

Cool. Glad that worked.

Closing. Fixed by #9