Description
I did a simple conversion to python3
- I ran 2to3 on flash.py. (this changes mostly print statements, I think)
- That left two remaining issues:
line 188. -- had to convert address into an int
def write_flash_many(self, tupl):
if not tupl: return
print('Flashing %s' % ', '.join('0x%x: %s' % (int(address), os.path.basename(path)) for (address, path) in tupl))
line 190 -- same thing
os.system("python esptool.py -p %s write_flash -fs 32m -fm %s -ff 40m %s" % (self.port, self.flashmode, ' '.join("0x%x %s" % (int(a),p) for a,p in tupl)))
flash.py seems to run OK now.
Surprisingly I did not seem to have to change esptool.py
A python3 version of esptool.py has been installed by pip, so it seems to use this one.
The changed file is attached.
(Sorry I am not used to this - I had to change to txt extension to get it to upload)
Also:-
This is for esp8266. I am running a macbook on catalina.