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

Error Message when starting #1

Open
townsmcp opened this issue Sep 22, 2016 · 2 comments
Open

Error Message when starting #1

townsmcp opened this issue Sep 22, 2016 · 2 comments

Comments

@townsmcp
Copy link

Hi
Can I get some help please.
Im running Python on Windows 10.
I have installed pysimplesoap.
I go to command prompt and type python hue.py but get the following error massage:

C:\Users\James\AppData\Local\Programs\Python\Python35\Scripts\sonoshue>python hue.py 192.168.1.57
File "hue.py", line 52
print "getSessionId(%s, %s) called" % (username, password)
^
SyntaxError: invalid syntax

I have tried the steps after (in a web browse go to the IP of one of the Sonos units, added the Hue to the Sonos Services but cant get anywhere. What should the username and password be set to ?

Thanks

@crummy
Copy link
Owner

crummy commented Sep 23, 2016

I think (it's been a long time since I worked on this) that it requires Python 2.7, not Python 3.

If you set Login to Anonymous when adding the music service, you shouldn't be asked for a username/password. Otherwise, any will do.

Also I'm not really sure if this still works, it was more of a proof of concept rather than something that I thought people would ever use.

@townsmcp
Copy link
Author

Thanks for the response - changing to Python 2.7 worked! The program is still in good condition and changed lights for the different bulbs so well done.
I miss understood what the program does a bit though - I thought it would turn the bulbs into a disco based on music being played through Sonos (a bit like Hue Disco but direct form Sonos) - great program though

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

2 participants