-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
readthedocs broken #138
Comments
Tried building docs on my own computer and it returns the same thing which means it isn't necessarily a readthedocs issue, the docs just aren't working. Correction: |
@mmcky Do you have any idea what's happening here? |
In the build output on ImportError: cannot import name ivp
/var/build/user_builds/quanteconpy/checkouts/latest/docs/source/tools/version.rst:4: WARNING: autodoc: failed to import module u'quantecon.version'; the following exception was raised:
Traceback (most recent call last):
File "/home/docs/checkouts/readthedocs.org/user_builds/quanteconpy/envs/latest/local/lib/python2.7/site-packages/sphinx/ext/autodoc.py", line 335, in import_object
__import__(self.modname)
File "/home/docs/checkouts/readthedocs.org/user_builds/quanteconpy/envs/latest/local/lib/python2.7/site-packages/quantecon/__init__.py", line 5, in <module>
from . import models as models
File "/home/docs/checkouts/readthedocs.org/user_builds/quanteconpy/envs/latest/local/lib/python2.7/site-packages/quantecon/models/__init__.py", line 12, in <module>
from . import solow as solow
File "/home/docs/checkouts/readthedocs.org/user_builds/quanteconpy/envs/latest/local/lib/python2.7/site-packages/quantecon/models/solow/__init__.py", line 9, in <module>
from . model import Model
File "/home/docs/checkouts/readthedocs.org/user_builds/quanteconpy/envs/latest/local/lib/python2.7/site-packages/quantecon/models/solow/model.py", line 89, in <module>
from ... import ivp
ImportError: cannot import name ivp @cc7768 Do we need to update |
Is there any way this is a python 2.7 vs 3.4 issue? |
I don't think it is a Python 2.7 vs 3.4 issue. Readthedocs is using Python 2.7 (I tried on 3 as well earlier, but I think that
|
@spencerlyon2 @cc7768 Hey Spencer and Chase - what were the reasons for going with a custom |
@mmcky we did it this way to have control over how things were organized. This was an issue back when we had a flat structure for all the code, but now that we have subpackages it isn't as big of a deal. We might want to try using sphinx-apidoc and see if it helps. |
Thanks @spencerlyon2. I might experiment with the |
I have had a look into the different release versions of QuantEcon and |
I have also flipped |
I have pushed a branch Does this look as expected? |
I have pushed a branch from .models import Models rather than from . import models as models
Also @davidrpugh Would you mind having a look through the proposed changes in the |
I think RTD must be working with an older version of """
models directory imports
objects imported here will live in the `quantecon.models.solow` namespace
"""
__all__ = ['Model', 'CobbDouglasModel', 'CESModel']
from . model import Model
from . import model
from . cobb_douglas import CobbDouglasModel
from . import cobb_douglas
from . ces import CESModel
from . import ces These import statements are already consistent with the changes that you made. I am now wondering if |
@davidrpugh The current I will look at the changes more closely tomorrow - but the branch |
I have never used mocks before when building readthedocs for projects that use
I don't know if this will help or not... |
@davidrpugh I checked our settings and they are in line with those above. Thanks. I have tried a few things to resolve this Ideas: The In the meantime (@jstac, @davidrpugh ), if we would like
Note: This won't affect the current |
@mmcky I think this is the best short term solution. We need that documentation functioning and up to date. Please go ahead. @davidrpugh Sorry to push this back to you but please see if you can resolve the RTD issue with the Solow code. |
If we include a |
@davidrpugh I played around with the http://quanteconpy.readthedocs.org/en/solow-fix/ @jstac Rather than import all these diagnostic commits on the If this fails - then I will implement my suggestion above (temporarily remove solow) tomorrow AM to get |
I've seen some projects using miniconda to install all required components for RTD. That should just download and untar the needed components and make it easy to install numpy/scipy. Maybe we could try that? |
I may have spoken too soon about miniconda. I know I have seen it on travis.ci, but maybe not on RTD. I'm still looking for an example on RTD |
The |
This issue is now close to being closed. The last step was to update This branch can be viewed here: I will submit a PR for review to check if everyone is happy with the layout (i.e. menus and navigation etc.) of this update. |
@mmcky One minor issue: The title of the |
|
Hi all,
At the moment the readthedocs documentation seems to be broken:
http://quanteconpy.readthedocs.org/en/latest/index.html
http://quanteconpy.readthedocs.org/en/latest/tools/lqnash.html
@cc7768 @mmcky Any idea what's happened?
Is anyone able to fix this?
The text was updated successfully, but these errors were encountered: