Apologize for the dumb question, but in the manual for the firetv platform is that the installation must be done in a Python environment. I access via ssh to the installation (user: pi). How do I install in the python environment? Many thanks for the help.
Well, I just discovered something completely by accident and I feel kind of dumb, but I’m going to lay it out here for anyone else that might search for this…
I never touched a Pi before HA. Never even saw one close up. So my linux skills were reduced to my exposure to web servers as a web designer and a few commands I remembered for navigation. Almost everything I learned, I learned in the process of installing and setting up HA. I started on Windows and quickly realized that native linux was going to be a better supported option.
I downloaded an image for Raspian and installed HA using the pre December 2016 AIO installer. It went beautiful and I was running HA in a virtual environment without even having to set it up. How cool, right?
Yeah, but by having all that done for me, I never really understood it until I was asked by one of the devs to test out pre-release code for him. He gave me instructions to setup a venv manually then install his repo version of HA.
In the process, I realized that while in all these venvs I knew I was running a 3.4.2 version of Python. It never occurred to me to check what version is installed on my Pi…
Duh. Python 2.7.9. IT JUST NEVER OCCURRED TO ME TO CHECK.
So this is probably the same story for you. And now that I know, I will be installing the FireTV server tomorrow.
Feel stupid but I thought it was worth sharing.
EDIT: Oh, and if you SSH to your Pi and run python --version from the command line, it will report the version.
I just updated my Ubuntu today and now firetv won’t autostart anymore (has worked fine for 5+ months). I don’t get an immediate error if I start directly from the command line : firetv-server but it still returns the same error when I check the status.
i checked my python and it is 2.7.12 (was 2.7.9 I believe)
Here is the error when i check the status:
â—Ź firetv-server.service - FireTV-Server
Loaded: loaded (/etc/systemd/system/firetv-server.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2017-05-17 14:17:30 CDT; 2s ago
Process: 32551 ExecStart=/usr/local/bin/firetv-server -d 192.168.1.189:5555 (code=exited, status=1/FAILURE)
Main PID: 32551 (code=exited, status=1/FAILURE)
May 17 14:17:30 WWEServer firetv-server[32551]: File "/usr/local/lib/python2.7/dist-packages/firetv/__main__.py", line 81, in add
May 17 14:17:30 WWEServer firetv-server[32551]: devices[device_id] = FireTV(str(host))
May 17 14:17:30 WWEServer firetv-server[32551]: File "/usr/local/lib/python2.7/dist-packages/firetv/__init__.py", line 61, in __init__
May 17 14:17:30 WWEServer firetv-server[32551]: self.connect()
May 17 14:17:30 WWEServer firetv-server[32551]: File "/usr/local/lib/python2.7/dist-packages/firetv/__init__.py", line 74, in connect
May 17 14:17:30 WWEServer firetv-server[32551]: raise serr
May 17 14:17:30 WWEServer firetv-server[32551]: socket.error: [Errno 104] Connection reset by peer
May 17 14:17:30 WWEServer systemd[1]: firetv-server.service: Main process exited, code=exited, status=1/FAILURE
May 17 14:17:30 WWEServer systemd[1]: firetv-server.service: Unit entered failed state.
May 17 14:17:30 WWEServer systemd[1]: firetv-server.service: Failed with result 'exit-code'.