One-timer-installer fails on Raspberry Pi 3

I’m so glad I found this topic! I have the latest Raspbian Jessie (with Pixel) and I followed the AIO instructions by the letter but ran into the same error. After running the commands as suggested above I get this message:

Checking for python3-dev: install ok installed
Checking for python3-pip: install ok installed
Checking for git: install ok installed
Checking for libssl-dev: install ok installed
Checking for libffi-dev: install ok installed
Checking for apt-listchanges:
Traceback (most recent call last):
  File "/usr/bin/pip3", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/local/lib/python3.4/dist-packages/pkg_resources/__init__.py", line 70, in <module>
    import packaging.version
ImportError: No module named 'packaging'
Traceback (most recent call last):
  File "/usr/bin/pip3", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/local/lib/python3.4/dist-packages/pkg_resources/__init__.py", line 70, in <module>
    import packaging.version
ImportError: No module named 'packaging'
Traceback (most recent call last):
  File "/usr/bin/pip3", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/local/lib/python3.4/dist-packages/pkg_resources/__init__.py", line 70, in <module>
    import packaging.version
ImportError: No module named 'packaging'
Cloning into 'fabric-home-assistant'...
remote: Counting objects: 271, done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 271 (delta 0), reused 0 (delta 0), pack-reused 266
Receiving objects: 100% (271/271), 118.52 KiB | 0 bytes/s, done.
Resolving deltas: 100% (154/154), done.
Checking connectivity... done.
hass_rpi_installer.sh: line 129: fab: command not found

How can I proceed…?

Hi goprojojo,

I solved this, starting with a fresh Jessie-lite install with this:

sudo -i
apt-get purge -y python3-pip
wget https://bootstrap.pypa.io/get-pip.py
python3 ./get-pip.py
apt-get install python3-pip

Found here: https://discourse.mailinabox.email/t/unable-to-run-mailinabox-command/1840/6

Thnx! This works.Now I can start having fun :slight_smile:

i am getting this error:


Installing collected packages: fabric3, paramiko
Successfully installed fabric3 paramiko
Cleaning up…
fatal: destination path ‘fabric-home-assistant’ already exists and is not an empty directory.

Fatal error: could not get keys from ssh-agent

Underlying exception:
could not get keys from ssh-agent

Aborting.
[localhost] Executing task ‘deploy’

Hi,

Sorry New to command line…

in the solution, are lines 3 and 4 separate line or what is the single line command?

wget https://bootstrap.pypa.io/get-pip.py python3 ./get-pip.py

?

Thanks

They’re exactly as shown - each line is a separate command to enter

That is what I thought but I got an error, herewith:

pi@raspberrypi:~ $ sudo -i
root@raspberrypi:~# apt-get purge -y python3-pip
Reading package lists… Done
Building dependency tree
Reading state information… Done
Package ‘python3-pip’ is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@raspberrypi:~# wget https://bootstrap.pypa.io/get-pip.py
–2017-01-29 12:40:52-- https://bootstrap.pypa.io/get-pip.py
Resolving bootstrap.pypa.io (bootstrap.pypa.io)… 151.101.60.175
Connecting to bootstrap.pypa.io (bootstrap.pypa.io)|151.101.60.175|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 1595408 (1.5M) [text/x-python]
Saving to: ‘get-pip.py’

get-pip.py 100%[=====================>] 1.52M 4.63MB/s in 0.3s

2017-01-29 12:40:52 (4.63 MB/s) - ‘get-pip.py’ saved [1595408/1595408]

root@raspberrypi:~# python3 ./get-pip.py
-bash: python3: command not found
root@raspberrypi:~#

Any ideas?

Yeah, you need to install python3 :wink:

sudo apt-get install python3

but then apt-get install python3-pip seems to work,

then when I go to the AIO installer, I get the “can’t find package error” as described at the beginning of this post…

installation report says hass_rpi_installer.sh: line 129: fab: command not found

The trouble is, there’s various people with problems posting in this thread, so separating out each problem is not easy. I’m also not seeing any post from you with any error messages, other than a single line in another thread.

To keep things clear, you followed the instructions in the All In One installer page? Can you post your installation_report.txt file to somewhere like pastebin?

ok, sorry, I am just re-imaging the sd card and starting again… I will check the errors and post to the correct forum accordingly.

Thanks

This is the right forum, it’s just once you get many people with apparently similar problems in one thread, picking things apart is tricky and you’re more likely to get overlooked, or confused with somebody else’s problem.

OK, so these are the exact steps I followed:

  1. re-image jesse lite…
  2. boot up and enable ssh (after changing default passwd) sudo raspi-config
  3. install python sudo apt-get install python3
  4. ran the commands above line for line
  5. ran the AIO command

…and it worked …

I suppose you would not have to tell more experienced users to install python first, but then again, possibly this should go in the install instructions as a pre-requisite after having a fresh copy of jesse? Especially for us technically challenged… :slight_smile:

Thanks for your help… now to start …er… tinkering !

Python3 is checked/installed in the kick start script. My assumption is that the version of pip installed via the package repo is old and needs to be updated, hence the purge and install pip successed. All salty at should be needed would be to do an upgrade on pip prior to running the installer. I’ll be home to test in a few.

It was not intentional not to mention it :slight_smile: but you figured it out allright. And now together we helped the next one…

awesome, I have just connected 8 plant sensors… now to group, automate and then notify…

You do have to keep checking the YAML file though…

Anyway, thanks for your help