-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installing libary for Python 3 #615
Comments
Here is what works for me on an older RPi3 that is pretty much up to date:
So the takeaways here are I think I need to update the |
Thank you sooooooo MUCH!!!!!! deleted everyting again, used following commands to get the libary:
And after that everything you wrote worked perfectly fine! But I had to add a Thanks again! In the end I feel like a dumb idiot. So to summ it up to a clear solution:
and the libary should be installed and work with Python 3 |
There is this linked guide for installation: http://tmrh20.github.io/RF24/Python.html
I tried to follow it and change the commands for python 3. I am on a Raspberry Pi 3 with a fresh installation of Raspberry Pi OS (Raspbian).So I used the following commands:
1.)
sudo apt-get install python3-dev libboost-python-dev
//no libboost-python3-dev availablesudo ln -s $(ls /usr/lib/arm-linux-gnueabihf/libboost_python-py3*.so | tail -1) /usr/lib/arm-linux-gnueabihf/libboost_python3.so
//didnt work at all. Always said "Data is already existing2.)
sudo apt-get install python3-setuptools
//worked fine3.)
./setup.py build
ORpython3 setup.py build
//both brougt errors saying that there is no such data or directory. after some digging and trying something worked4.)
sudo ./setup.py install
ORpython3 setup.py build
//also the same, worked after trying for a long time and digging in placesIn the end, I am able to run following code with Python 2 but not with Pyhton3.
import time import RPi.GPIO as GPIO from RF24 import *
So in the end it was not a successfull installation... Could it be, that something changed over the time with the OS and thats the reason for failing?
Please help. Already trying everything for days -.-
Best regards, Fritzi16
The text was updated successfully, but these errors were encountered: