philips_android_tv icon indicating copy to clipboard operation
philips_android_tv copied to clipboard

philips.py not working on Raspberry Pi3

Open emiksTT opened this issue 6 years ago • 7 comments

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 avatar May 01 '19 06:05 emiksTT

Its work :D

emiksTT avatar May 01 '19 12:05 emiksTT

Its work :D

If you got it working you should close the issue.

myhrmans avatar May 27 '19 14:05 myhrmans

got same errors, how did you get it work?

QonosSWE avatar Jul 28 '19 08:07 QonosSWE

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

Ie0nard0 avatar Oct 30 '19 07:10 Ie0nard0

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

bluorange avatar Jan 06 '20 14:01 bluorange

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.

Staubgeborener avatar Dec 30 '20 10:12 Staubgeborener

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...

mAPBhlJ avatar Feb 27 '21 11:02 mAPBhlJ