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

Enabling undoc-members in v3.2.0 triggers KeyError: 'Shiboken' #8124

Closed
altendky opened this issue Aug 14, 2020 · 3 comments
Closed

Enabling undoc-members in v3.2.0 triggers KeyError: 'Shiboken' #8124

altendky opened this issue Aug 14, 2020 · 3 comments

Comments

@altendky
Copy link
Contributor

Describe the bug

With undoc-members and v3.2.0 I get an exception. I do not get an exception with v3.1.2. Per my local bisecting it was introduced specifically in 88b2ec6.

Exception occurred:
  File "/home/altendky/.pyenv/versions/3.8.3/lib/python3.8/typing.py", line 1223, in get_type_hints
    base_globals = sys.modules[base.__module__].__dict__
KeyError: 'Shiboken'

In case you aren't familiar, Shiboken2 is the wrapper generator used by PySide2 to wrap the C++ Qt library. Shiboken filled that role for PySide. I am using PySide2. I'm not sure if the lack of the 2 is relevant or not.

QTrio: altendky/qtrio@e0d5268
Sphinx: 88b2ec6

To Reproduce
Steps to reproduce the behavior:

git clone https://github.com/altendky/qtrio
cd qtrio
git checkout e0d526808a924c95d4c6191070ca21ab9ddab54c
python3.8 -m venv venv
venv/bin/pip install --upgrade pip setuptools wheel
venv/bin/pip install .[pyside2,docs]
venv/bin/pip install git+https://github.com/sphinx-doc/sphinx@88b2ec6c34fb405cf468475e6f2a7754e2c705eb#egg=sphinx
venv/bin/pip freeze
source venv/bin/activate
cd docs
make html
Steps with output including complete traceback
altendky@p1:~/repos/preqtrio/tmp$ git clone https://github.com/altendky/qtrio
Cloning into 'qtrio'...
remote: Enumerating objects: 17, done.
remote: Counting objects: 100% (17/17), done.
remote: Compressing objects: 100% (15/15), done.
remote: Total 4061 (delta 1), reused 5 (delta 1), pack-reused 4044
Receiving objects: 100% (4061/4061), 534.06 KiB | 4.05 MiB/s, done.
Resolving deltas: 100% (2622/2622), done.
altendky@p1:~/repos/preqtrio/tmp$ cd qtrio
altendky@p1:~/repos/preqtrio/tmp/qtrio$ git checkout e0d526808a924c95d4c6191070ca21ab9ddab54c
Note: switching to 'e0d526808a924c95d4c6191070ca21ab9ddab54c'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at e0d5268 add newsfragments/146.doc.rst
altendky@p1:~/repos/preqtrio/tmp/qtrio$ python3.8 -m venv venv
altendky@p1:~/repos/preqtrio/tmp/qtrio$ venv/bin/pip install --upgrade pip setuptools wheel
Collecting pip
  Using cached https://files.pythonhosted.org/packages/5a/4a/39400ff9b36e719bdf8f31c99fe1fa7842a42fa77432e584f707a5080063/pip-20.2.2-py2.py3-none-any.whl
Collecting setuptools
  Using cached https://files.pythonhosted.org/packages/c3/a9/5dc32465951cf4812e9e93b4ad2d314893c2fa6d5f66ce5c057af6e76d85/setuptools-49.6.0-py3-none-any.whl
Collecting wheel
  Using cached https://files.pythonhosted.org/packages/85/37/7252beacf7e60cffe3bc5a97f94e3ccf22a927e87697d377cfe16abea7cf/wheel-0.35.0-py2.py3-none-any.whl
Collecting packaging>=20.2 (from wheel)
  Using cached https://files.pythonhosted.org/packages/46/19/c5ab91b1b05cfe63cccd5cfc971db9214c6dd6ced54e33c30d5af1d2bc43/packaging-20.4-py2.py3-none-any.whl
Collecting pyparsing>=2.0.2 (from packaging>=20.2->wheel)
  Using cached https://files.pythonhosted.org/packages/8a/bb/488841f56197b13700afd5658fc279a2025a39e22449b7cf29864669b15d/pyparsing-2.4.7-py2.py3-none-any.whl
Collecting six (from packaging>=20.2->wheel)
  Using cached https://files.pythonhosted.org/packages/ee/ff/48bde5c0f013094d729fe4b0316ba2a24774b3ff1c52d924a8a4cb04078a/six-1.15.0-py2.py3-none-any.whl
Installing collected packages: pip, setuptools, pyparsing, six, packaging, wheel
  Found existing installation: pip 19.2.3
    Uninstalling pip-19.2.3:
      Successfully uninstalled pip-19.2.3
  Found existing installation: setuptools 41.2.0
    Uninstalling setuptools-41.2.0:
      Successfully uninstalled setuptools-41.2.0
Successfully installed packaging-20.4 pip-20.2.2 pyparsing-2.4.7 setuptools-49.6.0 six-1.15.0 wheel-0.35.0
altendky@p1:~/repos/preqtrio/tmp/qtrio$ venv/bin/pip install .[pyside2,docs]
Processing /home/altendky/repos/preqtrio/tmp/qtrio
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Collecting trio>=0.16
  Using cached trio-0.16.0-py3-none-any.whl (337 kB)
Collecting towncrier>=19.9.0rc1
  Using cached towncrier-19.9.0rc1-py2.py3-none-any.whl (28 kB)
Collecting sphinx-qt-documentation>=0.3
  Using cached sphinx_qt_documentation-0.3-py3-none-any.whl (5.6 kB)
Collecting async-generator
  Using cached async_generator-1.10-py3-none-any.whl (18 kB)
Collecting attrs
  Using cached attrs-19.3.0-py2.py3-none-any.whl (39 kB)
Collecting sphinx>=3.2
  Using cached Sphinx-3.2.1-py3-none-any.whl (2.9 MB)
Requirement already satisfied: setuptools in ./venv/lib/python3.8/site-packages (from sphinx>=3.2->qtrio==0.1.0+dev) (49.6.0)
Requirement already satisfied: packaging in ./venv/lib/python3.8/site-packages (from sphinx>=3.2->qtrio==0.1.0+dev) (20.4)
Collecting sphinxcontrib-jsmath
  Using cached sphinxcontrib_jsmath-1.0.1-py2.py3-none-any.whl (5.1 kB)
Collecting outcome
  Using cached outcome-1.0.1-py2.py3-none-any.whl (10 kB)
Collecting sniffio
  Using cached sniffio-1.1.0-py3-none-any.whl (4.5 kB)
Collecting sphinxcontrib-applehelp
  Using cached sphinxcontrib_applehelp-1.0.2-py2.py3-none-any.whl (121 kB)
Collecting sphinxcontrib-devhelp
  Using cached sphinxcontrib_devhelp-1.0.2-py2.py3-none-any.whl (84 kB)
Collecting sphinxcontrib-htmlhelp
  Using cached sphinxcontrib_htmlhelp-1.0.3-py2.py3-none-any.whl (96 kB)
Collecting sphinxcontrib-qthelp
  Using cached sphinxcontrib_qthelp-1.0.3-py2.py3-none-any.whl (90 kB)
Processing /home/altendky/.cache/pip/wheels/7e/9f/ec/d087477ddc7c2807136ca08eb01b5f00e66da90eb4dbf323ab/click_default_group-1.2.2-py3-none-any.whl
Collecting sphinxcontrib-serializinghtml
  Using cached sphinxcontrib_serializinghtml-1.1.4-py2.py3-none-any.whl (89 kB)
Collecting snowballstemmer>=1.1
  Using cached snowballstemmer-2.0.0-py2.py3-none-any.whl (97 kB)
Collecting sphinxcontrib-trio
  Using cached sphinxcontrib_trio-1.1.2-py3-none-any.whl (12 kB)
Collecting docutils
  Using cached docutils-0.16-py2.py3-none-any.whl (548 kB)
Collecting imagesize
  Using cached imagesize-1.2.0-py2.py3-none-any.whl (4.8 kB)
Collecting incremental
  Using cached incremental-17.5.0-py2.py3-none-any.whl (16 kB)
Collecting alabaster<0.8,>=0.7
  Using cached alabaster-0.7.12-py2.py3-none-any.whl (14 kB)
Collecting toml
  Using cached toml-0.10.1-py2.py3-none-any.whl (19 kB)
Collecting Pygments>=2.0
  Using cached Pygments-2.6.1-py3-none-any.whl (914 kB)
Collecting babel>=1.3
  Using cached Babel-2.8.0-py2.py3-none-any.whl (8.6 MB)
Collecting pyside2
  Using cached PySide2-5.15.0-5.15.0-cp35.cp36.cp37.cp38-abi3-manylinux1_x86_64.whl (170.8 MB)
Collecting shiboken2==5.15.0
  Using cached shiboken2-5.15.0-5.15.0-cp35.cp36.cp37.cp38-abi3-manylinux1_x86_64.whl (856 kB)
Collecting sphinx-rtd-theme
  Using cached sphinx_rtd_theme-0.5.0-py2.py3-none-any.whl (10.8 MB)
Collecting idna
  Using cached idna-2.10-py2.py3-none-any.whl (58 kB)
Collecting pytz>=2015.7
  Using cached pytz-2020.1-py2.py3-none-any.whl (510 kB)
Collecting qtpy
  Using cached QtPy-1.9.0-py2.py3-none-any.whl (54 kB)
Collecting decorator
  Using cached decorator-4.4.2-py2.py3-none-any.whl (9.2 kB)
Collecting sphinx-autodoc-typehints
  Using cached sphinx_autodoc_typehints-1.11.0-py3-none-any.whl (8.5 kB)
Requirement already satisfied: pyparsing>=2.0.2 in ./venv/lib/python3.8/site-packages (from packaging->sphinx>=3.2->qtrio==0.1.0+dev) (2.4.7)
Requirement already satisfied: six in ./venv/lib/python3.8/site-packages (from packaging->sphinx>=3.2->qtrio==0.1.0+dev) (1.15.0)
Collecting jinja2
  Using cached Jinja2-2.11.2-py2.py3-none-any.whl (125 kB)
Collecting MarkupSafe>=0.23
  Using cached MarkupSafe-1.1.1-cp38-cp38-manylinux1_x86_64.whl (32 kB)
Collecting click
  Using cached click-7.1.2-py2.py3-none-any.whl (82 kB)
Collecting sortedcontainers
  Using cached sortedcontainers-2.2.2-py2.py3-none-any.whl (29 kB)
Collecting requests>=2.5.0
  Using cached requests-2.24.0-py2.py3-none-any.whl (61 kB)
Collecting chardet<4,>=3.0.2
  Using cached chardet-3.0.4-py2.py3-none-any.whl (133 kB)
Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1
  Using cached urllib3-1.25.10-py2.py3-none-any.whl (127 kB)
Collecting certifi>=2017.4.17
  Using cached certifi-2020.6.20-py2.py3-none-any.whl (156 kB)
Collecting pytest
  Using cached pytest-6.0.1-py3-none-any.whl (270 kB)
Requirement already satisfied: packaging in ./venv/lib/python3.8/site-packages (from sphinx>=3.2->qtrio==0.1.0+dev) (20.4)
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))': /simple/packaging/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))': /simple/packaging/
Collecting py>=1.8.2
  Using cached py-1.9.0-py2.py3-none-any.whl (99 kB)
Collecting pluggy<1.0,>=0.12
  Using cached pluggy-0.13.1-py2.py3-none-any.whl (18 kB)
Collecting iniconfig
  Using cached iniconfig-1.0.1-py3-none-any.whl (4.2 kB)
Collecting more-itertools>=4.0.0
  Using cached more_itertools-8.4.0-py3-none-any.whl (43 kB)
Building wheels for collected packages: qtrio
  Building wheel for qtrio (PEP 517) ... done
  Created wheel for qtrio: filename=qtrio-0.1.0+dev-py3-none-any.whl size=34623 sha256=b7a803c776e53d06a157c9c2d875ca11631c893acae5fb74b151413fc8f49956
  Stored in directory: /tmp/pip-ephem-wheel-cache-z476empn/wheels/4d/b7/56/4e68a784b1eefc0f978a537a24c566caabfee8741e8eab4c6e
Successfully built qtrio
Installing collected packages: urllib3, pytz, MarkupSafe, idna, chardet, certifi, attrs, toml, sphinxcontrib-serializinghtml, sphinxcontrib-qthelp, sphinxcontrib-jsmath, sphinxcontrib-htmlhelp, sphinxcontrib-devhelp, sphinxcontrib-applehelp, sortedcontainers, snowballstemmer, sniffio, requests, Pygments, py, pluggy, outcome, more-itertools, jinja2, iniconfig, imagesize, docutils, click, babel, async-generator, alabaster, trio, sphinx, shiboken2, qtpy, pytest, incremental, decorator, click-default-group, towncrier, sphinxcontrib-trio, sphinx-rtd-theme, sphinx-qt-documentation, sphinx-autodoc-typehints, qtrio, pyside2
Successfully installed MarkupSafe-1.1.1 Pygments-2.6.1 alabaster-0.7.12 async-generator-1.10 attrs-19.3.0 babel-2.8.0 certifi-2020.6.20 chardet-3.0.4 click-7.1.2 click-default-group-1.2.2 decorator-4.4.2 docutils-0.16 idna-2.10 imagesize-1.2.0 incremental-17.5.0 iniconfig-1.0.1 jinja2-2.11.2 more-itertools-8.4.0 outcome-1.0.1 pluggy-0.13.1 py-1.9.0 pyside2-5.15.0 pytest-6.0.1 pytz-2020.1 qtpy-1.9.0 qtrio-0.1.0+dev requests-2.24.0 shiboken2-5.15.0 sniffio-1.1.0 snowballstemmer-2.0.0 sortedcontainers-2.2.2 sphinx-3.2.1 sphinx-autodoc-typehints-1.11.0 sphinx-qt-documentation-0.3 sphinx-rtd-theme-0.5.0 sphinxcontrib-applehelp-1.0.2 sphinxcontrib-devhelp-1.0.2 sphinxcontrib-htmlhelp-1.0.3 sphinxcontrib-jsmath-1.0.1 sphinxcontrib-qthelp-1.0.3 sphinxcontrib-serializinghtml-1.1.4 sphinxcontrib-trio-1.1.2 toml-0.10.1 towncrier-19.9.0rc1 trio-0.16.0 urllib3-1.25.10
altendky@p1:~/repos/preqtrio/tmp/qtrio$ venv/bin/pip install git+https://github.com/sphinx-doc/sphinx@88b2ec6c34fb405cf468475e6f2a7754e2c705eb#egg=sphinx
Processing /home/altendky/.cache/pip/wheels/85/39/47/0d47810306704ee8020dca7de7513b3b563e5f0c0c205c4363/Sphinx-3.2.0.dev20200814-py3-none-any.whl
Requirement already satisfied: sphinxcontrib-serializinghtml in ./venv/lib/python3.8/site-packages (from sphinx) (1.1.4)
Requirement already satisfied: alabaster<0.8,>=0.7 in ./venv/lib/python3.8/site-packages (from sphinx) (0.7.12)
Requirement already satisfied: imagesize in ./venv/lib/python3.8/site-packages (from sphinx) (1.2.0)
Requirement already satisfied: sphinxcontrib-devhelp in ./venv/lib/python3.8/site-packages (from sphinx) (1.0.2)
Requirement already satisfied: babel>=1.3 in ./venv/lib/python3.8/site-packages (from sphinx) (2.8.0)
Requirement already satisfied: requests>=2.5.0 in ./venv/lib/python3.8/site-packages (from sphinx) (2.24.0)
Requirement already satisfied: Pygments>=2.0 in ./venv/lib/python3.8/site-packages (from sphinx) (2.6.1)
Requirement already satisfied: snowballstemmer>=1.1 in ./venv/lib/python3.8/site-packages (from sphinx) (2.0.0)
Requirement already satisfied: docutils>=0.12 in ./venv/lib/python3.8/site-packages (from sphinx) (0.16)
Requirement already satisfied: sphinxcontrib-htmlhelp in ./venv/lib/python3.8/site-packages (from sphinx) (1.0.3)
Requirement already satisfied: sphinxcontrib-applehelp in ./venv/lib/python3.8/site-packages (from sphinx) (1.0.2)
Requirement already satisfied: sphinxcontrib-jsmath in ./venv/lib/python3.8/site-packages (from sphinx) (1.0.1)
Requirement already satisfied: Jinja2>=2.3 in ./venv/lib/python3.8/site-packages (from sphinx) (2.11.2)
Requirement already satisfied: packaging in ./venv/lib/python3.8/site-packages (from sphinx) (20.4)
Requirement already satisfied: setuptools in ./venv/lib/python3.8/site-packages (from sphinx) (49.6.0)
Requirement already satisfied: sphinxcontrib-qthelp in ./venv/lib/python3.8/site-packages (from sphinx) (1.0.3)
Requirement already satisfied: pytz>=2015.7 in ./venv/lib/python3.8/site-packages (from babel>=1.3->sphinx) (2020.1)
Requirement already satisfied: six in ./venv/lib/python3.8/site-packages (from packaging->sphinx) (1.15.0)
Requirement already satisfied: pyparsing>=2.0.2 in ./venv/lib/python3.8/site-packages (from packaging->sphinx) (2.4.7)
Requirement already satisfied: MarkupSafe>=0.23 in ./venv/lib/python3.8/site-packages (from Jinja2>=2.3->sphinx) (1.1.1)
Requirement already satisfied: idna<3,>=2.5 in ./venv/lib/python3.8/site-packages (from requests>=2.5.0->sphinx) (2.10)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in ./venv/lib/python3.8/site-packages (from requests>=2.5.0->sphinx) (1.25.10)
Requirement already satisfied: chardet<4,>=3.0.2 in ./venv/lib/python3.8/site-packages (from requests>=2.5.0->sphinx) (3.0.4)
Requirement already satisfied: certifi>=2017.4.17 in ./venv/lib/python3.8/site-packages (from requests>=2.5.0->sphinx) (2020.6.20)
Installing collected packages: sphinx
  Attempting uninstall: sphinx
    Found existing installation: Sphinx 3.2.1
    Uninstalling Sphinx-3.2.1:
      Successfully uninstalled Sphinx-3.2.1
Successfully installed sphinx-3.2.0.dev20200814
altendky@p1:~/repos/preqtrio/tmp/qtrio$ venv/bin/pip freeze
alabaster==0.7.12
async-generator==1.10
attrs==19.3.0
Babel==2.8.0
certifi==2020.6.20
chardet==3.0.4
click==7.1.2
click-default-group==1.2.2
decorator==4.4.2
docutils==0.16
idna==2.10
imagesize==1.2.0
incremental==17.5.0
iniconfig==1.0.1
Jinja2==2.11.2
MarkupSafe==1.1.1
more-itertools==8.4.0
outcome==1.0.1
packaging==20.4
pluggy==0.13.1
py==1.9.0
Pygments==2.6.1
pyparsing==2.4.7
PySide2==5.15.0
pytest==6.0.1
pytz==2020.1
QtPy==1.9.0
qtrio @ file:///home/altendky/repos/preqtrio/tmp/qtrio
requests==2.24.0
shiboken2==5.15.0
six==1.15.0
sniffio==1.1.0
snowballstemmer==2.0.0
sortedcontainers==2.2.2
Sphinx @ git+https://github.com/sphinx-doc/sphinx@88b2ec6c34fb405cf468475e6f2a7754e2c705eb
sphinx-autodoc-typehints==1.11.0
sphinx-qt-documentation==0.3
sphinx-rtd-theme==0.5.0
sphinxcontrib-applehelp==1.0.2
sphinxcontrib-devhelp==1.0.2
sphinxcontrib-htmlhelp==1.0.3
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==1.0.3
sphinxcontrib-serializinghtml==1.1.4
sphinxcontrib-trio==1.1.2
toml==0.10.1
towncrier==19.9.0rc1
trio==0.16.0
urllib3==1.25.10
altendky@p1:~/repos/preqtrio/tmp/qtrio$ source venv/bin/activate
(venv) altendky@p1:~/repos/preqtrio/tmp/qtrio$ cd docs
(venv) altendky@p1:~/repos/preqtrio/tmp/qtrio/docs$ make html
Running Sphinx v3.2.0
making output directory... done
loading intersphinx inventory from https://outcome.readthedocs.io/en/stable/objects.inv...
loading intersphinx inventory from https://docs.python.org/3/objects.inv...
loading intersphinx inventory from https://www.riverbankcomputing.com/static/Docs/PyQt5/objects.inv...
loading intersphinx inventory from https://docs.pytest.org/en/stable/objects.inv...
loading intersphinx inventory from https://trio.readthedocs.io/en/stable/objects.inv...
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 13 source files that are out of date
updating environment: [new config] 13 added, 0 changed, 0 removed
reading sources... [  7%] core                                                                                                                                                                                                                                              
Exception occurred:
  File "/home/altendky/.pyenv/versions/3.8.3/lib/python3.8/typing.py", line 1223, in get_type_hints
    base_globals = sys.modules[base.__module__].__dict__
KeyError: 'Shiboken'
The full traceback has been saved in /tmp/sphinx-err-3wvywl4z.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
make: *** [Makefile:20: html] Error 2
(venv) altendky@p1:~/repos/preqtrio/tmp/qtrio/docs$ cat /tmp/sphinx-err-3wvywl4z.log 
# Sphinx version: 3.2.0
# Python version: 3.8.3 (CPython)
# Docutils version: 0.16 release
# Jinja2 version: 2.11.2
# Last messages:
#   loading intersphinx inventory from https://docs.python.org/3/objects.inv...
#   loading intersphinx inventory from https://www.riverbankcomputing.com/static/Docs/PyQt5/objects.inv...
#   loading intersphinx inventory from https://docs.pytest.org/en/stable/objects.inv...
#   loading intersphinx inventory from https://trio.readthedocs.io/en/stable/objects.inv...
#   building [mo]: targets for 0 po files that are out of date
#   building [html]: targets for 13 source files that are out of date
#   updating environment:
#   [new config]
#   13 added, 0 changed, 0 removed
#   reading sources... [  7%] core
# Loaded extensions:
#   sphinx.ext.mathjax (3.2.0) from /home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/sphinx/ext/mathjax.py
#   sphinxcontrib.applehelp (1.0.2) from /home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/sphinxcontrib/applehelp/__init__.py
#   sphinxcontrib.devhelp (1.0.2) from /home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/sphinxcontrib/devhelp/__init__.py
#   sphinxcontrib.htmlhelp (1.0.3) from /home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/sphinxcontrib/htmlhelp/__init__.py
#   sphinxcontrib.serializinghtml (1.1.4) from /home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/sphinxcontrib/serializinghtml/__init__.py
#   sphinxcontrib.qthelp (1.0.3) from /home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/sphinxcontrib/qthelp/__init__.py
#   alabaster (0.7.12) from /home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/alabaster/__init__.py
#   sphinx.ext.autodoc.type_comment (3.2.0) from /home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/sphinx/ext/autodoc/type_comment.py
#   sphinx.ext.autodoc (3.2.0) from /home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/sphinx/ext/autodoc/__init__.py
#   sphinx.ext.intersphinx (3.2.0) from /home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/sphinx/ext/intersphinx.py
#   sphinx.ext.coverage (3.2.0) from /home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/sphinx/ext/coverage.py
#   sphinx.ext.napoleon (3.2.0) from /home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/sphinx/ext/napoleon/__init__.py
#   sphinx_qt_documentation (0.1) from /home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/sphinx_qt_documentation/__init__.py
#   sphinxcontrib_trio (1.1.2) from /home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/sphinxcontrib_trio/__init__.py
Traceback (most recent call last):
  File "/home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/sphinx/cmd/build.py", line 280, in build_main
    app.build(args.force_all, filenames)
  File "/home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/sphinx/application.py", line 348, in build
    self.builder.build_update()
  File "/home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/sphinx/builders/__init__.py", line 297, in build_update
    self.build(to_build,
  File "/home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/sphinx/builders/__init__.py", line 311, in build
    updated_docnames = set(self.read())
  File "/home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/sphinx/builders/__init__.py", line 418, in read
    self._read_serial(docnames)
  File "/home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/sphinx/builders/__init__.py", line 439, in _read_serial
    self.read_doc(docname)
  File "/home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/sphinx/builders/__init__.py", line 479, in read_doc
    doctree = read_doc(self.app, self.env, self.env.doc2path(docname))
  File "/home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/sphinx/io.py", line 223, in read_doc
    pub.publish()
  File "/home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/docutils/core.py", line 217, in publish
    self.document = self.reader.read(self.source, self.parser,
  File "/home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/sphinx/io.py", line 128, in read
    self.parse()
  File "/home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/docutils/readers/__init__.py", line 77, in parse
    self.parser.parse(self.input, document)
  File "/home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/sphinx/parsers.py", line 102, in parse
    self.statemachine.run(inputlines, document, inliner=self.inliner)
  File "/home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 170, in run
    results = StateMachineWS.run(self, input_lines, input_offset,
  File "/home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/docutils/statemachine.py", line 241, in run
    context, next_state, result = self.check_line(
  File "/home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/docutils/statemachine.py", line 459, in check_line
    return method(match, context, next_state)
  File "/home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 2769, in underline
    self.section(title, source, style, lineno - 1, messages)
  File "/home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 327, in section
    self.new_subsection(title, lineno, messages)
  File "/home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 393, in new_subsection
    newabsoffset = self.nested_parse(
  File "/home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 281, in nested_parse
    state_machine.run(block, input_offset, memo=self.memo,
  File "/home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 196, in run
    results = StateMachineWS.run(self, input_lines, input_offset)
  File "/home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/docutils/statemachine.py", line 241, in run
    context, next_state, result = self.check_line(
  File "/home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/docutils/statemachine.py", line 459, in check_line
    return method(match, context, next_state)
  File "/home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 2769, in underline
    self.section(title, source, style, lineno - 1, messages)
  File "/home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 327, in section
    self.new_subsection(title, lineno, messages)
  File "/home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 393, in new_subsection
    newabsoffset = self.nested_parse(
  File "/home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 281, in nested_parse
    state_machine.run(block, input_offset, memo=self.memo,
  File "/home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 196, in run
    results = StateMachineWS.run(self, input_lines, input_offset)
  File "/home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/docutils/statemachine.py", line 241, in run
    context, next_state, result = self.check_line(
  File "/home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/docutils/statemachine.py", line 459, in check_line
    return method(match, context, next_state)
  File "/home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 2344, in explicit_markup
    self.explicit_list(blank_finish)
  File "/home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 2369, in explicit_list
    newline_offset, blank_finish = self.nested_list_parse(
  File "/home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 318, in nested_list_parse
    state_machine.run(block, input_offset, memo=self.memo,
  File "/home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 196, in run
    results = StateMachineWS.run(self, input_lines, input_offset)
  File "/home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/docutils/statemachine.py", line 241, in run
    context, next_state, result = self.check_line(
  File "/home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/docutils/statemachine.py", line 459, in check_line
    return method(match, context, next_state)
  File "/home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 2647, in explicit_markup
    nodelist, blank_finish = self.explicit_construct(match)
  File "/home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 2354, in explicit_construct
    return method(self, expmatch)
  File "/home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 2096, in directive
    return self.run_directive(
  File "/home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 2146, in run_directive
    result = directive_instance.run()
  File "/home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/sphinx/ext/autodoc/directive.py", line 146, in run
    documenter.generate(more_content=self.content)
  File "/home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/sphinx/ext/autodoc/__init__.py", line 1568, in generate
    return super().generate(more_content=more_content,
  File "/home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/sphinx/ext/autodoc/__init__.py", line 894, in generate
    self.document_members(all_members)
  File "/home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/sphinx/ext/autodoc/__init__.py", line 1559, in document_members
    super().document_members(all_members)
  File "/home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/sphinx/ext/autodoc/__init__.py", line 775, in document_members
    documenter.generate(
  File "/home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/sphinx/ext/autodoc/__init__.py", line 884, in generate
    self.add_directive_header(sig)
  File "/home/altendky/repos/preqtrio/tmp/qtrio/venv/lib/python3.8/site-packages/sphinx/ext/autodoc/__init__.py", line 1980, in add_directive_header
    annotations = get_type_hints(self.parent)
  File "/home/altendky/.pyenv/versions/3.8.3/lib/python3.8/typing.py", line 1223, in get_type_hints
    base_globals = sys.modules[base.__module__].__dict__
KeyError: 'Shiboken'

Expected behavior
No exception. Though sure, I have not dug into this and an error message from Sphinx may be the appropriate substitute for the raw exception.

Your project
altendky/qtrio#146

Environment info

  • OS: Ubuntu Linux 20.04
  • Python version: 3.8.3
  • Sphinx version: 3.2.0
  • Sphinx extensions:
    • sphinx.ext.autodoc
    • sphinx.ext.intersphinx
    • sphinx.ext.coverage
    • sphinx.ext.napoleon
    • sphinx_qt_documentation
    • sphinxcontrib_trio
@tk0miya
Copy link
Member

tk0miya commented Aug 14, 2020

I think this is same as #8084. Could you try Sphinx-3.2.1, please?

@altendky
Copy link
Contributor Author

Ha, I literally just noticed 3.2.1 and started running against it right before seeing your note. And yes, that does address the exception. Thank you. That's what I get for checking against the tag I knew about rather than just latest 3.x or such...

@tk0miya
Copy link
Member

tk0miya commented Aug 14, 2020

Good to know. Enjoy documentation!

@tk0miya tk0miya added this to the 3.2.1 milestone Aug 14, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants