I've just installed the package tftpy version 0.6.2 when I import it I get a syntax error with the line: running the code:
import tftpy
I get the error: raise ImportError, "Requires at least Python 2.3"
SyntaxError: Invalid syntax
I have version 3.6.3 installed.
import sys
print(sys.version_info)
gives me the out put major=3, minor=6, micro=3.
However the line of code that raises the syntax error is the last line in the code below:
import sys
required_version = (2, 3)
if sys.version_info < required_version:
raise ImportError, "Requires at least Python 2.3"
I don't think the issue is with my version number I think it doesn't like the syntax used to raise the ImportError exception. Any help would be greatly received.