Giter Club home page Giter Club logo

Comments (10)

llorracc avatar llorracc commented on May 24, 2024

Hmm, I just went to hark.readthedocs.io and it seemed to be rendering fine for me.

And both of the links above worked for me as well, at least in resulting in the download of a PDF.

Can you give the exact link that is not working for you?

from hark.

dedwar65 avatar dedwar65 commented on May 24, 2024

Here are the two links that I posted a pdf for:

https://hark.readthedocs.io/en/latest/reference/tools/distribution.html

https://hark.readthedocs.io/en/latest/reference/ConsumptionSaving/ConsPortfolioModel.html

from hark.

alanlujan91 avatar alanlujan91 commented on May 24, 2024

Can confirm, none of the links under this section load anything
https://hark.readthedocs.io/en/latest/reference/index.html

from hark.

sbenthall avatar sbenthall commented on May 24, 2024

I'll take a look at this.

from hark.

sbenthall avatar sbenthall commented on May 24, 2024

API docs build works locally. Checking RTD logs.

from hark.

sbenthall avatar sbenthall commented on May 24, 2024

Error shows up only on latest build for RTD, not on stable build (tied to 0.12)

from hark.

sbenthall avatar sbenthall commented on May 24, 2024

Failing Sphinx logs on latest:
https://gist.github.com/sbenthall/2444d5f99ef83247033ef2f84d949fc9

Working Sphinx logs on stable:
https://gist.github.com/sbenthall/d39ad66a5c10006e38cc31bb22473e06

The failure is due to Python modules not loading properly due to an import error:

Failed to import 'HARK.distribution': no module named HARK.distribution
WARNING: autodoc: failed to import module 'distribution' from module 'HARK'; the following exception was raised:
cannot import name 'rv_continuous_frozen' from 'scipy.stats._distn_infrastructure' (/home/docs/checkouts/readthedocs.org/user_builds/hark/envs/latest/lib/python3.7/site-packages/scipy/stats/_distn_infrastructure.py)

And likewise for many other modules...

WARNING: autodoc: failed to import module 'ConsumptionSaving.ConsIndShockModel' from module 'HARK'; the following exception was raised:
cannot import name 'rv_continuous_frozen' from 'scipy.stats._distn_infrastructure' (/home/docs/checkouts/readthedocs.org/user_builds/hark/envs/latest/lib/python3.7/site-packages/scipy/stats/_distn_infrastructure.py)

scipy v.1.7.3 is being installed in the RTD build environment with Python 3.7:

Collecting scipy
  Downloading scipy-1.7.3-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (38.1 MB)

My local scipy install is Python 3.10, v1.9.0.

It looks like some time ago we decided to stop officially supporting Python 3.7:
#1142

Which means that there is some configuration issue where we haven't yet told RTD not to stop using 3.7

from hark.

sbenthall avatar sbenthall commented on May 24, 2024

The fix involves setting a configuration option: https://blog.readthedocs.com/sphinx6-upgrade/

from hark.

sbenthall avatar sbenthall commented on May 24, 2024

API autodocs for latest (master) are now working on RTD!

This took some finagling.
0fc0f73

  • The right option to set in .readthedocs.yml is build.tools.python and it is quoted; do not use python.version
  • I tried using 3.11 and 3.10 for the RTD Python build, but both of these led to build failures due to upstream Python issues. 3.9 was the latest (highest valued) version I could find that worked.

Looks like the docs are quite sensitive to the dependency stack, so it's good to kick the tires on them.
Thanks @dedwar65 for catching the issue.

from hark.

llorracc avatar llorracc commented on May 24, 2024

@sbenthall, FYI, I've asked @MridulS to make a proposal to Google "Summer of Docs" this summer to have someone come in and overhaul our documentation. @MridulS suggested a while ago that we should move to whatever system the cool kids are using (numpy, scipy, etc), and presumably that's something this person would implement.

from hark.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.