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

Error building documentation. "AttributeError: module 'pyspod' has no attribute '__copyright__'" #4

Closed
jdmoorman opened this issue Dec 15, 2020 · 2 comments

Comments

@jdmoorman
Copy link

Running the following as explained in README.md results in an error.

$ git clone https://github.com/mengaldo/PySPOD
$ cd PySPOD
$ python setup.py install
$ cd docs
$ make html

The resulting error message output by make html follows.

Running Sphinx v2.4.2

Configuration error:
There is a programmable error in your configuration file:

Traceback (most recent call last):
  File "/Users/jdmoorman/opt/miniconda3/lib/python3.7/site-packages/sphinx/config.py", line 348, in eval_config_file
    execfile_(filename, namespace)
  File "/Users/jdmoorman/opt/miniconda3/lib/python3.7/site-packages/sphinx/util/pycompat.py", line 81, in execfile_
    exec(code, _globals)
  File "/Users/jdmoorman/Git/PySPOD/docs/source/conf.py", line 74, in <module>
    copyright = pyspod.__copyright__
AttributeError: module 'pyspod' has no attribute '__copyright__'

make: *** [html] Error 2

Looks like the issue is related to the variables (e.g. copyright) defined on lines 22-29 of docs/conf.py being overwritten on lines 72-75 and 85-87 by undefined metadata from the pyspod package (e.g. pyspod.__copyright__).

@jdmoorman jdmoorman changed the title Error building documentation Error building documentation. "AttributeError: module 'pyspod' has no attribute '__copyright__'" Dec 15, 2020
@jdmoorman
Copy link
Author

@mengaldo
Copy link
Collaborator

mengaldo commented Mar 1, 2021

@jdmoorman This should be now fixed, thank you.

@mengaldo mengaldo closed this as completed Mar 1, 2021
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