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

errors in Python 2 and Python 3 #4

Closed
ping13 opened this issue Jul 15, 2018 · 2 comments
Closed

errors in Python 2 and Python 3 #4

ping13 opened this issue Jul 15, 2018 · 2 comments
Labels

Comments

@ping13
Copy link
Owner

ping13 commented Jul 15, 2018

orginal source: personal email

I trying to use heospy but I bump in to same error all the time.
I running heospy on a raspberry pi 3 and I have tried both python 2 and 3.
I have created a heos account and configured the config.json file.

##
python2 heos_player.py
Traceback (most recent call last):
  File "heos_player.py", line 18, in <module>
    import ssdp # Simple Service Discovery Protocol (SSDP), https://gist.github.com/dankrause/6000248
  File "/home/pi/scripts/heospy/ssdp.py", line 18, in <module>
    import http.client
ImportError: No module named http.client

##
python3 heos_player.py
  File "heos_player.py", line 312
    print json.dumps(all_results, indent=2)
             ^
SyntaxError: invalid syntax
@ping13 ping13 added the bug label Jul 15, 2018
@ping13
Copy link
Owner Author

ping13 commented Jul 15, 2018

first notes, while not on my dev machine:

  • not sure about the python2 error. Check if you really use Python 2.7 and not an earlier version
  • Th python3 issue is a bug: replace the line with additional brackets
print(json.dumps(all_results, indent=2))

I will push a new commit eventually.

@ping13
Copy link
Owner Author

ping13 commented Jul 15, 2018

fixed with 2658912 and b43bbd3

@ping13 ping13 closed this as completed Jul 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant