Quantum-cross / sam-fusee-launcher-internal

Internal Fusee Launcher for the Adafruit Trinket M0
GNU General Public License v2.0
151 stars 25 forks source link

When converting bin / h... #4

Closed Auvrae closed 6 years ago

Auvrae commented 6 years ago

Hello whilst converting with your python script I keep getting this error...

"reading file: C:\bin.bin [ ] 0%Traceback (most recent call last): File "binConverter.py", line 42, in stringBuffer += "0x"+binascii.hexlify(byte).decode('ascii')+", " TypeError: a bytes-like object is required, not 'int'"

I'm using python 3.7.

Thanks.

Quantum-cross commented 6 years ago

Sorry, try python 2, I think there's a python3 capable version in one of the other forked repositories. I haven't had much time to update this repository

Auvrae commented 6 years ago

I’ll definitely try 2. I’ll also look into a compatible 3 version in the forks. I’ll let you know later tonight if my findings, thanks a bunch.

Auvrae commented 6 years ago

update,

using python 2.7 it works perfectly. thank you for the tip! may i suggest adding that to the guide?