grasingerm
grasingerm

Reputation: 1953

Auto documenting Python 3 with Sphinx

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.

Upvotes: 3

Views: 482

Answers (1)

grasingerm
grasingerm

Reputation: 1953

When installing sphinx with easy_install I needed to specify easy_install3. This made python3 the default interpreter.

easy_install3 sphinx

Upvotes: 3

Related Questions