philips.py not working on Raspberry Pi3
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
Its work :D
Its work :D
If you got it working you should close the issue.
got same errors, how did you get it work?
Try python ./philips.py —host x.x.x.x pair instead of sudo sh
I have got same errors. How did you get it work???
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.
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...