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

Warning when compile documentation (missing 'PersonDict' & 'AttributeDict') #159

Open
dragokas opened this issue Jan 11, 2022 · 1 comment

Comments

@dragokas
Copy link

In attempt to compile documentation:

docs\make.bat html

you're receiving:

Running Sphinx v4.3.2
making output directory... done
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 20 source files that are out of date
updating environment: [new config] 20 added, 0 changed, 0 removed
reading sources... [100%] utilities
WARNING: autodoc: failed to import class 'PersonDict' from module 'sc2reader.utils'; the following exception was raised:

Traceback (most recent call last):
  File "c:\users\alex\appdata\local\programs\python\python38-32\lib\site-packages\sphinx\util\inspect.py", line 448, in
safe_getattr
    return getattr(obj, name, *defargs)
AttributeError: module 'sc2reader.utils' has no attribute 'PersonDict'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "c:\users\alex\appdata\local\programs\python\python38-32\lib\site-packages\sphinx\ext\autodoc\importer.py", line
110, in import_object
    obj = attrgetter(obj, mangled_name)
  File "c:\users\alex\appdata\local\programs\python\python38-32\lib\site-packages\sphinx\ext\autodoc\__init__.py", line
332, in get_attr
    return autodoc_attrgetter(self.env.app, obj, name, *defargs)
  File "c:\users\alex\appdata\local\programs\python\python38-32\lib\site-packages\sphinx\ext\autodoc\__init__.py", line
2780, in autodoc_attrgetter
    return safe_getattr(obj, name, *defargs)
  File "c:\users\alex\appdata\local\programs\python\python38-32\lib\site-packages\sphinx\util\inspect.py", line 464, in
safe_getattr
    raise AttributeError(name) from exc
AttributeError: PersonDict

WARNING: autodoc: failed to import class 'AttributeDict' from module 'sc2reader.utils'; the following exception was rais
ed:
Traceback (most recent call last):
  File "c:\users\alex\appdata\local\programs\python\python38-32\lib\site-packages\sphinx\util\inspect.py", line 448, in
safe_getattr
    return getattr(obj, name, *defargs)
AttributeError: module 'sc2reader.utils' has no attribute 'AttributeDict'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "c:\users\alex\appdata\local\programs\python\python38-32\lib\site-packages\sphinx\ext\autodoc\importer.py", line
110, in import_object
    obj = attrgetter(obj, mangled_name)
  File "c:\users\alex\appdata\local\programs\python\python38-32\lib\site-packages\sphinx\ext\autodoc\__init__.py", line
332, in get_attr
    return autodoc_attrgetter(self.env.app, obj, name, *defargs)
  File "c:\users\alex\appdata\local\programs\python\python38-32\lib\site-packages\sphinx\ext\autodoc\__init__.py", line
2780, in autodoc_attrgetter
    return safe_getattr(obj, name, *defargs)
  File "c:\users\alex\appdata\local\programs\python\python38-32\lib\site-packages\sphinx\util\inspect.py", line 464, in
safe_getattr
    raise AttributeError(name) from exc
AttributeError: AttributeDict

looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [100%] utilities
generating indices... genindex py-modindex done
highlighting module code... [100%] sc2reader.utils
writing additional pages... search done
copying static files... done
copying extra files... done
dumping search index in English (code: en)... done
dumping object inventory... done
build succeeded, 2 warnings.

The HTML pages are in build\html.

Build finished. The HTML pages are in build/html.

At the moment the following branch is used until it is merged: https://github.com/cclauss/sc2reader/tree/patch-4
(see: #157 )

@cclauss
Copy link
Collaborator

cclauss commented Jan 11, 2022

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

No branches or pull requests

2 participants