To save the beginners from the trouble of python build failed errors, as a courtesy, I have compiled a bash script to install cayenne essentials (python build fails). This script installs a few things (Python 3, pip3, psutil, paho.mqtt.python, netifaces, jsonpickle, enum34) to make your cayenne installation experience on Raspberry Pi/Zero a litte better. This is no need to install raspbian OS again and again to solve this problem as advised on this forum in many posts. Also no need of dist-upgrade etc.
Instructions:
- Download bash script CayenneRaspiEssentials.txt (2.5 KB).
- Change the file extension from .txt to .sh using command ( sudo mv CayenneRaspiEssentials.txt CayenneRaspiEssentials.sh )
- Make this script executable by using command ( sudo chmod a+x CayenneRaspiEssentials.sh )
- Run it to install essentials by using command ( sudo ./CayenneRaspiEssentials.sh )
After that, do cayenne installation on your raspberry pi/0W as usual.
Please Note I did not find a way to download netifaces and enum34 directly from their website through bash script due to some SHA issue/error. These two will be downloaded from my dropbox.
Guys @shramik_salgaonkar @bestes @rsiegel @adam What do you think?
Kind Regards,
Sahar