tjikkun / zigate-flasher

Python tool to flash your Zigate (Jennic JN5168)
GNU General Public License v3.0
17 stars 4 forks source link

ZIGATE_BINARY_VERSION / AttributeError: type object 'str' has no attribute 'fromhex' #2

Closed lboue closed 5 years ago

lboue commented 5 years ago

Hello,

I am running Python 2.7.13 and I get the following error when I run zigate-flasher.py

pi@raspberrypi:~/zigate-flasher $ python zigate-flasher.py -h
Traceback (most recent call last):
  File "zigate-flasher.py", line 19, in <module>
    ZIGATE_BINARY_VERSION = bytes.fromhex('07030008')
AttributeError: type object 'str' has no attribute 'fromhex'

Could you help me to fix it?

Regards, Ludovic

tjikkun commented 5 years ago

Sorry, this program can only be used with Python 3.5 or higher. Hope this helps.