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 docs with latest ruamel.yaml #28

Closed
rly opened this issue Mar 12, 2024 · 0 comments · Fixed by #26
Closed

Error building docs with latest ruamel.yaml #28

rly opened this issue Mar 12, 2024 · 0 comments · Fixed by #26
Assignees

Comments

@rly
Copy link
Contributor

rly commented Mar 12, 2024

Running Sphinx v7.2.6
/home/docs/checkouts/readthedocs.org/user_builds/hdmf-schema-language/checkouts/26/source/conf.py:211: SyntaxWarning: invalid escape sequence '\s'
  'preamble': '\setcounter{secnumdepth}{6}',

Traceback (most recent call last):
  File "/home/docs/checkouts/readthedocs.org/user_builds/hdmf-schema-language/envs/26/lib/python3.12/site-packages/sphinx/config.py", line 358, in eval_config_file
    exec(code, namespace)  # NoQA: S102
    ^^^^^^^^^^^^^^^^^^^^^
  File "/home/docs/checkouts/readthedocs.org/user_builds/hdmf-schema-language/checkouts/26/source/conf.py", line 110, in <module>
    namespace_map = yaml.safe_load(f)
                    ^^^^^^^^^^^^^^^^^
  File "/home/docs/checkouts/readthedocs.org/user_builds/hdmf-schema-language/envs/26/lib/python3.12/site-packages/ruamel/yaml/main.py", line 1105, in safe_load
    error_deprecation('safe_load', 'load', arg="typ='safe', pure=True")
  File "/home/docs/checkouts/readthedocs.org/user_builds/hdmf-schema-language/envs/26/lib/python3.12/site-packages/ruamel/yaml/main.py", line 1039, in error_deprecation
    raise AttributeError(s, name=None)
AttributeError: 
"safe_load()" has been removed, use

  yaml = YAML(typ='safe', pure=True)
  yaml.load(...)

instead of file "/home/docs/checkouts/readthedocs.org/user_builds/hdmf-schema-language/checkouts/26/source/conf.py", line 110

    namespace_map = yaml.safe_load(f)



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

Traceback (most recent call last):
  File "/home/docs/checkouts/readthedocs.org/user_builds/hdmf-schema-language/envs/26/lib/python3.12/site-packages/sphinx/cmd/build.py", line 293, in build_main
    app = Sphinx(args.sourcedir, args.confdir, args.outputdir,
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/docs/checkouts/readthedocs.org/user_builds/hdmf-schema-language/envs/26/lib/python3.12/site-packages/sphinx/application.py", line 211, in __init__
    self.config = Config.read(self.confdir, confoverrides or {}, self.tags)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/docs/checkouts/readthedocs.org/user_builds/hdmf-schema-language/envs/26/lib/python3.12/site-packages/sphinx/config.py", line 181, in read
    namespace = eval_config_file(filename, tags)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/docs/checkouts/readthedocs.org/user_builds/hdmf-schema-language/envs/26/lib/python3.12/site-packages/sphinx/config.py", line 371, in eval_config_file
    raise ConfigError(msg % traceback.format_exc()) from exc
sphinx.errors.ConfigError: There is a programmable error in your configuration file:

Traceback (most recent call last):
  File "/home/docs/checkouts/readthedocs.org/user_builds/hdmf-schema-language/envs/26/lib/python3.12/site-packages/sphinx/config.py", line 358, in eval_config_file
    exec(code, namespace)  # NoQA: S102
    ^^^^^^^^^^^^^^^^^^^^^
  File "/home/docs/checkouts/readthedocs.org/user_builds/hdmf-schema-language/checkouts/26/source/conf.py", line 110, in <module>
    namespace_map = yaml.safe_load(f)
                    ^^^^^^^^^^^^^^^^^
  File "/home/docs/checkouts/readthedocs.org/user_builds/hdmf-schema-language/envs/26/lib/python3.12/site-packages/ruamel/yaml/main.py", line 1105, in safe_load
    error_deprecation('safe_load', 'load', arg="typ='safe', pure=True")
  File "/home/docs/checkouts/readthedocs.org/user_builds/hdmf-schema-language/envs/26/lib/python3.12/site-packages/ruamel/yaml/main.py", line 1039, in error_deprecation
    raise AttributeError(s, name=None)
AttributeError: 
"safe_load()" has been removed, use

  yaml = YAML(typ='safe', pure=True)
  yaml.load(...)

instead of file "/home/docs/checkouts/readthedocs.org/user_builds/hdmf-schema-language/checkouts/26/source/conf.py", line 110

    namespace_map = yaml.safe_load(f)




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

Traceback (most recent call last):
  File "/home/docs/checkouts/readthedocs.org/user_builds/hdmf-schema-language/envs/26/lib/python3.12/site-packages/sphinx/config.py", line 358, in eval_config_file
    exec(code, namespace)  # NoQA: S102
    ^^^^^^^^^^^^^^^^^^^^^
  File "/home/docs/checkouts/readthedocs.org/user_builds/hdmf-schema-language/checkouts/26/source/conf.py", line 110, in <module>
    namespace_map = yaml.safe_load(f)
                    ^^^^^^^^^^^^^^^^^
  File "/home/docs/checkouts/readthedocs.org/user_builds/hdmf-schema-language/envs/26/lib/python3.12/site-packages/ruamel/yaml/main.py", line 1105, in safe_load
    error_deprecation('safe_load', 'load', arg="typ='safe', pure=True")
  File "/home/docs/checkouts/readthedocs.org/user_builds/hdmf-schema-language/envs/26/lib/python3.12/site-packages/ruamel/yaml/main.py", line 1039, in error_deprecation
    raise AttributeError(s, name=None)
AttributeError: 
"safe_load()" has been removed, use

  yaml = YAML(typ='safe', pure=True)
  yaml.load(...)

instead of file "/home/docs/checkouts/readthedocs.org/user_builds/hdmf-schema-language/checkouts/26/source/conf.py", line 110

    namespace_map = yaml.safe_load(f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant