Cannot install cayenne to rasp pi zero wireless

  • Device & model you are using: raspberry pi zero w

  • What dashboard are you using? iOS

  • Please describe the bug: I used ios cayenne app to install to raspberry pi zero w but it always stuck at step 3. I used raspbian lite. Raspberry pi 3 works flawlessly. Reburning brand new raspbian lite does not help. Anybody else have this problem?

Hi @ngoalongpham, welcome to the Cayenne Community!

The Cayenne web dashboard has instructions for a command line install that you can do from an SSH prompt or entered directly on the Raspberry Pi. Once logged in there, proceed to follow the onscreen instructions for installing a Raspberry Pi until you get to the ā€˜Connect your Raspberry Piā€™ page, where you can follow the instructions for ā€œOption 2 - Terminal/SSHā€ to install via this method.

I expect it will still fail if there is an issue, but I encourage you to try this, because unlike the iOS app, it will provide logging output from the command-line install that you can post here so we can troubleshoot the reason the install is failing on your Pi.

Let me know if you have any questions about how to do the command line install!

Thanks for the quick response. Yourā€™re guys are awesome!

I tried again on another raspberry pi zero with external wifi dongle but the same resultā€¦stuck at step 3.

Manual install from putty said build for python failed. Exact text is below:

dir exists
continuing as new installā€¦
ā€“2017-03-14 02:45:17-- http://updates.mydevices.com/raspberry/myDevices-1.0.tar.gz
Resolving updates.mydevices.com (updates.mydevices.com)ā€¦ 54.148.225.117
Connecting to updates.mydevices.com (updates.mydevices.com)|54.148.225.117|:80ā€¦ connected.
HTTP request sent, awaiting responseā€¦ 200 OK
Length: 9234417 (8.8M) [application/x-gzip]
Saving to: ā€˜/home/pi/myDevices-1.0.tar.gzā€™

/home/pi/myDevices-1.0.tar.gz 100%[=======================================================================================================>] 8.81M 2.43MB/s in 4.7s

2017-03-14 02:45:22 (1.86 MB/s) - ā€˜/home/pi/myDevices-1.0.tar.gzā€™ saved [9234417/9234417]

./myDevices-1.0/
./myDevices-1.0/._.DS_Store
./myDevices-1.0/.DS_Store
./myDevices-1.0/3rd_party/
./myDevices-1.0/addCron.sh
./myDevices-1.0/ca.crt
./myDevices-1.0/crontab.sh
./myDevices-1.0/deb/
./myDevices-1.0/dev_network.ini
./myDevices-1.0/libs/
./myDevices-1.0/live_network.ini
./myDevices-1.0/package
./myDevices-1.0/preprod_network.ini
./myDevices-1.0/python/
./myDevices-1.0/qa1_network.ini
./myDevices-1.0/qa2_network.ini
./myDevices-1.0/reboot_install.sh
./myDevices-1.0/scripts/
./myDevices-1.0/setup.sh
./myDevices-1.0/stg_network.ini
./myDevices-1.0/uninstall.sh
./myDevices-1.0/scripts/config.sh
./myDevices-1.0/scripts/tightvncsetup.sh
./myDevices-1.0/scripts/webiopisetup.sh
./myDevices-1.0/python/myDevices/
./myDevices-1.0/python/myDevices.init.sh
./myDevices-1.0/python/myDevices.service
./myDevices-1.0/python/myDevices.sh
./myDevices-1.0/python/setup.py
./myDevices-1.0/python/myDevices/init.py
./myDevices-1.0/python/myDevices/main.py
./myDevices-1.0/python/myDevices/cloud/
./myDevices-1.0/python/myDevices/ipgetter/
./myDevices-1.0/python/myDevices/os/
./myDevices-1.0/python/myDevices/remoteaccess/
./myDevices-1.0/python/myDevices/requests_futures/
./myDevices-1.0/python/myDevices/schedule/
./myDevices-1.0/python/myDevices/sensors/
./myDevices-1.0/python/myDevices/test/
./myDevices-1.0/python/myDevices/utils/
./myDevices-1.0/python/myDevices/wifi/
./myDevices-1.0/python/myDevices/wifi/init.py
./myDevices-1.0/python/myDevices/wifi/WifiManager.py
./myDevices-1.0/python/myDevices/wifi/wifisetup.py
./myDevices-1.0/python/myDevices/wifi/WirelessLib.py
./myDevices-1.0/python/myDevices/utils/init.py
./myDevices-1.0/python/myDevices/utils/config.py
./myDevices-1.0/python/myDevices/utils/crypto.py
./myDevices-1.0/python/myDevices/utils/history.py
./myDevices-1.0/python/myDevices/utils/logger.py
./myDevices-1.0/python/myDevices/utils/mutex.py
./myDevices-1.0/python/myDevices/utils/singleton.py
./myDevices-1.0/python/myDevices/test/all_tests.py
./myDevices-1.0/python/myDevices/test/cloud_test.py
./myDevices-1.0/python/myDevices/test/config_test.py
./myDevices-1.0/python/myDevices/test/history_test.py
./myDevices-1.0/python/myDevices/test/scheduler_test.py
./myDevices-1.0/python/myDevices/test/sensors_test.py
./myDevices-1.0/python/myDevices/test/updater_test.py
./myDevices-1.0/python/myDevices/sensors/init.py
./myDevices-1.0/python/myDevices/sensors/client.py
./myDevices-1.0/python/myDevices/sensors/sensors.py
./myDevices-1.0/python/myDevices/schedule/init.py
./myDevices-1.0/python/myDevices/requests_futures/init.py
./myDevices-1.0/python/myDevices/requests_futures/sessions.py
./myDevices-1.0/python/myDevices/remoteaccess/init.py
./myDevices-1.0/python/myDevices/os/init.py
./myDevices-1.0/python/myDevices/os/cpu.py
./myDevices-1.0/python/myDevices/os/daemon.py
./myDevices-1.0/python/myDevices/os/getsysteminfo.py
./myDevices-1.0/python/myDevices/os/raspiconfig.py
./myDevices-1.0/python/myDevices/os/services.py
./myDevices-1.0/python/myDevices/os/systeminfo.py
./myDevices-1.0/python/myDevices/os/threadpool.py
./myDevices-1.0/python/myDevices/ipgetter/init.py
./myDevices-1.0/python/myDevices/cloud/init.py
./myDevices-1.0/python/myDevices/cloud/actions.py
./myDevices-1.0/python/myDevices/cloud/cayenneclient.py
./myDevices-1.0/python/myDevices/cloud/client.py
./myDevices-1.0/python/myDevices/cloud/dbmanager.py
./myDevices-1.0/python/myDevices/cloud/download_speed.py
./myDevices-1.0/python/myDevices/cloud/installer.py
./myDevices-1.0/python/myDevices/cloud/scheduler.py
./myDevices-1.0/python/myDevices/cloud/trigger.py
./myDevices-1.0/python/myDevices/cloud/updater.py
./myDevices-1.0/python/myDevices/cloud/vcom_id.py
./myDevices-1.0/libs/libSystemInformation.so
./myDevices-1.0/deb/debian_dependencies.txt
./myDevices-1.0/deb/download.sh
./myDevices-1.0/deb/install
./myDevices-1.0/deb/install_packages.sh
./myDevices-1.0/deb/libiw-dev/
./myDevices-1.0/deb/package
./myDevices-1.0/deb/python3-setuptools/
./myDevices-1.0/deb/tightvncserver/
./myDevices-1.0/deb/tightvncserver/expect_5.45-2_armhf.deb
./myDevices-1.0/deb/tightvncserver/install
./myDevices-1.0/deb/tightvncserver/libjpeg62-turbo_1.4.1-2_armhf.deb
./myDevices-1.0/deb/tightvncserver/tightvncserver_1.3.9-6.6_armhf.deb
./myDevices-1.0/deb/tightvncserver/xfonts-base_1.0.4+nmu1_all.deb
./myDevices-1.0/deb/python3-setuptools/install
./myDevices-1.0/deb/python3-setuptools/python3-pkg-resources_0.6.24-1_all.deb
./myDevices-1.0/deb/python3-setuptools/python3-setuptools_0.6.24-1_all.deb
./myDevices-1.0/deb/libiw-dev/install
./myDevices-1.0/deb/libiw-dev/libiw-dev_30~pre9-8_armhf.deb
./myDevices-1.0/3rd_party/enum34-1.0.4.tar.gz
./myDevices-1.0/3rd_party/install
./myDevices-1.0/3rd_party/install_packages.sh
./myDevices-1.0/3rd_party/iwlib-1.5.tar.gz
./myDevices-1.0/3rd_party/jsonpickle-0.9.2.tar.gz
./myDevices-1.0/3rd_party/netifaces-0.10.4.tar.gz
./myDevices-1.0/3rd_party/package
./myDevices-1.0/3rd_party/psutil-0.5.0.tar.gz
./myDevices-1.0/3rd_party/requests.tar.gz
./myDevices-1.0/3rd_party/suds-jurko-0.6.tar.gz

  • set -x
  • exec
    (0%)
    Tue 14 Mar 02:45:24 UTC 2017 Installing myDevices agent
    0
    Tue 14 Mar 02:45:34 UTC 2017 Found Python 3.4.2ā€¦
    (50%)
    Tue 14 Mar 02:45:34 UTC 2017 Copying agent libraries
    (55%)
    Tue 14 Mar 02:46:06 UTC 2017 Installing python utils
    (60%)
    Tue 14 Mar 02:46:16 UTC 2017 Installing software components
    Tue 14 Mar 02:46:17 UTC 2017 Trying to install myDevices for python3 version: Python 3.4.2
    Tue 14 Mar 02:46:18 UTC 2017 Build for Python 3.4.2 failed\n

Thanks for the logs, Iā€™m happy to help.

Generally when weā€™ve seen users with that Python 3.4.2 error this is resolved for by running these 5 commands (and answering yes to any prompts you get):

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get install python3.4
sudo apt-get -f install

I will add a caveat ā€“ weā€™ve seen a few people specifically with Zeros for whom that doesnā€™t do it, but letā€™s cross that bridge only if we get to it. :slight_smile:

Awesome! that fixed it

1 Like

Great to hear, thanks for letting us know!