Skip to content
This repository has been archived by the owner on Aug 11, 2023. It is now read-only.

Failing RTD build #397

Closed
bmorris3 opened this issue Mar 5, 2019 · 9 comments
Closed

Failing RTD build #397

bmorris3 opened this issue Mar 5, 2019 · 9 comments

Comments

@bmorris3
Copy link
Contributor

bmorris3 commented Mar 5, 2019

I'm trying to build the docs on a package I'm developing based on the package template, and I get the following build error when RTD runs conda env create --quiet --name latest --file /home/docs/checkouts/readthedocs.org/user_builds/fleck/checkouts/latest/.rtd-environment.yml:

Solving environment: ...working... failed

ResolvePackageNotFound: 
  - sphinx-astropy
  - sphinx-gallery

Could be related to #387?

@pllim
Copy link
Member

pllim commented Mar 5, 2019

You need to add those two packages to your RTD pip requirements? At some point, they were take out of helpers. Did you just updated your helpers or something?

@bmorris3
Copy link
Contributor Author

bmorris3 commented Mar 5, 2019

Do you mean like this? Because I tried and it didn't work.

@pllim
Copy link
Member

pllim commented Mar 5, 2019

You can try their v2 format: https://docs.readthedocs.io/en/stable/config-file/v2.html

@pllim
Copy link
Member

pllim commented Mar 5, 2019

Also check your RTD admin settings.

@pllim
Copy link
Member

pllim commented Mar 5, 2019

Oh, wait, don't use conda on RTD. Use pip.

@bmorris3
Copy link
Contributor Author

bmorris3 commented Mar 5, 2019

I'm not sure I follow – where can I specify pip instead of conda?

@pllim
Copy link
Member

pllim commented Mar 5, 2019

Like this: https://docs.readthedocs.io/en/stable/config-file/v2.html#conda

Your original comment above mentioned conda.

@bmorris3
Copy link
Contributor Author

As @pllim suggested, switching some dependencies to pip solved the problem, like so:

dependencies:
    - python>=3.5
    - numpy
    - astropy
    - Cython
    - pip:
       - matplotlib
       - sphinx-astropy
       - batman-package
       - shapely

@bsipocz
Copy link
Member

bsipocz commented Mar 12, 2019

pip these days are faster than conda, so the suggestion here was to use pip only.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants