-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Mkdocs builds failing on Python 3.x for Project with Sub-Docs #7374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'm unfortunately experiencing this again: Using same Python version as the server yields the same result. What could there be wrong on my end that might cause this? |
@Breakthrough I see two things:
To solve both of those issues, you can use a config file https://docs.readthedocs.io/en/stable/config-file/v2.html and pinning your mkdocs version in your requirements file. |
Hey @stsewd; Sorry I've changed environments since the original post, I confirmed I was running Python 3.7 locally and on RTD. I also tried adding a config file to see if it resolved the issue, but I still get the same output. To help with further debugging, I created a branch that only changes the Python version from 2.7 -> 3.7 to demonstrate the issue: And the resulting build output: https://readthedocs.org/projects/dvr-scan/builds/16040170/ Thanks for the reply, and sorry for some of the confusion there! |
Also I just read that link you provided re: dependencies, and that's a good point, I have mkdocs 1.2.3 locally installed. |
Building just fine now on RTD once I pin mkdocs to 1.2.3, so I'll make sure to define the requirements explicitly in my |
Sorry one more question - this approach doesn't seem to be working for another one of my projects that uses subprojects in RTD. I'm able to work around this since the requirements can be specified in the project config from the Web UI, but I'd like to know, is there a way of handling this via Thanks! |
Take a look at https://docs.readthedocs.io/en/stable/config-file/v2.html#python. The key you are looking for is |
Sorry to clarify, the issue I'm having is that I have two projects in the
same repo. When I specify .readthedocs.yaml it breaks that workflow since
then both projects use the same configuration.
To avoid that I'm not using .readthedocs.yaml as a workaround.
On Monday, February 14, 2022, Manuel Kaufmann ***@***.***> wrote:
I'm able to work around this since the requirements can be specified in
the project config from the Web UI, but I'd like to know, is there a way of
handling this via .readthedocs.yaml?
Take a look at
https://docs.readthedocs.io/en/stable/config-file/v2.html#python. The key
you are looking for is python.install.requirements
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you modified the open/close state.<
|
@Breakthrough we don't support multiple config files for a repo, but we have an open issue discussing this at #8811. |
Details
For some reason, my Mkdocs project is failing to build on the RTD server using Python 3.x, but works fine with Python 2.x. Locally, I am able to build fine using
mkdocs
under Python 3.8.RTD seems to be using Python 3.7.
https://pyscenedetect.readthedocs.io/en/latest/
https://readthedocs.org/projects/pyscenedetect/
https://readthedocs.org/projects/pyscenedetect/builds/11627663/
https://readthedocs.org/projects/pyscenedetect/builds/11627858/
Expected Result
Build should pass. Have executed build locally with latest
mkdocs
successfully under Python 3.8.3, I get the following output:Actual Result
Builds are failing under Python 3.x, but not Python 2.x, with the following error:
I found mkdocs/mkdocs#1531
The text was updated successfully, but these errors were encountered: