Skip to content
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

Documentation not showing on readthedocs? #39

Closed
stefanmendoza opened this issue Oct 14, 2018 · 9 comments · Fixed by #40
Closed

Documentation not showing on readthedocs? #39

stefanmendoza opened this issue Oct 14, 2018 · 9 comments · Fixed by #40

Comments

@stefanmendoza
Copy link
Contributor

What was wrong?

Code that produced the error

When running the docs locally

$ make docs

I see the full documentation for methods and whatnot, but on readthedocs I don't see any of that?
https://eth-account.readthedocs.io/en/latest/eth_account.html

Expected Result

Method and class doc shows up at the link above.

Environment

Python version:
3.7.0 (default, Oct  2 2018, 09:18:58) 
[Clang 10.0.0 (clang-1000.11.45.2)]

Operating System: Darwin-18.0.0-x86_64-i386-64bit

pip freeze result:
alabaster==0.7.12
apipkg==1.5
appnope==0.1.0
argh==0.26.2
attrdict==2.0.0
attrs==18.2.0
Babel==2.6.0
backcall==0.1.0
bumpversion==0.5.3
certifi==2018.8.24
chardet==3.0.4
colorama==0.4.0
cytoolz==0.9.0.1
decorator==4.3.0
docopt==0.6.2
docutils==0.14
-e [email protected]:stefanmendoza/eth-account.git@adcd56cdeb4c65bd55c469c45ce78e2df1263a4d#egg=eth_account
eth-hash==0.2.0
eth-keyfile==0.5.1
eth-keys==0.2.0b3
eth-rlp==0.1.2
eth-typing==1.3.0
eth-utils==1.2.2
execnet==1.5.0
flake8==3.4.1
hexbytes==0.1.0
idna==2.7
imagesize==1.1.0
ipython==7.0.1
ipython-genutils==0.2.0
isort==4.3.4
jedi==0.13.1
Jinja2==2.10
MarkupSafe==1.0
mccabe==0.6.1
packaging==18.0
parso==0.3.1
pathtools==0.1.2
pexpect==4.6.0
pickleshare==0.7.5
pluggy==0.6.0
prompt-toolkit==2.0.6
ptyprocess==0.6.0
py==1.7.0
pycodestyle==2.3.1
pycryptodome==3.6.6
pyflakes==1.5.0
Pygments==2.2.0
pyparsing==2.2.2
pytest==3.3.2
pytest-forked==0.2
pytest-watch==4.2.0
pytest-xdist==1.23.2
pytz==2018.5
PyYAML==3.13
requests==2.19.1
rlp==1.0.3
simplegeneric==0.8.1
six==1.11.0
snowballstemmer==1.2.1
Sphinx==1.8.1
sphinx-rtd-theme==0.4.2
sphinxcontrib-websupport==1.1.0
toolz==0.9.0
tox==2.9.1
traitlets==4.3.2
urllib3==1.23
virtualenv==16.0.0
watchdog==0.9.0
wcwidth==0.1.7

How can it be fixed?

N/A

@stefanmendoza
Copy link
Contributor Author

Published docs:
screen shot 2018-10-14 at 11 39 46 am

Local docs:
screen shot 2018-10-14 at 11 39 56 am

@carver
Copy link
Contributor

carver commented Oct 15, 2018

Interesting, my cached version still had the docs, so it's a recent-ish problem. Taking a look...

@carver
Copy link
Contributor

carver commented Oct 15, 2018

Looks like eth-utils is using some py3.6 syntax. I'm investigating why that didn't fail in CI tests on py35.

From the docs build:

WARNING: autodoc: failed to import module 'eth_account.account'; the following exception was raised:
Traceback (most recent call last):
  File "/home/docs/checkouts/readthedocs.org/user_builds/eth-account/envs/latest/lib/python3.5/site-packages/sphinx/ext/autodoc/importer.py", line 152, in import_module
    __import__(modname)
  File "/home/docs/checkouts/readthedocs.org/user_builds/eth-account/envs/latest/lib/python3.5/site-packages/eth_account/__init__.py", line 1, in <module>
    from eth_account.account import Account  # noqa: F401
  File "/home/docs/checkouts/readthedocs.org/user_builds/eth-account/envs/latest/lib/python3.5/site-packages/eth_account/account.py", line 10, in <module>
    from eth_keyfile import (
  File "/home/docs/checkouts/readthedocs.org/user_builds/eth-account/envs/latest/lib/python3.5/site-packages/eth_keyfile/__init__.py", line 7, in <module>
    from eth_keyfile.keyfile import (  # noqa: F401
  File "/home/docs/checkouts/readthedocs.org/user_builds/eth-account/envs/latest/lib/python3.5/site-packages/eth_keyfile/keyfile.py", line 10, in <module>
    from eth_keys import keys
  File "/home/docs/checkouts/readthedocs.org/user_builds/eth-account/envs/latest/lib/python3.5/site-packages/eth_keys/__init__.py", line 15, in <module>
    from .main import (  # noqa: F401
  File "/home/docs/checkouts/readthedocs.org/user_builds/eth-account/envs/latest/lib/python3.5/site-packages/eth_keys/main.py", line 3, in <module>
    from eth_keys.datatypes import (
  File "/home/docs/checkouts/readthedocs.org/user_builds/eth-account/envs/latest/lib/python3.5/site-packages/eth_keys/datatypes.py", line 8, in <module>
    from eth_utils import (
  File "/home/docs/checkouts/readthedocs.org/user_builds/eth-account/envs/latest/lib/python3.5/site-packages/eth_utils/__init__.py", line 24, in <module>
    from .applicators import (  # noqa: F401
  File "/home/docs/checkouts/readthedocs.org/user_builds/eth-account/envs/latest/lib/python3.5/site-packages/eth_utils/applicators.py", line 43, in <module>
    def combine_argument_formatters(*formatters: List[Callable[..., Any]]) -> Formatters:
  File "/usr/lib/python3.5/typing.py", line 1025, in __getitem__
    tvars = _type_vars(params)
  File "/usr/lib/python3.5/typing.py", line 284, in _type_vars
    _get_type_vars(types, tvars)
  File "/usr/lib/python3.5/typing.py", line 279, in _get_type_vars
    t._get_type_vars(tvars)
  File "/usr/lib/python3.5/typing.py", line 786, in _get_type_vars
    _get_type_vars(self.__args__, tvars)
  File "/usr/lib/python3.5/typing.py", line 277, in _get_type_vars
    for t in types:
TypeError: 'ellipsis' object is not iterable

@carver
Copy link
Contributor

carver commented Oct 15, 2018

This 💥ing thing again: ethereum/web3.py#1012 (comment)

RTD must be using py3.5.2 as the default py3

@pipermerriam
Copy link
Member

Looks like we may be able to update to use the latest 3.0 builder: which uses 3.5.4

https://docs.readthedocs.io/en/latest/builds.html#latest

@pipermerriam
Copy link
Member

@pipermerriam
Copy link
Member

Which also looks like it has better support for how we specify our documentation dependencies.

https://docs.readthedocs.io/en/latest/yaml-config.html#python-extra-requirements

@carver
Copy link
Contributor

carver commented Oct 15, 2018

I'm blind, how do you know that 3.0 builder uses 3.5.4? https://docs.readthedocs.io/en/latest/builds.html#latest

BTW, I'm waiting for RTD to pick up a couple new branch on upstream, so I can test it without merging a bunch of test PRs:

(waiting for them to show here https://readthedocs.org/dashboard/eth-account/versions/ )

@pipermerriam
Copy link
Member

Sorry, should have posted the "more details" link: https://github.com/rtfd/readthedocs-docker-images/blob/releases/3.x/Dockerfile

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

Successfully merging a pull request may close this issue.

3 participants