Xubuntu: Can't get HA to start

Hi,

I am trying to install HA in a Xubuntu virtual machine image. I have Ptyhon 3.4 installed, and HASS has been installed but the hass --open-ui or sudo hass --open-ui doesn’t seem to work. This is the output I am getting from console:

[code]derrick@derrick-VirtualBox:~$ sudo pip3 install homeassistant
Requirement already satisfied (use --upgrade to upgrade): homeassistant in ./.local/lib/python3.4/site-packages
Cleaning up…
derrick@derrick-VirtualBox:~$ sudo pip3 --upgrade homeassistant

Usage:
pip [options]

no such option: --upgrade
derrick@derrick-VirtualBox:~$ sudo pip3 install homeassistant --upgrade
Requirement already up-to-date: homeassistant in ./.local/lib/python3.4/site-packages
Cleaning up…
derrick@derrick-VirtualBox:~$ ^C
derrick@derrick-VirtualBox:~$ hass --open-ui
No command ‘hass’ found, did you mean:
Command ‘ass’ from package ‘irpas’ (multiverse)
Command ‘sass’ from package ‘ruby-sass’ (universe)
Command ‘pass’ from package ‘pass’ (universe)
hass: command not found
derrick@derrick-VirtualBox:~$ sudo !!
sudo hass --open-ui
sudo: hass: command not found
derrick@derrick-VirtualBox:~$
[/code]

Anyone have any idea, or does it have to be in actual Ubuntu?

Thanks

Maybe try sudo pip install(not pip3). I had to use pip for something during my setup, but I don’t remember what for sure. Have you tried rebooting?

Hi,

Tried that too, and rebooted but no change. Just for curiosity sake, I decided to try the same install on Ubuntu, and that worked fine.

It may not be the same thing but I had a similar issue with Lubuntu on vmware. It turned out that my system did not have my ~/.local/bin as part of the path. I modified the path and it worked.
Have you running it from the ~/.local/bin directory?

1 Like

[quote=“jasv”]It may not be the same thing but I had a similar issue with Lubuntu on vmware. It turned out that my system did not have my ~/.local/bin as part of the path. I modified the path and it worked.
Have you running it from the ~/.local/bin directory?[/quote]
This
if you don’t want to edit your path
you can also run: /.local/bin hass – open ui

Hi!

When you install home assistant with pip, it will print out where it installs the files. I would uninstall home assistant, install again, take note of the install paths and execute the hass script with the full path, first time to check that it works. Then you can check your path variable and include the path to hass if needed.

I suggest installing home assistant with the --user option to avoid needing to use sudo. Using sudo could screw up permissions and config file path (to root user).

pip3 uninstall homeassistant
pip3 install --user homeassistant
~/.local/bin/hass
echo $PATH

Google for how to edit your path.

Little off topic -

I have Xubuntu - relatively fresh install, and i cannot install home assistant. no matter what type of install i try, pip, pip3 sudo, sudo -H, python3 -m pip, etc.

Any clues on how i should be installing it? my error is below, seems to have an issue with compiling pyyaml.

any help would be great!

[code]leigh@dadCloud:/media/leigh/Storage_HDD$ pip3 install pyyaml
Collecting pyyaml
Using cached PyYAML-3.11.tar.gz
Building wheels for collected packages: pyyaml
Running setup.py bdist_wheel for pyyaml … error
Complete output from command /usr/bin/python3 -u -c “import setuptools, tokenize;file=’/tmp/pip-build-pt782nb4/pyyaml/setup.py’;exec(compile(getattr(tokenize, ‘open’, open)(file).read().replace(’\r\n’, ‘\n’), file, ‘exec’))” bdist_wheel -d /tmp/tmpwel8wjvipip-wheel- --python-tag cp34:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.4
creating build/lib.linux-x86_64-3.4/yaml
copying lib3/yaml/events.py -> build/lib.linux-x86_64-3.4/yaml
copying lib3/yaml/nodes.py -> build/lib.linux-x86_64-3.4/yaml
copying lib3/yaml/init.py -> build/lib.linux-x86_64-3.4/yaml
copying lib3/yaml/serializer.py -> build/lib.linux-x86_64-3.4/yaml
copying lib3/yaml/tokens.py -> build/lib.linux-x86_64-3.4/yaml
copying lib3/yaml/constructor.py -> build/lib.linux-x86_64-3.4/yaml
copying lib3/yaml/emitter.py -> build/lib.linux-x86_64-3.4/yaml
copying lib3/yaml/loader.py -> build/lib.linux-x86_64-3.4/yaml
copying lib3/yaml/parser.py -> build/lib.linux-x86_64-3.4/yaml
copying lib3/yaml/dumper.py -> build/lib.linux-x86_64-3.4/yaml
copying lib3/yaml/scanner.py -> build/lib.linux-x86_64-3.4/yaml
copying lib3/yaml/composer.py -> build/lib.linux-x86_64-3.4/yaml
copying lib3/yaml/reader.py -> build/lib.linux-x86_64-3.4/yaml
copying lib3/yaml/cyaml.py -> build/lib.linux-x86_64-3.4/yaml
copying lib3/yaml/representer.py -> build/lib.linux-x86_64-3.4/yaml
copying lib3/yaml/resolver.py -> build/lib.linux-x86_64-3.4/yaml
copying lib3/yaml/error.py -> build/lib.linux-x86_64-3.4/yaml
running build_ext
creating build/temp.linux-x86_64-3.4
checking if libyaml is compilable
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c build/temp.linux-x86_64-3.4/check_libyaml.c -o build/temp.linux-x86_64-3.4/check_libyaml.o
checking if libyaml is linkable
x86_64-linux-gnu-gcc -pthread build/temp.linux-x86_64-3.4/check_libyaml.o -lyaml -o build/temp.linux-x86_64-3.4/check_libyaml
building ‘_yaml’ extension
creating build/temp.linux-x86_64-3.4/ext
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c ext/_yaml.c -o build/temp.linux-x86_64-3.4/ext/_yaml.o
ext/_yaml.c:8:22: fatal error: pyconfig.h: No such file or directory
#include “pyconfig.h”
^
compilation terminated.
error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1


Failed building wheel for pyyaml
Running setup.py clean for pyyaml
Failed to build pyyaml
Installing collected packages: pyyaml
Running setup.py install for pyyaml … error
Complete output from command /usr/bin/python3 -u -c “import setuptools, tokenize;file=’/tmp/pip-build-pt782nb4/pyyaml/setup.py’;exec(compile(getattr(tokenize, ‘open’, open)(file).read().replace(’\r\n’, ‘\n’), file, ‘exec’))” install --record /tmp/pip-u2fh1rgy-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.4
creating build/lib.linux-x86_64-3.4/yaml
copying lib3/yaml/events.py -> build/lib.linux-x86_64-3.4/yaml
copying lib3/yaml/nodes.py -> build/lib.linux-x86_64-3.4/yaml
copying lib3/yaml/init.py -> build/lib.linux-x86_64-3.4/yaml
copying lib3/yaml/serializer.py -> build/lib.linux-x86_64-3.4/yaml
copying lib3/yaml/tokens.py -> build/lib.linux-x86_64-3.4/yaml
copying lib3/yaml/constructor.py -> build/lib.linux-x86_64-3.4/yaml
copying lib3/yaml/emitter.py -> build/lib.linux-x86_64-3.4/yaml
copying lib3/yaml/loader.py -> build/lib.linux-x86_64-3.4/yaml
copying lib3/yaml/parser.py -> build/lib.linux-x86_64-3.4/yaml
copying lib3/yaml/dumper.py -> build/lib.linux-x86_64-3.4/yaml
copying lib3/yaml/scanner.py -> build/lib.linux-x86_64-3.4/yaml
copying lib3/yaml/composer.py -> build/lib.linux-x86_64-3.4/yaml
copying lib3/yaml/reader.py -> build/lib.linux-x86_64-3.4/yaml
copying lib3/yaml/cyaml.py -> build/lib.linux-x86_64-3.4/yaml
copying lib3/yaml/representer.py -> build/lib.linux-x86_64-3.4/yaml
copying lib3/yaml/resolver.py -> build/lib.linux-x86_64-3.4/yaml
copying lib3/yaml/error.py -> build/lib.linux-x86_64-3.4/yaml
running build_ext
creating build/temp.linux-x86_64-3.4
checking if libyaml is compilable
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c build/temp.linux-x86_64-3.4/check_libyaml.c -o build/temp.linux-x86_64-3.4/check_libyaml.o
checking if libyaml is linkable
x86_64-linux-gnu-gcc -pthread build/temp.linux-x86_64-3.4/check_libyaml.o -lyaml -o build/temp.linux-x86_64-3.4/check_libyaml
building ‘_yaml’ extension
creating build/temp.linux-x86_64-3.4/ext
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c ext/_yaml.c -o build/temp.linux-x86_64-3.4/ext/_yaml.o
ext/_yaml.c:8:22: fatal error: pyconfig.h: No such file or directory
#include “pyconfig.h”
^
compilation terminated.
error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1

----------------------------------------

Command “/usr/bin/python3 -u -c “import setuptools, tokenize;file=’/tmp/pip-build-pt782nb4/pyyaml/setup.py’;exec(compile(getattr(tokenize, ‘open’, open)(file).read().replace(’\r\n’, ‘\n’), file, ‘exec’))” install --record /tmp/pip-u2fh1rgy-record/install-record.txt --single-version-externally-managed --compile” failed with error code 1 in /tmp/pip-build-pt782nb4/pyyaml[/code]

Hi!

Try installing python3-dev:

sudo apt-get install python3-dev

First google hit:
github.com/okfn/piati/issues/65

Thanks -

Is the dependencies the sort of thing that should be on the installation page?

yep, that worked.

no to figure out how to get started!

thanks.