-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Conda build not working with python 3.6 #2584
Comments
We saw the same issue on Jupyter docs and temporarily have pinned python to 3.5 in Issue also filed on conda conda/conda#4168. |
I am afraid that will not work for me, because I use autdoc and my project does not work under 3.5 anymore. I guess those are the downsides of trying to use the latest and greatest... |
@wheerd Bummer... Perhaps a temporary work around for the autodoc would be a 2 step build: 1) locally build the source files that use autodoc and save those. 2) Use the locally generated files as input source files. We did that in the early days of the notebook docs. Not a great long term strategy but ok in a pinch. If I see any cleaner solutions, I'll post here. |
I think I will have to wait for python 2.5.3 which is due to arrive in a week and fixes the typing module. I guess the docs will have to wait until then to get updated. But thanks for your help anyways @willingc :) |
Could try using conda-forge. Many things have already been rebuilt for Python 3.6. This amounts to adding the code block below to your channels:
- conda-forge |
@jakirkham I will double check our files. We do have conda-forge on some of our Jupyter repos 👍 |
If you do find there are Python 3.6 packages missing from conda-forge, it is pretty easy to fix. One merely needs to re-render the feedstock in question. Though we definitely have Sphinx on Python 3.6. If you need help configuring the Jupyter repos for RTD, would be happy to chip in. |
I am already using And since there is not python 3.5.3 package yet, I cannot use that either. I have already create an issue over there to get that version bumped (conda-forge/python-feedstock#110). |
Yep, I went backed and looked at some of the Jupyter repos even those with the |
That's a pretty old version. Where in the logs are you seeing this getting pinned? |
Could you please share a log from one of the failures? Feel free to email it if you prefer. |
@jakirkham Here's an example from this morning. RTD Build (Failed): https://readthedocs.org/projects/jupyter-client/builds/4913160/ jupyter_client RTD Build (Passed): https://readthedocs.org/projects/jupyter-client/builds/4913426/ Second step in the RTD build process has the failure. |
Related PR to fix this issue #2589 |
Also PR #2378 Likely the best solution would be to automate the tests/builds when new sphinx versions are released. |
So Python 3.5.3 is being built, which hopefully helps, @wheerd. In general, we (conda-forge) could try to build Python 3.6 packages for all of these old versions that RTD is using. Though maybe we would be better off to work with RTD to get them to upgrade to newer versions. Found an issue ( #2548 ) to bump the Sphinx version to 1.5, which would help. |
@jakirkham thanks for the help, that should get my docs building again. But yes, I guess the best solution for building docs with python 3.6 docs would be to update the RTD dependencies to newer versions. |
@willingc How would I upload the generated files to rtd? I am also on a project that uses python 3.6 features. |
We're having the same issue. We're starting a Python 3.6 or later package, would like to install dependencies with conda, and can't get around this issue:
https://readthedocs.org/projects/hips/builds/5477266/ |
@humitos - thank you very much!!! The point of using conda is that it gives you something that's independent of system config. So I was very confused when my RTD conda builds failed trying to conda install stuff that I never asked for (like the old version What exactly does #2876 do? Does it remove the Is it simple to reproduce the RTD build / check locally if it will work now? I.e. are there a few docker / other commands listed somewhere that I could use to check if my project will now build after your change? |
These are the steps used to create a project with
Now, with #2876 we are doing: 1) and in 2) we are not pinning at all and 3) is not ran.`
Yes, it's easy to reproduce how RTD works (without installing the whole project) by running the commands I mentioned or taking a look at your own build -there are all the commands ran. Please, let me know any comment you have on this. Besides, if you have a better idea, share it :) |
@humitos - That's pretty good, thanks for this detailed infos! At the moment my main problem is the failing pip install in a conda build: #2827 |
@humitos - The problem I'm having is with the Does this pip install command go away with your changes in #2876 ? |
Details
I am trying to build my python 3.6 only project's documentation using a conda environment. However, this fails because the package requirements are not satisfiable for 3.6. Locally my docs build fine with python 3.6. Not sure if that is because the package python versions are not updated on conda or because of the hardcoded version for some of the packages.
Actual Result
Conda cannot find a working constallation for python 3.6:
The text was updated successfully, but these errors were encountered: