"SyntaxError: invalid syntax" on import with Python 3.5
Created originally on Bitbucket by david.mack
When I try running openpyxl using Python3.5 I get the following invalid-syntax error on import:
Traceback (most recent call last):
...
File ".../lib/python3.5/site-packages/openpyxl/worksheet/worksheet.py", line 392
return f"{get_column_letter(min_col)}{min_row}:{get_column_letter(max_col)}{max_row}"
^
SyntaxError: invalid syntax
The problem seems to be the f-string formatting which was introduced in the end of last year.
Minimal “working” example for command line:
python3.5 -c "import openpyxl"
Verified on Ubuntu 16.04 & 18.04