Installation on a Raspberry Pi

1,827 views
Skip to first unread message

David Creagan

unread,
Jan 20, 2015, 1:49:14 PM1/20/15
to home-assi...@googlegroups.com
Hi All,

Has anyone installed Home Assistant on a Raspberry Pi?

David

David Creagan

unread,
Jan 20, 2015, 3:28:14 PM1/20/15
to home-assi...@googlegroups.com
OK, I tried it and hit a brick wall:

First off, the instructions on the Getting Started page (https://home-assistant.io/getting-started/) state that you need to run the following:

pip3 install -r requirements.txt

This gave an error on a Raspberry Pi

-bash: pip3: command not found 

The right syntax is:

sudo pip-3.2 install -r requirements.txt

OK, so that one is fixed, now the next step (sudo pip-3.2 install -r requirements.txt) bombs out with an error for pushbullet and breaks the script and skips Nest too:

Downloading/unpacking pushbullet.py>=0.7.1 (from -r requirements.txt (line 28)) 
 Downloading pushbullet.py-0.7.1.tar.gz 
 Running setup.py egg_info for package pushbullet.py
 Traceback (most recent call last):
      File "<string>", line 14, in <module>
 File "/home/pi/home-assistant/build/pushbullet.py/setup.py", line 15, in <module> 
 install_reqs = parse_requirements("requirements.txt",  session=uuid.uuid1())
 TypeError: parse_requirements() got an unexpected keyword argument 'session'
 Complete output from command python setup.py egg_info:
 Traceback (most recent call last):
 File "<string>", line 14, in <module>
 File "/home/pi/home-assistant/build/pushbullet.py/setup.py", line 15, in <module>
 install_reqs = parse_requirements("requirements.txt",  session=uuid.uuid1())
 TypeError: parse_requirements() got an unexpected keyword argument 'session'
 ----------------------------------------
 Command python setup.py egg_info failed with error code 1 in /home/pi/home-assistant/build/pushbullet.py
 Storing complete log in /root/.pip/pip.log 

So, from here, the session is the "issue"

I have just started with this on a Pi and thought this info might be useful to anyone trying the same. At this stage I am not sure what PushButton do, so will have to read a bit more - as for Nest, well, don't have one, don't care!

Thanks,

Dave

Stefan Krastanov

unread,
Jan 20, 2015, 4:07:37 PM1/20/15
to home-assi...@googlegroups.com
It definitely works with python3.4, I have not tried it with other
versions on the raspberry pi (and the raspberry pi itself is
indistinguishable from any other linux computer as far as this
software is concerned).

Using virtualenv.py to separate it from the rest of the system could
also be a nice idea.

If you have any troubles I can send you a line-by-line log of how I
installed it.
> --
> You received this message because you are subscribed to the Google Groups
> "Home Assistant Dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to home-assistant-...@googlegroups.com.
> To post to this group, send email to home-assi...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/home-assistant-dev/c29b128b-7c6e-4563-9b41-bc6ebca62e7e%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.

David Creagan

unread,
Jan 20, 2015, 4:20:51 PM1/20/15
to home-assi...@googlegroups.com
OK, looks like I will need PushBullet - I have edited out the PushBullet and Nest entries to be excluded and it worked fine.

Then tried to start the app with:

python3 -m homeassistant

I then get the following error:

/usr/bin/python3: No module named enum; 'homeassistant' is a package and cannot be directly executed

Anyone know how to fix this issue?

I would love to get this running on a Pi...... seems like the perfect soluton, bu unfortunately I cannot get this working.... *sigh*

Dave

On Tuesday, 20 January 2015 18:49:14 UTC, David Creagan wrote:

David Creagan

unread,
Jan 20, 2015, 4:24:47 PM1/20/15
to home-assi...@googlegroups.com, stefan.k...@yale.edu
Hey Stefan,

I am running python 3.2.3 - do I need 3.4?

A line by line would be fantastic - yes please!?

And you are right that the Pi is just another computer when it comes to what Linux see, so I figured it would just work.

Do you have it installed on a Pi?

Thanks,

Dave

Stefan Krastanov

unread,
Jan 20, 2015, 4:27:54 PM1/20/15
to home-assi...@googlegroups.com
The enum module was introduced in 3.4 so it seems you will need that version.

However you can just install this https://pypi.python.org/pypi/enum34/
which backports that module to other versions of python.

Does "pip-3.2 install enum34" solve your problem?
>> > email to home-assistant-...@googlegroups.com.
>> > To post to this group, send email to home-assi...@googlegroups.com.
>> > To view this discussion on the web visit
>> >
>> > https://groups.google.com/d/msgid/home-assistant-dev/c29b128b-7c6e-4563-9b41-bc6ebca62e7e%40googlegroups.com.
>> >
>> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Home Assistant Dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to home-assistant-...@googlegroups.com.
> To post to this group, send email to home-assi...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/home-assistant-dev/99f2edf5-806a-44a2-90cd-fab9558cc6a9%40googlegroups.com.

David Creagan

unread,
Jan 20, 2015, 4:38:46 PM1/20/15
to home-assi...@googlegroups.com, stefan.k...@yale.edu
I have gone down the download 3.4 and compile and install the whole thing - seemed like a good idea 5 minutes ago. Mmm,....

Hopefully I will be upgrading 3.2 to 3.4 
>> > To post to this group, send email to home-assi...@googlegroups.com.
>> > To view this discussion on the web visit
>> >
>> > https://groups.google.com/d/msgid/home-assistant-dev/c29b128b-7c6e-4563-9b41-bc6ebca62e7e%40googlegroups.com.
>> >
>> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Home Assistant Dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an

Stefan Krastanov

unread,
Jan 20, 2015, 4:59:24 PM1/20/15
to home-assi...@googlegroups.com
It takes an hour or two to compile on the Pi, but it works nicely for
me (by default you will probably miss some libraries like sqlite and
maybe ssl)
>> >> > email to home-assistant-...@googlegroups.com.
>> >> > To post to this group, send email to home-assi...@googlegroups.com.
>> >> > To view this discussion on the web visit
>> >> >
>> >> >
>> >> > https://groups.google.com/d/msgid/home-assistant-dev/c29b128b-7c6e-4563-9b41-bc6ebca62e7e%40googlegroups.com.
>> >> >
>> >> > For more options, visit https://groups.google.com/d/optout.
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "Home Assistant Dev" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> > an
>> > email to home-assistant-...@googlegroups.com.
>> > To post to this group, send email to home-assi...@googlegroups.com.
>> > To view this discussion on the web visit
>> >
>> > https://groups.google.com/d/msgid/home-assistant-dev/99f2edf5-806a-44a2-90cd-fab9558cc6a9%40googlegroups.com.
>> >
>> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Home Assistant Dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to home-assistant-...@googlegroups.com.
> To post to this group, send email to home-assi...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/home-assistant-dev/9d17d39b-95df-4464-a8fe-db44ccf9191b%40googlegroups.com.

David Creagan

unread,
Jan 20, 2015, 5:05:09 PM1/20/15
to home-assi...@googlegroups.com, stefan.k...@yale.edu
Ah, OK, hopefully it will finish before midnight!

If all else fail, would you be able to share your SD card .img file?

I really would like to get this to work - did you get the PushButton working?
>> >> > To post to this group, send email to home-assi...@googlegroups.com.
>> >> > To view this discussion on the web visit
>> >> >
>> >> >
>> >> > https://groups.google.com/d/msgid/home-assistant-dev/c29b128b-7c6e-4563-9b41-bc6ebca62e7e%40googlegroups.com.
>> >> >
>> >> > For more options, visit https://groups.google.com/d/optout.
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "Home Assistant Dev" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> > an
>> > To post to this group, send email to home-assi...@googlegroups.com.
>> > To view this discussion on the web visit
>> >
>> > https://groups.google.com/d/msgid/home-assistant-dev/99f2edf5-806a-44a2-90cd-fab9558cc6a9%40googlegroups.com.
>> >
>> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Home Assistant Dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an

David Creagan

unread,
Jan 20, 2015, 5:46:03 PM1/20/15
to home-assi...@googlegroups.com, stefan.k...@yale.edu
Hi Stefan,

I compiled it from scratch but something has gone wrong - when I try to get the version number I get:

-bash: python3.4: command not found

Could you be so kind to send me the steps you followed to get this working on a Pi please?

I think I must be missing an entry somewhere to point too the new version?

Thanks for your help,

Dave
>> >> > To post to this group, send email to home-assi...@googlegroups.com.
>> >> > To view this discussion on the web visit
>> >> >
>> >> >
>> >> > https://groups.google.com/d/msgid/home-assistant-dev/c29b128b-7c6e-4563-9b41-bc6ebca62e7e%40googlegroups.com.
>> >> >
>> >> > For more options, visit https://groups.google.com/d/optout.
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "Home Assistant Dev" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> > an
>> > To post to this group, send email to home-assi...@googlegroups.com.
>> > To view this discussion on the web visit
>> >
>> > https://groups.google.com/d/msgid/home-assistant-dev/99f2edf5-806a-44a2-90cd-fab9558cc6a9%40googlegroups.com.
>> >
>> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Home Assistant Dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an

Stefan Krastanov

unread,
Jan 20, 2015, 6:19:41 PM1/20/15
to home-assi...@googlegroups.com
You need `sudo make install` in order to copy the newly compiled
python binary to a folder that is in your $PATH variable. Otherwise
bash does not know where to look for the new python. You will also
have pip-3.4 at that point.
>> >> >> > email to home-assistant-...@googlegroups.com.
>> >> >> > To post to this group, send email to
>> >> >> > home-assi...@googlegroups.com.
>> >> >> > To view this discussion on the web visit
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > https://groups.google.com/d/msgid/home-assistant-dev/c29b128b-7c6e-4563-9b41-bc6ebca62e7e%40googlegroups.com.
>> >> >> >
>> >> >> > For more options, visit https://groups.google.com/d/optout.
>> >> >
>> >> > --
>> >> > You received this message because you are subscribed to the Google
>> >> > Groups
>> >> > "Home Assistant Dev" group.
>> >> > To unsubscribe from this group and stop receiving emails from it,
>> >> > send
>> >> > an
>> >> > email to home-assistant-...@googlegroups.com.
>> >> > To post to this group, send email to home-assi...@googlegroups.com.
>> >> > To view this discussion on the web visit
>> >> >
>> >> >
>> >> > https://groups.google.com/d/msgid/home-assistant-dev/99f2edf5-806a-44a2-90cd-fab9558cc6a9%40googlegroups.com.
>> >> >
>> >> > For more options, visit https://groups.google.com/d/optout.
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "Home Assistant Dev" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> > an
>> > email to home-assistant-...@googlegroups.com.
>> > To post to this group, send email to home-assi...@googlegroups.com.
>> > To view this discussion on the web visit
>> >
>> > https://groups.google.com/d/msgid/home-assistant-dev/9d17d39b-95df-4464-a8fe-db44ccf9191b%40googlegroups.com.
>> >
>> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Home Assistant Dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to home-assistant-...@googlegroups.com.
> To post to this group, send email to home-assi...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/home-assistant-dev/7837b9a2-370b-4cab-ab27-b103fd1a0e70%40googlegroups.com.

Paulus Schoutsen

unread,
Jan 20, 2015, 9:27:36 PM1/20/15
to home-assi...@googlegroups.com
I was already planning on updating the getting started guide today to make the instructions more clear. I'll make sure to add that Python 3.4 is a requirement.

If anyone is willing to contribute a set of instructions to get Home Assistant running on a Rasperry Pi, I'll add it to the getting started guide (or for the brave: you can add it yourself).

Paulus


For more options, visit https://groups.google.com/d/optout.



--
It's nice to be important but it's more important to be nice.

David Creagan

unread,
Jan 21, 2015, 10:48:26 AM1/21/15
to home-assi...@googlegroups.com, stefan.k...@yale.edu
Hi Stefan,
 
Sorry for the deley! been at work.
 
now, I did run the 'sudo make install' afterwards, but still no luck.
 
I suspect you are right - there is some voodoo magic that needs to be applied to the $PATH variable - a bit out of my league.
 
Do you have notes on how to set this please?
 
Thanks again for your help - appreciated!
>> >> >> > To post to this group, send email to
>> >> >> > home-assi...@googlegroups.com.
>> >> >> > To view this discussion on the web visit
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > https://groups.google.com/d/msgid/home-assistant-dev/c29b128b-7c6e-4563-9b41-bc6ebca62e7e%40googlegroups.com.
>> >> >> >
>> >> >> > For more options, visit https://groups.google.com/d/optout.
>> >> >
>> >> > --
>> >> > You received this message because you are subscribed to the Google
>> >> > Groups
>> >> > "Home Assistant Dev" group.
>> >> > To unsubscribe from this group and stop receiving emails from it,
>> >> > send
>> >> > an
>> >> > To post to this group, send email to home-assi...@googlegroups.com.
>> >> > To view this discussion on the web visit
>> >> >
>> >> >
>> >> > https://groups.google.com/d/msgid/home-assistant-dev/99f2edf5-806a-44a2-90cd-fab9558cc6a9%40googlegroups.com.
>> >> >
>> >> > For more options, visit https://groups.google.com/d/optout.
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "Home Assistant Dev" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> > an
>> > To post to this group, send email to home-assi...@googlegroups.com.
>> > To view this discussion on the web visit
>> >
>> > https://groups.google.com/d/msgid/home-assistant-dev/9d17d39b-95df-4464-a8fe-db44ccf9191b%40googlegroups.com.
>> >
>> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Home Assistant Dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an

David Creagan

unread,
Jan 21, 2015, 10:50:40 AM1/21/15
to home-assi...@googlegroups.com
Hi Paulus,
 
I agree, a bit more clarification would be fantastic - for anyone out there willing to write the instructions, I have several Pi models I can test it on.
 
More than happy to test the instructions!
 
Dave

>> >> >> > To post to this group, send email to
>> >> >> > home-assi...@googlegroups.com.
>> >> >> > To view this discussion on the web visit
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > https://groups.google.com/d/msgid/home-assistant-dev/c29b128b-7c6e-4563-9b41-bc6ebca62e7e%40googlegroups.com.
>> >> >> >
>> >> >> > For more options, visit https://groups.google.com/d/optout.
>> >> >
>> >> > --
>> >> > You received this message because you are subscribed to the Google
>> >> > Groups
>> >> > "Home Assistant Dev" group.
>> >> > To unsubscribe from this group and stop receiving emails from it,
>> >> > send
>> >> > an

>> >> > To post to this group, send email to home-assi...@googlegroups.com.
>> >> > To view this discussion on the web visit
>> >> >
>> >> >
>> >> > https://groups.google.com/d/msgid/home-assistant-dev/99f2edf5-806a-44a2-90cd-fab9558cc6a9%40googlegroups.com.
>> >> >
>> >> > For more options, visit https://groups.google.com/d/optout.
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "Home Assistant Dev" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> > an

>> > To post to this group, send email to home-assi...@googlegroups.com.
>> > To view this discussion on the web visit
>> >
>> > https://groups.google.com/d/msgid/home-assistant-dev/9d17d39b-95df-4464-a8fe-db44ccf9191b%40googlegroups.com.
>> >
>> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Home Assistant Dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an

> To post to this group, send email to home-assi...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/home-assistant-dev/7837b9a2-370b-4cab-ab27-b103fd1a0e70%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Home Assistant Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to home-assistant-dev+unsub...@googlegroups.com.

To post to this group, send email to home-assi...@googlegroups.com.

Jane Gates

unread,
Jan 21, 2015, 2:33:33 PM1/21/15
to home-assi...@googlegroups.com
Yes, written instructions would be greatly appreciated. I was stuck in the SAME exact spot as the OP. Thank you guys.

Stefan Krastanov

unread,
Jan 21, 2015, 7:49:54 PM1/21/15
to home-assi...@googlegroups.com
I will be reinstalling most of my setup this weekend, I will submit a
tutorial when I am done.

On 21 January 2015 at 14:33, Jane Gates <therealj...@gmail.com> wrote:
> Yes, written instructions would be greatly appreciated. I was stuck in the
> SAME exact spot as the OP. Thank you guys.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Home Assistant Dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to home-assistant-...@googlegroups.com.
> To post to this group, send email to home-assi...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/home-assistant-dev/50eedf12-49e7-471c-b792-60bede0fdc7c%40googlegroups.com.

David Creagan

unread,
Jan 22, 2015, 7:19:28 AM1/22/15
to home-assi...@googlegroups.com, stefan.k...@yale.edu
Fantastic Stefan, will be keeping a close eye in anticipation on the instructions!
 
Thank you!
 
Dave
 

Geoff Norton

unread,
Jan 22, 2015, 11:36:15 PM1/22/15
to home-assi...@googlegroups.com, stefan.k...@yale.edu
It's definitely working on rpi (I'm actually developing on one).  That said, If Stefan is already going to write it up, I'll wait for him.

Stefan -- I strongly suggest pyenv instead of virtualenv fwiw.  One word of warning, if you're trying to get a _development_ environment setup on rpi, don't get vulcanize from pip, get the npm based module.

(The vulcanize in pip needs lxml, which cannot currently be compiled with the rpi toolchain)

Stefan Krastanov

unread,
Jan 23, 2015, 1:44:50 PM1/23/15
to home-assi...@googlegroups.com
Hi,

I might be misunderstanding what pyenv is meant to do, but it seems it
is not for separating entire dev environments (with their libraries),
rather it is for having multiple python versions, but only one
environment per version. In any case it is something I will look into
but probably not use for my current installation.
> --
> You received this message because you are subscribed to the Google Groups
> "Home Assistant Dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to home-assistant-...@googlegroups.com.
> To post to this group, send email to home-assi...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/home-assistant-dev/85d0955e-7e59-495a-8ccc-6b4af12f29fb%40googlegroups.com.

Paulus Schoutsen

unread,
Jan 25, 2015, 3:15:09 PM1/25/15
to home-assi...@googlegroups.com
I have been spending some time today researching if it would be easy to make Home Assistant compatible with earlier Python versions. 

Python 3.2 is going to be very hard as implicit namespace support was introduced in Python 3.3. Implicit namespace support means that we can have folders contain Python packages without requiring every subfolder to have a __init__.py file.
  • homeassistant.loader relies on this to be able to import custom platforms (config/custom_components/switch/some_platform.py)
  • It is used for importing git submodules that do not perse have an __init__.py file on the root of the repository (and their code is out of our control)
Python 3.3 does not include the __spec__ attribute on imported modules. Home Assistant uses this to make sure built-in components do not get overwritten by namespace modules. For example, when you have a custom component in config/custom_components/switch/some_platform.py and you want to load the switch component, we need to make sure you don't get custom_components.switch because it was made on the fly to be able to serve the custom_components.switch.some_platform module. This could be solved by adding some component validation but it will end up printing more unneeded errors on the console which might confuse more people in the end.

TL;DR: I don't see the requirement for a lesser Python version dropping anytime soon.

Paulus


For more options, visit https://groups.google.com/d/optout.

David Creagan

unread,
Jan 26, 2015, 11:02:05 AM1/26/15
to home-assi...@googlegroups.com
Ah, OK, so does anyone have any instructions/workarounds to get this on a Pi?

I would love to see Home Assistant running on a Pi, but so far it has cause only frustration at my end!

Thanks,

Dave

> To post to this group, send email to home-assi...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/home-assistant-dev/85d0955e-7e59-495a-8ccc-6b4af12f29fb%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Home Assistant Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to home-assistant-dev+unsub...@googlegroups.com.

To post to this group, send email to home-assi...@googlegroups.com.

Stefan Krastanov

unread,
Jan 26, 2015, 9:24:49 PM1/26/15
to home-assi...@googlegroups.com
Ok, I had some time to reinstall my Raspberry Pi and here is how to
set up python3.4

1. Download the source code

$ cd /tmp
$ wget https://www.python.org/ftp/python/3.4.1/Python-3.4.1.tgz
$ tar xvzf Python-3.4.1.tgz
$ cd Python-3.4.1/

2. Configure and compile

$./configure --prefix=/home/pi/.local # takes a few minutes
$ make # takes an hour or two
$ sudo make install # moves all the executables
to ~/.local

3. Add ~/.local to your path in ~/.bash_login

Open the file `.bash_login` and at the end of the file add

export PATH=$PATH:~/.local/bin

There are a few more things you might want to add if you compile C
modules for python, but we can skip that for the moment

4. Log out and log in, you should have python3.4 and pip3.4 available.

Then running home-assistant is just like described in the readme

$ git clone --recursive https://github.com/balloob/home-assistant.git
$ cd home-assistant
$ pip3.4 install -r requirements.txt
$ python3.4 -m homeassistant --open-ui
>>> > email to home-assistant-...@googlegroups.com.
>>> > To post to this group, send email to home-assi...@googlegroups.com.
>>> > To view this discussion on the web visit
>>> >
>>> > https://groups.google.com/d/msgid/home-assistant-dev/85d0955e-7e59-495a-8ccc-6b4af12f29fb%40googlegroups.com.
>>> >
>>> > For more options, visit https://groups.google.com/d/optout.
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Home Assistant Dev" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an
>>> email to home-assistant-...@googlegroups.com.
>>> To post to this group, send email to home-assi...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/home-assistant-dev/CAD8szLxLsE38mtM6PXB3Af1W3LVpPJ2hP%2B2wNNi27WuVSv_dwA%40mail.gmail.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>>
>>
>> --
>> +1 858 380 9709 ⋅ PaulusSchoutsen.nl
>> It's nice to be important but it's more important to be nice.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Home Assistant Dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to home-assistant-...@googlegroups.com.
> To post to this group, send email to home-assi...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/home-assistant-dev/bac512e6-16e5-43d1-b026-b8751abe32bc%40googlegroups.com.

Paulus Schoutsen

unread,
Jan 26, 2015, 11:08:17 PM1/26/15
to home-assi...@googlegroups.com
Hi Stefan,

Thanks for the instructions! Would you mind if I integrate them into the getting started guide? Which distribution are you using on your Pi ?

Paulus


For more options, visit https://groups.google.com/d/optout.

David Creagan

unread,
Jan 27, 2015, 9:01:43 AM1/27/15
to home-assi...@googlegroups.com, stefan.k...@yale.edu
YAY!!!!!!
 
I will be leaving work early today to get this tested at home!
 
This is going to be a fun Monday night!
 
Thanks again,
 
Dave
>>> > To post to this group, send email to home-assi...@googlegroups.com.
>>> > To view this discussion on the web visit
>>> >
>>> > https://groups.google.com/d/msgid/home-assistant-dev/85d0955e-7e59-495a-8ccc-6b4af12f29fb%40googlegroups.com.
>>> >
>>> > For more options, visit https://groups.google.com/d/optout.
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Home Assistant Dev" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an
>>> To post to this group, send email to home-assi...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/home-assistant-dev/CAD8szLxLsE38mtM6PXB3Af1W3LVpPJ2hP%2B2wNNi27WuVSv_dwA%40mail.gmail.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>>
>>
>> --
>> +1 858 380 9709 ⋅ PaulusSchoutsen.nl
>> It's nice to be important but it's more important to be nice.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Home Assistant Dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an

Stefan Krastanov

unread,
Jan 27, 2015, 9:57:59 AM1/27/15
to home-assi...@googlegroups.com
@David, if you have any troubles it will probably be just a missing
library that can be installed with apt-get or a missing PATH variable.

@Paulus, this was done on Rasbian. If you think it is worthwhile feel
free to add it to the docs.
>> >>> > email to home-assistant-...@googlegroups.com.
>> >>> > To post to this group, send email to home-assi...@googlegroups.com.
>> >>> > To view this discussion on the web visit
>> >>> >
>> >>> >
>> >>> > https://groups.google.com/d/msgid/home-assistant-dev/85d0955e-7e59-495a-8ccc-6b4af12f29fb%40googlegroups.com.
>> >>> >
>> >>> > For more options, visit https://groups.google.com/d/optout.
>> >>>
>> >>> --
>> >>> You received this message because you are subscribed to the Google
>> >>> Groups
>> >>> "Home Assistant Dev" group.
>> >>> To unsubscribe from this group and stop receiving emails from it, send
>> >>> an
>> >>> email to home-assistant-...@googlegroups.com.
>> >>> To post to this group, send email to home-assi...@googlegroups.com.
>> >>> To view this discussion on the web visit
>> >>>
>> >>> https://groups.google.com/d/msgid/home-assistant-dev/CAD8szLxLsE38mtM6PXB3Af1W3LVpPJ2hP%2B2wNNi27WuVSv_dwA%40mail.gmail.com.
>> >>> For more options, visit https://groups.google.com/d/optout.
>> >>
>> >>
>> >>
>> >>
>> >> --
>> >> +1 858 380 9709 ⋅ PaulusSchoutsen.nl
>> >> It's nice to be important but it's more important to be nice.
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "Home Assistant Dev" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> > an
>> > email to home-assistant-...@googlegroups.com.
>> > To post to this group, send email to home-assi...@googlegroups.com.
>> > To view this discussion on the web visit
>> >
>> > https://groups.google.com/d/msgid/home-assistant-dev/bac512e6-16e5-43d1-b026-b8751abe32bc%40googlegroups.com.
>> >
>> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Home Assistant Dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to home-assistant-...@googlegroups.com.
> To post to this group, send email to home-assi...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/home-assistant-dev/477a2171-2cce-4136-8bd7-d45572cde684%40googlegroups.com.

David Creagan

unread,
Jan 27, 2015, 11:21:34 AM1/27/15
to home-assi...@googlegroups.com, stefan.k...@yale.edu
Stefan,
 
I will be using the latest raspbian image (from http://www.raspberrypi.org/downloads/), will feed back exactly how I got on - thank you!
 
Dave

David Creagan

unread,
Jan 27, 2015, 3:47:51 PM1/27/15
to home-assi...@googlegroups.com, stefan.k...@yale.edu
Hi Stefan,

Thank you for the instructions, I have managed to complete steps 1 and 2, having a bit of difficulty finding the ~/.bash_login file to edit

I can see a file /home/pi/.bash_logout

I also have the following folders:

/home/pi/.local
/home/pi/.python_games

The following files:

/home/pi/.bash_history
/home/pi/.bashrc
/home/pi/.profile

Should I create a new file called /home/pi/.bash_login and add the following line

export PATH=$PATH:~/.local/bin 

Thanks again for your help, as you can see I am not a *unix ninja! I assume the the ~ means the root of the user you are logged in, in my case /home/pi/ right?

Dave

Stefan Krastanov

unread,
Jan 27, 2015, 3:59:09 PM1/27/15
to home-assi...@googlegroups.com
> Thank you for the instructions, I have managed to complete steps 1 and 2,
> having a bit of difficulty finding the ~/.bash_login file to edit
>
> I can see a file /home/pi/.bash_logout
>
> I also have the following folders:
>
> /home/pi/.local
>
> /home/pi/.python_games
>
>
> The following files:
>
> /home/pi/.bash_history
> /home/pi/.bashrc
> /home/pi/.profile
>
>
> Should I create a new file called /home/pi/.bash_login and add the following
> line
>
> export PATH=$PATH:~/.local/bin

Either create a file .bash_login or just add the line to the end of .bashrc

> Thanks again for your help, as you can see I am not a *unix ninja! I assume
> the the ~ means the root of the user you are logged in, in my case /home/pi/
> right?

Yes, ~ is the home directory.

David Creagan

unread,
Jan 28, 2015, 4:44:52 AM1/28/15
to home-assi...@googlegroups.com, stefan.k...@yale.edu
Hi Stefan,
 
Every day I learn a little bit more! Thank you.
 
I am stuck at work again, will try it tonight.
 
Am I right in thinking that the /home/pi/.bashrc file gets executed after the user 'pi' log in, sort of like the logon script in a Windows Domain environment?
 
 
Dave

David Creagan

unread,
Jan 28, 2015, 1:27:13 PM1/28/15
to home-assi...@googlegroups.com, stefan.k...@yale.edu
OK, stuck again *sigh*

Here is what I have done:

compiled Python 3.4.1 - no problems

### Create a file called .bash_login in /home/pi/

### Edit the file /home/pi/.bash_login and add the following line:

export PATH=$PATH:~/.local/bin

### Restart the Pi and then log in as pi via PuTtY, you should have python3.4 and pip3.4 available, right?

### Check Python version

python --version

Result is :

Python 2.7.3

Then  follow the instructions as you said:

cd home-assistant 
pip3.4 install -r requirements.txt 

Here is where I get the error:

pi@HomeHA01:~/home-assistant$ pip3.4 install -r requirements.txt
-bash: pip3.4: command not found

I also tried:

pip341
pip34
pip3.4
pip3_4

even simple pip gives me the command not found?

Any ideas?

Dave

Stefan Krastanov

unread,
Jan 28, 2015, 2:17:48 PM1/28/15
to home-assi...@googlegroups.com
In the folder in which you compiled python (presumably ~/Python-3.4.1)
there should be an executable file called `python`. Check whether you
can run this file:

$ cd ~/Python-3.4.1
$ ./python # it is important to have `./` in the beginning

If this works it means that the compilation worked. (i.e. the
`configure` and `make`)

Then check whether this same file exists in ~/.local/bin

$ cd ~/.local/bin
$ ./python3.4

If this works the installation worked as well (i.e. the `sudo make install`)

Then check whether your path variable actually contains ~/.local/bin

$ echo $PATH

on my RaspPi it gives:

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games:/home/pi/.local/bin

If this is not the case check whether you correctly modified .bashrc
or .bash_login
> --
> You received this message because you are subscribed to the Google Groups
> "Home Assistant Dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to home-assistant-...@googlegroups.com.
> To post to this group, send email to home-assi...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/home-assistant-dev/b2b23a67-c4dc-408c-b7fd-66562ba0ce03%40googlegroups.com.

David Creagan

unread,
Jan 28, 2015, 4:05:13 PM1/28/15
to home-assi...@googlegroups.com, stefan.k...@yale.edu


 

$ cd ~/Python-3.4.1
$ ./python # it is important to have `./` in the beginning

--- Ah, I have no /home/pi/Python-3.4.1 directory - I ran the following again, skipping the cd /tmp as per instructions earlier

--- tar xvzf Python-3.4.1.tgz
--- cd Python-3.4.1/

--- ./configure --prefix=/home/pi/.local
--- make
--- sudo make install

:::: waiting - will report back...

Dave


Stefan Krastanov

unread,
Jan 28, 2015, 4:13:01 PM1/28/15
to home-assi...@googlegroups.com
oh, sorry, it does not matter whether the compile directory is in /tmp
or in /home/pi, either works
>> > email to home-assistant-...@googlegroups.com.
>> > To post to this group, send email to home-assi...@googlegroups.com.
>> > To view this discussion on the web visit
>> >
>> > https://groups.google.com/d/msgid/home-assistant-dev/b2b23a67-c4dc-408c-b7fd-66562ba0ce03%40googlegroups.com.
>> >
>> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Home Assistant Dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to home-assistant-...@googlegroups.com.
> To post to this group, send email to home-assi...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/home-assistant-dev/bd8479ff-7b57-4a29-b5a3-c0f7f147bf38%40googlegroups.com.

David Creagan

unread,
Jan 29, 2015, 1:33:37 PM1/29/15
to home-assi...@googlegroups.com, stefan.k...@yale.edu
OK, I tried all the stuff below and I get exactly the same $PATH value

Stefan Krastanov

unread,
Jan 29, 2015, 2:22:32 PM1/29/15
to home-assi...@googlegroups.com
So you are saying every single step worked? When you went in the
compile directory there was a python executable? When you went in
~/.local/bin there was also a python executable?
>> > email to home-assistant-...@googlegroups.com.
>> > To post to this group, send email to home-assi...@googlegroups.com.
>> > To view this discussion on the web visit
>> >
>> > https://groups.google.com/d/msgid/home-assistant-dev/b2b23a67-c4dc-408c-b7fd-66562ba0ce03%40googlegroups.com.
>> >
>> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Home Assistant Dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to home-assistant-...@googlegroups.com.
> To post to this group, send email to home-assi...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/home-assistant-dev/8b7c51c8-f7db-43d0-b0a1-dd3aaa1f85ab%40googlegroups.com.

David Creagan

unread,
Jan 29, 2015, 2:25:20 PM1/29/15
to home-assi...@googlegroups.com, stefan.k...@yale.edu
One step closer, but still so far.

From the getting started page, on step three, I run the command sudo python3 -m pip install -r requirements.txt and now I get the following error:

If I run it anon sudo, I get access denied errors:


pi@HomeHA01:~/home-assistant$ sudo python3 -m pip install -r /home/pi/home-assistant/requirements.txt
Collecting requests>=2.0 (from -r /home/pi/home-assistant/requirements.txt (line 2))
  Downloading requests-2.5.1-py2.py3-none-any.whl (464kB)
    100% |################################| 466kB 51kB/s
Collecting zeroconf>=0.16.0 (from -r /home/pi/home-assistant/requirements.txt (line 7))
  Downloading zeroconf-0.16.0-py2.py3-none-any.whl
Collecting pyephem>=3.7 (from -r /home/pi/home-assistant/requirements.txt (line 10))
  Downloading pyephem-3.7.5.3.tar.gz (735kB)
    100% |################################| 737kB 41kB/s
Collecting phue>=0.8 (from -r /home/pi/home-assistant/requirements.txt (line 13))
  Downloading phue-0.8.tar.gz
Collecting pychromecast>=0.5 (from -r /home/pi/home-assistant/requirements.txt (line 16))
  Downloading PyChromecast-0.5.1.1.tar.gz
Collecting pyuserinput>=0.1.9 (from -r /home/pi/home-assistant/requirements.txt (line 19))
  Downloading PyUserInput-0.1.9.tar.gz
    Missing dependency, could not import this module: Xlib
Collecting tellcore-py>=1.0.4 (from -r /home/pi/home-assistant/requirements.txt (line 22))
  Downloading tellcore-py-1.1.0.tar.gz (41kB)
    100% |################################| 45kB 332kB/s
Collecting python-libnmap (from -r /home/pi/home-assistant/requirements.txt (line 25))
  Downloading python-libnmap-0.6.2.tar.gz
Collecting pushbullet.py>=0.7.1 (from -r /home/pi/home-assistant/requirements.txt (line 28))
  Downloading pushbullet.py-0.7.1-py2.py3-none-any.whl
Collecting python-nest>=2.1 (from -r /home/pi/home-assistant/requirements.txt (line 31))
  Downloading python-nest-2.3.1.tar.gz
Collecting ws4py (from pychromecast>=0.5->-r /home/pi/home-assistant/requirements.txt (line 16))
  Downloading ws4py-0.3.4.tar.gz
Collecting python-magic (from pushbullet.py>=0.7.1->-r /home/pi/home-assistant/requirements.txt (line 28))
  Downloading python-magic-0.4.6.tar.gz
Collecting websocket-client (from pushbullet.py>=0.7.1->-r /home/pi/home-assistant/requirements.txt (line 28))
  Downloading websocket-client-0.23.0.tar.gz (195kB)
    100% |################################| 196kB 93kB/s
Collecting six (from websocket-client->pushbullet.py>=0.7.1->-r /home/pi/home-assistant/requirements.txt (line 28))
  Downloading six-1.9.0-py2.py3-none-any.whl
Installing collected packages: six, websocket-client, python-magic, ws4py, python-nest, pushbullet.py, python-libnmap, tellcore-py, pyuserinput, pychromecast, phue, pyephem, zeroconf, requests

  Running setup.py install for websocket-client
    changing mode of build/scripts-3.2/wsdump.py from 644 to 755
    changing mode of /usr/local/bin/wsdump.py to 755
  Running setup.py install for python-magic
  Running setup.py install for ws4py
  Running setup.py install for python-nest
    Installing nest script to /usr/local/bin

  Running setup.py install for python-libnmap
  Running setup.py install for tellcore-py
    changing mode of build/scripts-3.2/tellcore_tool from 644 to 755
    changing mode of build/scripts-3.2/tellcore_events from 644 to 755
    changing mode of build/scripts-3.2/tellcore_controllers from 644 to 755
    changing mode of /usr/local/bin/tellcore_events to 755
    changing mode of /usr/local/bin/tellcore_tool to 755
    changing mode of /usr/local/bin/tellcore_controllers to 755
  Running setup.py install for pyuserinput
    Missing dependency, could not import this module: Xlib
  Running setup.py install for pychromecast
  Running setup.py install for phue
  Running setup.py install for pyephem
    building 'ephem._libastro' extension
    gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -fPIC -Ilibastro-3.7.5 -I/usr/include/python3.2mu -c extensions/_libastro.c -o build/temp.linux-armv6l-3.2/extensions/_libastro.o
    extensions/_libastro.c:3:20: fatal error: Python.h: No such file or directory
    compilation terminated.
    error: command 'gcc' failed with exit status 1
    Complete output from command /usr/bin/python3 -c "import setuptools, tokenize;__file__='/tmp/pip-build-emit36/pyephem/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-p80i26-record/install-record.txt --single-version-externally-managed --compile:
    running install

    running build

    running build_py

    creating build

    creating build/lib.linux-armv6l-3.2

    creating build/lib.linux-armv6l-3.2/ephem

    copying ephem/cities.py -> build/lib.linux-armv6l-3.2/ephem

    copying ephem/__init__.py -> build/lib.linux-armv6l-3.2/ephem

    copying ephem/stars.py -> build/lib.linux-armv6l-3.2/ephem

    creating build/lib.linux-armv6l-3.2/ephem/tests

    copying ephem/tests/test_cities.py -> build/lib.linux-armv6l-3.2/ephem/tests

    copying ephem/tests/test_stars.py -> build/lib.linux-armv6l-3.2/ephem/tests

    copying ephem/tests/test_usno_equinoxes.py -> build/lib.linux-armv6l-3.2/ephem/tests

    copying ephem/tests/test_launchpad_236872.py -> build/lib.linux-armv6l-3.2/ephem/tests

    copying ephem/tests/test_bodies.py -> build/lib.linux-armv6l-3.2/ephem/tests

    copying ephem/tests/test_locales.py -> build/lib.linux-armv6l-3.2/ephem/tests

    copying ephem/tests/__init__.py -> build/lib.linux-armv6l-3.2/ephem/tests

    copying ephem/tests/test_satellite.py -> build/lib.linux-armv6l-3.2/ephem/tests

    copying ephem/tests/test_github_issues.py -> build/lib.linux-armv6l-3.2/ephem/tests

    copying ephem/tests/test_dates.py -> build/lib.linux-armv6l-3.2/ephem/tests

    copying ephem/tests/test_observers.py -> build/lib.linux-armv6l-3.2/ephem/tests

    copying ephem/tests/test_constants.py -> build/lib.linux-armv6l-3.2/ephem/tests

    copying ephem/tests/test_usno.py -> build/lib.linux-armv6l-3.2/ephem/tests

    copying ephem/tests/test_angles.py -> build/lib.linux-armv6l-3.2/ephem/tests

    copying ephem/tests/test_launchpad_244811.py -> build/lib.linux-armv6l-3.2/ephem/tests

    copying ephem/tests/test_rst.py -> build/lib.linux-armv6l-3.2/ephem/tests

    copying ephem/tests/test_jpl.py -> build/lib.linux-armv6l-3.2/ephem/tests

    creating build/lib.linux-armv6l-3.2/ephem/doc

    copying ephem/doc/index.rst -> build/lib.linux-armv6l-3.2/ephem/doc

    copying ephem/doc/tutorial.rst -> build/lib.linux-armv6l-3.2/ephem/doc

    copying ephem/doc/radec.rst -> build/lib.linux-armv6l-3.2/ephem/doc

    copying ephem/doc/CHANGELOG.rst -> build/lib.linux-armv6l-3.2/ephem/doc

    copying ephem/doc/angle.rst -> build/lib.linux-armv6l-3.2/ephem/doc

    copying ephem/doc/reference.rst -> build/lib.linux-armv6l-3.2/ephem/doc

    copying ephem/doc/rise-set.rst -> build/lib.linux-armv6l-3.2/ephem/doc

    copying ephem/doc/quick.rst -> build/lib.linux-armv6l-3.2/ephem/doc

    copying ephem/doc/faq.rst -> build/lib.linux-armv6l-3.2/ephem/doc

    copying ephem/doc/examples.rst -> build/lib.linux-armv6l-3.2/ephem/doc

    copying ephem/doc/coordinates.rst -> build/lib.linux-armv6l-3.2/ephem/doc

    copying ephem/doc/newton.rst -> build/lib.linux-armv6l-3.2/ephem/doc

    copying ephem/doc/date.rst -> build/lib.linux-armv6l-3.2/ephem/doc

    copying ephem/doc/catalogs.rst -> build/lib.linux-armv6l-3.2/ephem/doc

    creating build/lib.linux-armv6l-3.2/ephem/tests/jpl

    copying ephem/tests/jpl/hyperion.txt -> build/lib.linux-armv6l-3.2/ephem/tests/jpl

    copying ephem/tests/jpl/uranus.txt -> build/lib.linux-armv6l-3.2/ephem/tests/jpl

    copying ephem/tests/jpl/phobos.txt -> build/lib.linux-armv6l-3.2/ephem/tests/jpl

    copying ephem/tests/jpl/saturn.txt -> build/lib.linux-armv6l-3.2/ephem/tests/jpl

    copying ephem/tests/jpl/mars.txt -> build/lib.linux-armv6l-3.2/ephem/tests/jpl

    copying ephem/tests/jpl/oberon.txt -> build/lib.linux-armv6l-3.2/ephem/tests/jpl

    copying ephem/tests/jpl/neptune.txt -> build/lib.linux-armv6l-3.2/ephem/tests/jpl

    copying ephem/tests/jpl/jupiter.txt -> build/lib.linux-armv6l-3.2/ephem/tests/jpl

    copying ephem/tests/jpl/europa.txt -> build/lib.linux-armv6l-3.2/ephem/tests/jpl

    creating build/lib.linux-armv6l-3.2/ephem/tests/usno

    copying ephem/tests/usno/risettran_rigel.txt -> build/lib.linux-armv6l-3.2/ephem/tests/usno

    copying ephem/tests/usno/riset_moon.txt -> build/lib.linux-armv6l-3.2/ephem/tests/usno

    copying ephem/tests/usno/appgeo_deneb.txt -> build/lib.linux-armv6l-3.2/ephem/tests/usno

    copying ephem/tests/usno/moon_phases.txt -> build/lib.linux-armv6l-3.2/ephem/tests/usno

    copying ephem/tests/usno/riset_sun.txt -> build/lib.linux-armv6l-3.2/ephem/tests/usno

    copying ephem/tests/usno/astrom_mercury.txt -> build/lib.linux-armv6l-3.2/ephem/tests/usno

    copying ephem/tests/usno/apptopo_moon.txt -> build/lib.linux-armv6l-3.2/ephem/tests/usno

    copying ephem/tests/usno/appgeo_moon.txt -> build/lib.linux-armv6l-3.2/ephem/tests/usno

    copying ephem/tests/usno/appgeo_jupiter.txt -> build/lib.linux-armv6l-3.2/ephem/tests/usno

    copying ephem/tests/usno/appgeo_sun.txt -> build/lib.linux-armv6l-3.2/ephem/tests/usno

    copying ephem/tests/usno/apptopo_deneb.txt -> build/lib.linux-armv6l-3.2/ephem/tests/usno

    copying ephem/tests/usno/apptopo_sun.txt -> build/lib.linux-armv6l-3.2/ephem/tests/usno

    copying ephem/tests/usno/risettran_moon.txt -> build/lib.linux-armv6l-3.2/ephem/tests/usno

    copying ephem/tests/usno/astrom_neptune.txt -> build/lib.linux-armv6l-3.2/ephem/tests/usno

    copying ephem/tests/usno/astrom_antares.txt -> build/lib.linux-armv6l-3.2/ephem/tests/usno

    running build_ext

    building 'ephem._libastro' extension

    creating build/temp.linux-armv6l-3.2

    creating build/temp.linux-armv6l-3.2/extensions

    creating build/temp.linux-armv6l-3.2/libastro-3.7.5

    creating build/temp.linux-armv6l-3.2/extensions/data

    gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -fPIC -Ilibastro-3.7.5 -I/usr/include/python3.2mu -c extensions/_libastro.c -o build/temp.linux-armv6l-3.2/extensions/_libastro.o

    extensions/_libastro.c:3:20: fatal error: Python.h: No such file or directory

    compilation terminated.

    error: command 'gcc' failed with exit status 1

    ----------------------------------------
    Command "/usr/bin/python3 -c "import setuptools, tokenize;__file__='/tmp/pip-build-emit36/pyephem/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-p80i26-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-emit36/pyephem


Anyone have any ideas?

Muight still be a python version issue? Seems I have three versions installed:

python --version      2.7.3
python3 --version    3.2.3
python3.4 --version 3.4.1

I cannot run sudo python3.4 -m pip install -r requirements.txt

Dave

David Creagan

unread,
Jan 29, 2015, 2:26:40 PM1/29/15
to home-assi...@googlegroups.com, stefan.k...@yale.edu
all the steps worked perfectly - thank you.

The $PATH was the same as yours

Dave

>> > To post to this group, send email to home-assi...@googlegroups.com.
>> > To view this discussion on the web visit
>> >
>> > https://groups.google.com/d/msgid/home-assistant-dev/b2b23a67-c4dc-408c-b7fd-66562ba0ce03%40googlegroups.com.
>> >
>> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Home Assistant Dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an

David Creagan

unread,
Jan 30, 2015, 5:17:01 AM1/30/15
to home-assi...@googlegroups.com, stefan.k...@yale.edu
Hi Stefan,
 
One step closer, but still so far. Posting this again in case it got overlooked.
 
From the getting started page, on step three, I run the command sudo python3 -m pip install -r requirements.txt and now I get the following error:
 
If I run it without sudo, I get access denied errors:
Might still be a python version issue? Seems I have three versions installed:
 
python --version      2.7.3
python3 --version    3.2.3
python3.4 --version 3.4.1
 
I cannot run sudo python3.4 -m pip install -r requirements.txt - say command not found
 
Dave

Stefan Krastanov

unread,
Jan 31, 2015, 9:09:15 AM1/31/15
to home-assi...@googlegroups.com
Two options:

You set up the path variable to that sudo sees it as well
(http://unix.stackexchange.com/questions/83191/how-to-make-sudo-preserve-path).
You can do it with the -E flag that preserves the environment:

sudo -E pip3.4 ...

Or better, you remove your current ~/.local folder, because calling
`sudo make install` was wrong (my mistake). The entire point of
installing in ~/.local is that you do need sudo. So after removing the
folder you can just create it again without sudo, i.e. `make install`.

Either works, the second option is longer but cleaner.
> --
> You received this message because you are subscribed to the Google Groups
> "Home Assistant Dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to home-assistant-...@googlegroups.com.
> To post to this group, send email to home-assi...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/home-assistant-dev/0607ee5a-ff33-4a42-8c95-d77c757d2af2%40googlegroups.com.

Simon Kennedy

unread,
Feb 2, 2015, 12:07:01 PM2/2/15
to home-assi...@googlegroups.com, stefan.k...@yale.edu
On Thursday, 29 January 2015 19:25:20 UTC, David Creagan wrote:
One step closer, but still so far.

From the getting started page, on step three, I run the command sudo python3 -m pip install -r requirements.txt and now I get the following error:

    gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -fPIC -Ilibastro-3.7.5 -I/usr/include/python3.2mu -c extensions/_libastro.c -o build/temp.linux-armv6l-3.2/extensions/_libastro.o
    extensions/_libastro.c:3:20: fatal error: Python.h: No such file or directory
    compilation terminated.
    error: command 'gcc' failed with exit status 1


Dave,

I looks like your problem is in the output above. libastro is failing to compile because it can't find Python.h. Try the following command before trying the requirements.txt line

    sudo apt-get install python-dev

--Simon

Stefan Krastanov

unread,
Feb 2, 2015, 12:23:36 PM2/2/15
to home-assi...@googlegroups.com
sudo apt-get install python-dev will NOT work because it will install
the system dev version. You need the new 3.4 version that was just
compiled, and installed. When the PATH variables are correctly set it
will just use the appropriate version, but setting these up,
especially for a first time user is indeed a pain.
> --
> You received this message because you are subscribed to the Google Groups
> "Home Assistant Dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to home-assistant-...@googlegroups.com.
> To post to this group, send email to home-assi...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/home-assistant-dev/cb16b1ab-6fc3-4d95-8412-2b47503f2a93%40googlegroups.com.

James Cole

unread,
Feb 22, 2015, 12:07:36 AM2/22/15
to home-assi...@googlegroups.com, stefan.k...@yale.edu
Hi guys,

for anyone else who is trying to figure this out I found the answer here:


full credit for this goes to the author but I thought I would expand it and write the exact steps that I took:

Step 1. Install pyenv

nano ~/.bashrc
 
Then add these lines to the end of the file and save:
export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"

Step 2. Install requirements
sudo apt-get install python3-dev
sudo apt-get install libsqlite3-dev libreadline-dev

I then logged out and then back in so my bashrc was reloaded.

NOTE: the rest of the commands are not being run as sudo and will install python etc under you user's home directory.

Step 3. Install python 3.4.2
pyenv install 3.4.2

NOTE: This took a few hours to compile python from source


Step 4. Create Python Virtual Environment
pyenv virtualenv 3.4.2 homeassistant

Step 5. Clone the source
Step 6. Set the virtual environment
cd home-assistant
pyenv local homeassistant

Step 6. Finish the install
python3 -m pip install -r requirements.txt

Step 7. Start it up
python3 -m homeassistant

It will be up and running on port 8123

Paulus Schoutsen

unread,
Feb 23, 2015, 1:50:52 AM2/23/15
to home-assi...@googlegroups.com
Hi James, thanks for writing it out. I'll spend some time this week to add it to the website. 

Paulus

--
You received this message because you are subscribed to the Google Groups "Home Assistant Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to home-assistant-...@googlegroups.com.
To post to this group, send email to home-assi...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

James Cole

unread,
Feb 24, 2015, 3:09:24 AM2/24/15
to home-assi...@googlegroups.com
No problem, glad to help.  I really like what you guys are doing, I've wanted to write the same sort of things for years but work is always so hectic that I have never had time.  I'm really looking forward to writing some custom components to interact with some of my arduino projects and also I was planning on writing a component to talk to "motion"(an open source daemon) for talking to IP cameras.  Do you plan on writing a generic component for IP cameras any time soon?

To unsubscribe from this group and stop receiving emails from it, send an email to home-assistant-dev+unsub...@googlegroups.com.

To post to this group, send email to home-assi...@googlegroups.com.

Paulus Schoutsen

unread,
Feb 24, 2015, 3:18:53 AM2/24/15
to home-assi...@googlegroups.com

There are currently no such plans but contributions are always welcome. What would you expect from a camera component?


To unsubscribe from this group and stop receiving emails from it, send an email to home-assistant-...@googlegroups.com.

To post to this group, send email to home-assi...@googlegroups.com.

Paulus Schoutsen

unread,
Feb 25, 2015, 1:39:03 AM2/25/15
to home-assi...@googlegroups.com
I have added the Raspberry Pi instructions to the getting started page. Thanks for everyone involved in writing this down!

Paulus

James Cole

unread,
Feb 25, 2015, 5:21:19 AM2/25/15
to home-assi...@googlegroups.com
I was thinking of a couple of things, in the base class I think the following:
Get Still Image
Get Stream
Pan Left
Pan Right
Pan Up
Pan Down
Zoom In
Zoom Out
Switch on infra red(night vision)
Go to preset position

Obviously not all models would support all these functions.  Also a card with a camera stream and controls if applicable.

The cool bit would be integration with motion.  The motion API would allow device discovery etc. but also part of its core function  is detecting movement and saving the relevant frames.  It would be great to get this to write to the history so that I can see when the camera's motion sensor is triggered and ideally view the relevant frames.  As part of the motion integration it would be great to have it ass part of the automation so that you could configure rules like "Disable motion detection on indoor cameras if certain devices are home"

Hopefully(if I ever get time away from coding for work all the time) I can get a chance to start on the motion integration.
To unsubscribe from this group and stop receiving emails from it, send an email to home-assistant-dev+unsubscribe@googlegroups.com.
To post to this group, send email to home-assi...@googlegroups.com.



--
It's nice to be important but it's more important to be nice.

--
You received this message because you are subscribed to the Google Groups "Home Assistant Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to home-assistant-dev+unsub...@googlegroups.com.
To post to this group, send email to home-assi...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages