hassio-addons
hassio-addons copied to clipboard
errors Stopping xbox-rest-server from running
this is my output running on my Stretch hassbain running HA vr0.89.1
Traceback (most recent call last):
File "/usr/local/bin/xbox-rest-server", line 7, in
You are not located within a python 3 virtualenv! (You can see that on the python2.7
string)
Here a suggestion how to deal with it:
- Change to homeassistant user
sudo -u homeassistant -H -s
- Create a new directory for the xbox virtual environment
mkdir /srv/homeassistant/xbox-venv
- Create the new environment
python3 -m venv /srv/homeassistant/xbox-venv
- Activate the environment
/srv/homeassistant/xbox-venv/bin/activate
- Install xbox-rest-server
pip install xbox-rest-server
- Start it
xbox-rest-server
PS: You can of course create an entirely new user to just serve the xbox rest server PPS: To start it as a service automatically, see README
ok cool thanks for that will do that thnx :)
Im now snagged on 4. homeassistant@hassbian:/home/pi $ /srv/homeassistant/xbox-venv/bin/activate bash: /srv/homeassistant/xbox-venv/bin/activate: Permission denied
Normally that should not happen...
chmod +x /srv/homeassistant/xbox-venv/bin/activate
got that sorted but now bun now pip wont install xbox-rest-server
homeassistant@hassbian:/home/pi $ pip install xbox-rest-server Collecting xbox-rest-server Could not find a version that satisfies the requirement xbox-rest-server (from versions: ) No matching distribution found for xbox-rest-server
Oops, its pip install xbox-smartglass-rest
oh ok all good that's now put me right back at the start now with the same error within this env now :-/
homeassistant@hassbian:/home/pi $ xbox-rest-server
Traceback (most recent call last):
File "/usr/local/bin/xbox-rest-server", line 7, in
You are either NOT YET in the python 3 virtual env - or not anymore, after installation. You have to stay in the python 3 context to execute it....
alright got that all sorted was loading from installs outside the env fixed by running pip uninstall xbox-smartglass-rest as pi almost got it working but starting it returns command not found?
homeassistant@hassbian:/home/pi $ xbox-smartglass-rest bash: xbox-smartglass-rest: command not found