dell-charger-emulator icon indicating copy to clipboard operation
dell-charger-emulator copied to clipboard

Outdated python script

Open lgolebio opened this issue 2 years ago • 2 comments

Hi It looks like dell-charger-data-editor.py no longer works on ubuntu 20.04.

File "dell-charger-data-editor_backup.py", line 192 print('%02x ' % byte, end='', flush=True) ^ SyntaxError: invalid syntax

Would it be easy to fix it ?

lgolebio avatar Apr 19 '22 12:04 lgolebio

python 2 and 3 have different print syntax. Could this be the difference? I ran the python script today and it ran fine, I don't think the script is outdated.

tylerwight avatar Apr 20 '22 21:04 tylerwight

Bingo ! Using python3 command before executing .py file solves the problem.

lgolebio avatar Apr 21 '22 14:04 lgolebio