suborb / philips_android_tv

Tools to control Philips 2016 Android TVs
GNU General Public License v2.0
121 stars 61 forks source link

philips.py not working on Raspberry Pi3 #20

Open emiksTT opened 5 years ago

emiksTT commented 5 years ago

Hi Guys. I have a problem with this script. Wenn i put in terminal : sudo sh philips.py --host 192.168.10.35 pair then recives

from: can't read /var/mail/__future__
from: can't read /var/mail/base64
from: can't read /var/mail/datetime
philips.py: 4: philips.py: import: not found
philips.py: 5: philips.py: import: not found
philips.py: 6: philips.py: import: not found
philips.py: 7: philips.py: import: not found
philips.py: 8: philips.py: import: not found
from: can't read /var/mail/Crypto.Hash
from: can't read /var/mail/requests.auth
philips.py: 11: philips.py: import: not found
philips.py: 17: philips.py: Syntax error: Bad function name
emiksTT commented 5 years ago

Its work :D

myhrmans commented 5 years ago

Its work :D

If you got it working you should close the issue.

QonosSWE commented 4 years ago

got same errors, how did you get it work?

Ie0nard0 commented 4 years ago

Try python ./philips.py —host x.x.x.x pair instead of sudo sh

bluorange commented 4 years ago

I have got same errors. How did you get it work???

Staubgeborener commented 3 years ago

Because sudo sh philips.py --host 192.168.10.35 pair simply can not work. I wonder where you got that sh from?

If you all issue the same command as described above, it cannot work. The ending .py suggests that it is a python script, such can not be executed with sh (shell). Make sure that you have installed python3 and pip3 (check with python -V / python3 -V and pip -V / pip3 -V) and execute the command as it is in the readme.

And to be absolutely sure: Turn on your TV and run this commands:

pip3 install -r requirements.txt
python3 philips.py --host <YOUR_IP_ADDRESS> pair

you will get a code on your tv. Type this into the terminal.

mAPBhlJ commented 3 years ago

I have a problem with this script. Wenn i put in terminal : sudo sh philips.py --host 192.168.10.35 pair

It is a python script; not a bash script. You shouldn't run it with sh but with python...