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

issue with codes help please #17

Open
arissaraiva opened this issue Nov 23, 2017 · 3 comments
Open

issue with codes help please #17

arissaraiva opened this issue Nov 23, 2017 · 3 comments

Comments

@arissaraiva
Copy link

arissaraiva commented Nov 23, 2017

Hello I´ve installed python 2.7 on windows 10 run the first script and get this:

C:\phytonscripts>python getBroadlinkSharedData.py
ID: 1 | Name: TV
ID: 2 | Name: User-Defined Aircon
ID: 5 | Name: TV NET
ID: 6 | Name: hdmi
ID: 7 | Name: TV
ID: 8 | Name: ar cond
ID: 9 | Name: Sort in order
ID: 10 | Name: Sort in order
ID: 11 | Name: RF Socket
ID: 12 | Name: TV
ID: 13 | Name: TV
ID: 14 | Name: Livolo
ID: 15 | Name: Xbox One
ID: 16 | Name: TV
ID: 17 | Name: porch lights
ID: 18 | Name: OSVETLITEV
ID: 19 | Name: Livolo
ID: 20 | Name: Livolo
ID: 21 | Name: Traceback (most recent call last):
File "getBroadlinkSharedData.py", line 43, in
print "ID:", jsonSubIrData[i]['id'], "| Name:", jsonSubIrData[i]['name']
File "C:\Python27\lib\encodings\cp850.py", line 12, in encode
return codecs.charmap_encode(input,errors,encoding_map)
UnicodeEncodeError: 'charmap' codec can't encode characters in position 0-3: character maps to

does anything went wrong?

when I put broadlink_to_home_assistant_encoder.py "packet" it returns nothing what I´m doing wrong?

tks in advance

@limcheehow
Copy link

I am having a similar issue! And I am using Python 3.5 and not 2.7 (due to my work)

File "getBroadlinkSharedData.py", line 43
print "ID:", jsonSubIrData[i]['id'], "| Name:", jsonSubIrData[i]['name']
^
SyntaxError: Missing parentheses in call to 'print'

Any idea?

@NightRang3r
Copy link
Owner

@limcheehow yes, the script doesn’t support python 3 only 2.7 it’s written in the README file!

@clach04
Copy link

clach04 commented Aug 21, 2018

@arissaraiva do you have a data file that causes this? Be interesting to see it for testing purposes.

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

4 participants