I am getting the following error when running sphinx:
"invalid syntax (DaPL.py, line 79)", please check your spelling and sys.path
However the file runs perfectly fine. The line is:
print("Warning: A value for", k, "was not specified. It will be inferred.",
file=sys.stderr)
How can I resolve this?
EDIT:
I added another valid print line in a module that was auto-docing correctly and got the same error:
print('one', 'two', 'three', file=sys.stderr)
When I remove file=sys.stderr, I no longer get the error.
When installing sphinx with
easy_installI needed to specifyeasy_install3. This madepython3the default interpreter.