ondryaso / pi-rc522

Raspberry Pi Python library for SPI RFID RC522 module
MIT License
411 stars 150 forks source link

install fails on BeagleBone black (RPi libs are installed) #38

Open wie-niet opened 6 years ago

wie-niet commented 6 years ago

install fails on BeagleBone black.

setup will install the libs needed for Raspberry Pi ( spidev and RPi.GPIO ) not the one needed for BeagleBone Black ( Adafruit_BBIO ).

Work around is to remove the RPi libraries after pip install and install the lib needed for BBB.

git clone https://github.com/ondryaso/pi-rc522.git
cd pi-rc522
python setup.py install

pip uninstall spidev
pip uninstall rpi.gpio
pip install Adafruit_BBIO

Best would be to automate this in setup.py, or perhaps even easier - if possible - to switch to use Adafruit_GPIO.SPI ?