jazzband/django-configurations

2.5.1: documentation build fails

Opened this issue · 0 comments

django 5.0.3, python 3.9.18 and sphinx 7.2.6 which fails with ImportError: cannot import name 'NoneType'

+ /usr/bin/sphinx-build -n -T -b man docs build/sphinx/man
Running Sphinx v7.2.6

Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/sphinx/config.py", line 358, in eval_config_file
    exec(code, namespace)  # NoQA: S102
  File "/home/tkloczko/rpmbuild/BUILD/django-configurations-2.5.1/docs/conf.py", line 5, in <module>
    import configurations
  File "/home/tkloczko/rpmbuild/BUILD/django-configurations-2.5.1/configurations/__init__.py", line 1, in <module>
    from .base import Configuration  # noqa
  File "/home/tkloczko/rpmbuild/BUILD/django-configurations-2.5.1/configurations/base.py", line 8, in <module>
    from .values import Value, setup_value
  File "/home/tkloczko/rpmbuild/BUILD/django-configurations-2.5.1/configurations/values.py", line 7, in <module>
    from django.core import validators
  File "/usr/lib/python3.9/site-packages/django/core/validators.py", line 9, in <module>
    from django.utils.encoding import punycode
  File "/usr/lib/python3.9/site-packages/django/utils/encoding.py", line 5, in <module>
    from types import NoneType
ImportError: cannot import name 'NoneType' from 'types' (/usr/lib64/python3.9/types.py)

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

Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/sphinx/cmd/build.py", line 293, in build_main
    app = Sphinx(args.sourcedir, args.confdir, args.outputdir,
  File "/usr/lib/python3.9/site-packages/sphinx/application.py", line 211, in __init__
    self.config = Config.read(self.confdir, confoverrides or {}, self.tags)
  File "/usr/lib/python3.9/site-packages/sphinx/config.py", line 181, in read
    namespace = eval_config_file(filename, tags)
  File "/usr/lib/python3.9/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 "/usr/lib/python3.9/site-packages/sphinx/config.py", line 358, in eval_config_file
    exec(code, namespace)  # NoQA: S102
  File "/home/tkloczko/rpmbuild/BUILD/django-configurations-2.5.1/docs/conf.py", line 5, in <module>
    import configurations
  File "/home/tkloczko/rpmbuild/BUILD/django-configurations-2.5.1/configurations/__init__.py", line 1, in <module>
    from .base import Configuration  # noqa
  File "/home/tkloczko/rpmbuild/BUILD/django-configurations-2.5.1/configurations/base.py", line 8, in <module>
    from .values import Value, setup_value
  File "/home/tkloczko/rpmbuild/BUILD/django-configurations-2.5.1/configurations/values.py", line 7, in <module>
    from django.core import validators
  File "/usr/lib/python3.9/site-packages/django/core/validators.py", line 9, in <module>
    from django.utils.encoding import punycode
  File "/usr/lib/python3.9/site-packages/django/utils/encoding.py", line 5, in <module>
    from types import NoneType
ImportError: cannot import name 'NoneType' from 'types' (/usr/lib64/python3.9/types.py)


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

Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/sphinx/config.py", line 358, in eval_config_file
    exec(code, namespace)  # NoQA: S102
  File "/home/tkloczko/rpmbuild/BUILD/django-configurations-2.5.1/docs/conf.py", line 5, in <module>
    import configurations
  File "/home/tkloczko/rpmbuild/BUILD/django-configurations-2.5.1/configurations/__init__.py", line 1, in <module>
    from .base import Configuration  # noqa
  File "/home/tkloczko/rpmbuild/BUILD/django-configurations-2.5.1/configurations/base.py", line 8, in <module>
    from .values import Value, setup_value
  File "/home/tkloczko/rpmbuild/BUILD/django-configurations-2.5.1/configurations/values.py", line 7, in <module>
    from django.core import validators
  File "/usr/lib/python3.9/site-packages/django/core/validators.py", line 9, in <module>
    from django.utils.encoding import punycode
  File "/usr/lib/python3.9/site-packages/django/utils/encoding.py", line 5, in <module>
    from types import NoneType
ImportError: cannot import name 'NoneType' from 'types' (/usr/lib64/python3.9/types.py)