The Wayback Machine - https://web.archive.org/web/20210117184558/https://github.com/python/python-docs-es/issues/1200
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

readthedocs: 'extensions' is not defined #1200

Closed
cmaureir opened this issue Jan 10, 2021 · 0 comments
Closed

readthedocs: 'extensions' is not defined #1200

cmaureir opened this issue Jan 10, 2021 · 0 comments

Comments

@cmaureir
Copy link
Collaborator

@cmaureir cmaureir commented Jan 10, 2021

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.

cmaureir added a commit that referenced this issue Jan 10, 2021
Closes #1200
@clacri clacri closed this in #1201 Jan 11, 2021
clacri pushed a commit that referenced this issue Jan 11, 2021
Closes #1200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

1 participant
You can’t perform that action at this time.