NightRang3r / Broadlink-e-control-db-dump

These two scripts will "parse" the broadlink e-Control Android application database or SharedData and dump the IR / RF codes for selected accessories into a text file which can be later used with broadlink-python to send the codes to the RM PRO hub
149 stars 52 forks source link

error when running getBroadlinkSharedData.py #15

Closed sbeagle25 closed 6 years ago

sbeagle25 commented 6 years ago

Hi, I'm new to linux system. When I run getBroadlinkSharedData.py, it shows the error below and I don't known how to fix it.

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

NightRang3r commented 6 years ago

You need to use python 2.7

sbeagle25 commented 6 years ago

New error comes after I run with python 2.7:

Traceback (most recent call last): File "getBroadlinkSharedData.py", line 24, in import simplejson as json ImportError: No module named simplejson

NightRang3r commented 6 years ago

Please follow the instructions next time, you should install the simplejson library using pip as described in the README file.

sbeagle25 commented 6 years ago

Requirement already satisfied: simplejson in /usr/local/lib/python3.5/dist-packages How can I install simplejson for python2.7? Thanks!

NightRang3r commented 6 years ago
  1. Try google search first
  2. See the readme
  3. pip install simplejson

Or

Make sure you execute python 2.7 and not 3

python -m pip install simplejson