-
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
'make' errors, and RF24 on RPi, aarch64-linux-gnu #930
Comments
Have you tried https://nrf24.github.io/RF24/md_docs_using_cmake.html |
The |
I'm curious why pigpio was being linked to if the driver was not found. This shouldn't be a problem using cmake, but there may be something else we haven't coded for in the |
I looked and followed the URL, https://nrf24.github.io/RF24/md_docs_using_cmake.html;;
|
The "No such file or directory" errors just mean the previous attempt to install didn't complete (as evident by the error posted in OP). I'm not worried about that, but it is good that you tried to uninstall any previously installed RF24 drivers. As for the pyrf24 package, I have not seen that error when building it from source. You should still be able to install the pre-compiled python wrappers using pip without problems:
Then try any of the examples in ~/rf24libs/pyRF24/examples folder:
|
I was able to reproduce the build error for pyRF24 when using the @Givy Please specify the |
I sure will, At the moment I am doing much better than before, and getting to know what's what. Thank you again. ;-] |
Ok, I'm closing this as we've worked through the problems presented. Just to summarize:
@Givy If you want to build the pyRF24 package from source then you must either
and then run the install.sh again. |
RPi-3 is working and "scanner" runs OK. However, on RP-4 I have problem with the "pip install pyrf24", which I am sure I did that earlier at the same time with the RP-3. I am gettinig below issues on the RPi-4:: :~/rf24libs# pip install pyrf24 This environment is externally managed To install Python packages system-wide, try apt install If you wish to install a non-Debian-packaged Python package, For more information visit http://rptl.io/venv note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages. |
This is the solution you seek. It is generally good practice to use a python virtual environment ("venv" for short). You should not use The problem you are experiencing is actually not specific to pyRF24 at all. But I will try to clarify as simply as possible. 🚫 DO NOT DO THIS!!!sudo pip install pyrf24
sudo python ~/rf24libs/pyRF24/examples/scanner.py The above commands will only use python (interpreter and packages) installed for the entire system. 👎🏼 ✔️ DO THIS!pip install pyrf24
python ~/rf24libs/pyRF24/examples/scanner.py The above commands will use the packages specifically installed for the current user. ⭐ Most recommended!
Important Using the
|
Installing pyrf24 with pip uses the SPIDEV driver and does not require the C++ RF24* libraries installed. Again, SPIDEV is recommended for speed, and it does not require sudo permission to execute examples (or any code using RF24 with SPIDEV driver employed). |
I also tried the following and got these errors::
|
I'm sorry, but you clearly are not very familiar with using Debian's |
I appreciate your help. I am not sure about the "venv ", but I guess I have to try it. Thank you so much. |
I recently ran into a similar problem with using This is what happens when python has been greatly adopted over 20+ years despite the many difficulties that python package management had from the beginning. |
Just FYI: [100%] Built target rf24
!! *** Installer Complete *** Listing repositories in ~/rf24libs Thank you. |
Hi, -- Configuring done This environment is externally managed To install Python packages system-wide, try apt install If you wish to install a non-Debian-packaged Python package, For more information visit http://rptl.io/venv note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages. *** Installer Complete *** Listing repositories in ~/rf24libs Thanks. |
Again, that entire complaint is a user problem. Our install script should not manage a python venv. It is better to run the install script in an activated python venv (which would silence that warning). |
I can't get around this issue on RPi 4 and RPi 3, both ARM64 OS. Connecting NRF24L01+ to the GPIO pins using any of the packages and libraries, /rf24libs/RF24, Raspberry-Pi-NRF24-master, RF24Network-master, etc.
#Linux RaXXXX 5.10.103-v8+ #1529 SMP PREEMPT Tue Mar 8 12:26:46 GMT 2022 aarch64 GNU/Linux
#Linux MiXXXX 6.1.0-rpi6-rpi-v8 #1 SMP PREEMPT Debian 1:6.1.58-1+rpt2 (2023-10-27) aarch64 GNU/Linux
Thank you in advance.
Givi
More info::
The text was updated successfully, but these errors were encountered: