Readthedocs.org: Show syntax error with Python 3.6

Created on 8 Jan 2017  路  20Comments  路  Source: readthedocs/readthedocs.org

Details

I'm using Python 3.6 f-string and variable annotations.

Expected Result

Docs should be build

Actual Result

Syntax error

Improvement design decision

Most helpful comment

All 20 comments

Same thing happening to me:

As mentioned in #1990, RTD currently only supports Python 3.4 for CPython 3.x projects. Any syntax (e.g., async/await, f-strings) or modules (e.g., typing) introduced since then will cause autodoc to fail.

I have sent the beta application via the above form twice during last a few days, but haven't gotten any reply yet.
Is the beta participation program still active?

I've submitted the beta application twice since early April this year but didn't get an answer; was hoping the feature would start running in production because of that, but it has not. I've moved to github pages in the meantime.

I got one project running on that beta (application submitted in February) and it runs great!

@achimnol have you tried the alternative mentioned in issue 2584 using conda? I've tried it and it works properly; setup is a bit more verbose but completely worth it! On that issue they reference the poliastro project as an example.

@ericholscher I've submitted that form a few times for the bloop project but my builds are still failing: https://readthedocs.org/projects/bloop/builds/5995227/

Anything else I can do to opt into the program? I really don't want to resort to conda for this.

Any news on this issue? Also requested access to the Beta and did not get it. My project is all python 3.6 and I get syntax errors with type annotation.

We have a PR open that will let users configure this themselves: https://github.com/rtfd/readthedocs.org/pull/3339 -- it has one outstanding issue, and then should be merged in the next week or so.

so if i want to use use python 3.6 ill have to dockerize my project? I'm sorry if I misunderstood how that PR solves the 3.6 issue...

RTD runs the builders in Docker containers. The PR provides more control over which image is used.

I see. Thanks for the explanation, looking forward for the implemented solution

When can we expect this solution to be implemented?

It's a new feature, so please let us know if it isn't working for some case.

I ran into https://github.com/pypa/pip/issues/4216 while installing 'sphinxcontrib.fulltoc' as extra requirement... updating the pip should fix this.

Otherwise it works, thanks :)

Well, the build runs now and it doesn't fail but for some reason I don't see autodoc stuff (even though it looks fine locally when i make html via sphinx).
I'm not sure if it's a config issue on my part (probably) or a real issue.

docs: http://notifiers.readthedocs.io/en/latest/API.html
source: https://github.com/liiight/notifiers/blob/develop/source/API.rst

I'd appreciate the help and I apoligize in advance if I'm hijacking the issue. This is my first RTD project...

@liiight i use pip_install: true and autodoc works.

Thanks @gasparka! That did the trick! python 3.6 works great here too 馃槃

That's two confirmations. I am going to call this as closed. If anyone has an issue, let's reopen. Thanks everyone!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

humitos picture humitos  路  4Comments

humitos picture humitos  路  4Comments

humitos picture humitos  路  3Comments

enielse picture enielse  路  4Comments

SylvainCorlay picture SylvainCorlay  路  3Comments