dangrie158 / EEPROgraMmer

Arduino-based Universal parallel EEPROM Programmer
MIT License
10 stars 4 forks source link

SyntaxError #1

Closed 122christo closed 3 years ago

122christo commented 3 years ago

I got a syntaxError:

XXXr$ eepro --h Traceback (most recent call last): File "/home/christoph/.local/bin/eepro", line 5, in from eepro.eepro import main File "/home/christoph/.local/lib/python3.5/site-packages/eepro/eepro.py", line 63 return f"fill bytes (0x{self.fill_byte[0]:02X})" ^ SyntaxError: invalid syntax

How to fix it?

dangrie158 commented 3 years ago

Hi, you are using python 3.5. The project uses f-Strings which were introduced in 3.6.

Upgrade to at least this version and it should work 😊

Alternatively you could modify the code to use old style string formatting. I think this is really the only dependency on 3.6

122christo commented 3 years ago

OK, your software needs python 3.6. This can create problems if you use Ubuntu. (Ubuntu depends heavily on python and some versions use python3.5. and they hate python3.6) In this case you need python3.6 only for this software. I run in this problem. The solution is to create a virtual environment. Just type: virtualenv venv -p python3.6 after you installed all the necessary stuff. after this eepro -- ... should work.