Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

philips.py not working on Raspberry Pi3 #20

Open
emiksTT opened this issue May 1, 2019 · 7 comments
Open

philips.py not working on Raspberry Pi3 #20

emiksTT opened this issue May 1, 2019 · 7 comments

Comments

@emiksTT
Copy link

emiksTT commented May 1, 2019

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
Copy link
Author

emiksTT commented May 1, 2019

Its work :D

@myhrmans
Copy link

myhrmans commented May 27, 2019

Its work :D

If you got it working you should close the issue.

@QonosSWE
Copy link

got same errors, how did you get it work?

@Ie0nard0
Copy link

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

@bluorange
Copy link

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

@Staubgeborener
Copy link

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
Copy link

mAPBhlJ commented Feb 27, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants