Thanks to visit codestin.com
Credit goes to github.com

Skip to content

readthedocs: 'extensions' is not defined #1200

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

Closed
cmaureir opened this issue Jan 10, 2021 · 0 comments · Fixed by #1201
Closed

readthedocs: 'extensions' is not defined #1200

cmaureir opened this issue Jan 10, 2021 · 0 comments · Fixed by #1201

Comments

@cmaureir
Copy link
Collaborator

Por alguna razón, hemos encontrado UPC/ravada#890 en la CI de readthedocs, y actualmente los builds tienen el siguiente error:

% python -m sphinx -T -j auto -E -b html -d _build/doctrees -D language=es . _build/html
Running Sphinx v2.2.0

Traceback (most recent call last):
  File "/home/cmaureir/repos/python-docs-es-admin/venv/lib/python3.9/site-packages/sphinx/config.py", line 361, in eval_config_file
    execfile_(filename, namespace)
  File "/home/cmaureir/repos/python-docs-es-admin/venv/lib/python3.9/site-packages/sphinx/util/pycompat.py", line 81, in execfile_
    exec(code, _globals)
  File "/home/cmaureir/repos/python-docs-es-admin/conf.py", line 22, in <module>
    from conf import *
  File "/home/cmaureir/repos/python-docs-es-admin/conf.py", line 72, in <module>
    if extensions:
NameError: name 'extensions' is not defined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/cmaureir/repos/python-docs-es-admin/venv/lib/python3.9/site-packages/sphinx/cmd/build.py", line 272, in build_main
    app = Sphinx(args.sourcedir, args.confdir, args.outputdir,
  File "/home/cmaureir/repos/python-docs-es-admin/venv/lib/python3.9/site-packages/sphinx/application.py", line 210, in __init__
    self.config = Config.read(self.confdir, confoverrides or {}, self.tags)
  File "/home/cmaureir/repos/python-docs-es-admin/venv/lib/python3.9/site-packages/sphinx/config.py", line 196, in read
    namespace = eval_config_file(filename, tags)
  File "/home/cmaureir/repos/python-docs-es-admin/venv/lib/python3.9/site-packages/sphinx/config.py", line 371, in eval_config_file
    raise ConfigError(msg % traceback.format_exc())
sphinx.errors.ConfigError: There is a programmable error in your configuration file:

Traceback (most recent call last):
  File "/home/cmaureir/repos/python-docs-es-admin/venv/lib/python3.9/site-packages/sphinx/config.py", line 361, in eval_config_file
    execfile_(filename, namespace)
  File "/home/cmaureir/repos/python-docs-es-admin/venv/lib/python3.9/site-packages/sphinx/util/pycompat.py", line 81, in execfile_
    exec(code, _globals)
  File "/home/cmaureir/repos/python-docs-es-admin/conf.py", line 22, in <module>
    from conf import *
  File "/home/cmaureir/repos/python-docs-es-admin/conf.py", line 72, in <module>
    if extensions:
NameError: name 'extensions' is not defined


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

Traceback (most recent call last):
  File "/home/cmaureir/repos/python-docs-es-admin/venv/lib/python3.9/site-packages/sphinx/config.py", line 361, in eval_config_file
    execfile_(filename, namespace)
  File "/home/cmaureir/repos/python-docs-es-admin/venv/lib/python3.9/site-packages/sphinx/util/pycompat.py", line 81, in execfile_
    exec(code, _globals)
  File "/home/cmaureir/repos/python-docs-es-admin/conf.py", line 22, in <module>
    from conf import *
  File "/home/cmaureir/repos/python-docs-es-admin/conf.py", line 72, in <module>
    if extensions:
NameError: name 'extensions' is not defined

Localmente extensions está definido, pero por alguna razón no en el CI de readthedocs.

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.

1 participant