f4pga / sphinx_f4pga_theme

A material-based, responsive theme inspired by mkdocs-material
Other
3 stars 4 forks source link

Theme can not be installed on Python 3.12 due to issue with `versioneer.py` #21

Closed mithro closed 8 months ago

mithro commented 8 months ago
Installing pip dependencies: - Ran pip subprocess with arguments:
['/home/tim/github/im-tomu/fomu-workshop/docs/env/bin/python', '-m', 'pip', 'install', '-U', '-r', '/home/tim/github/im-tomu/fomu-workshop/docs/condaenv.gelbol3p.requirements.txt', '--exists-action=b']
Pip subprocess output:
Collecting sphinx_symbiflow_theme (from -r /home/tim/github/im-tomu/fomu-workshop/docs/requirements.txt (line 6))
  Cloning http://github.com/f4pga/sphinx_f4pga_theme.git (to revision main) to /tmp/pip-install-qs48mrm_/sphinx-symbiflow-theme_a608b63fc2b44e7a9300cf68c4565559
  Resolved http://github.com/f4pga/sphinx_f4pga_theme.git to commit 745bc1f21bb8d67651ee29fb1f1fe1439910462d
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'error'

Pip subprocess error:
  Running command git clone --filter=blob:none --quiet http://github.com/f4pga/sphinx_f4pga_theme.git /tmp/pip-install-qs48mrm_/sphinx-symbiflow-theme_a608b63fc2b44e7a9300cf68c4565559
  warning: redirecting to https://github.com/f4pga/sphinx_f4pga_theme.git/
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [18 lines of output]
      /tmp/pip-install-qs48mrm_/sphinx-symbiflow-theme_a608b63fc2b44e7a9300cf68c4565559/versioneer.py:432: SyntaxWarning: invalid escape sequence '\s'
        ] = '''
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-qs48mrm_/sphinx-symbiflow-theme_a608b63fc2b44e7a9300cf68c4565559/setup.py", line 24, in <module>
          version=versioneer.get_version(),
                  ^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-install-qs48mrm_/sphinx-symbiflow-theme_a608b63fc2b44e7a9300cf68c4565559/versioneer.py", line 1524, in get_version
          return get_versions()["version"]
                 ^^^^^^^^^^^^^^
        File "/tmp/pip-install-qs48mrm_/sphinx-symbiflow-theme_a608b63fc2b44e7a9300cf68c4565559/versioneer.py", line 1451, in get_versions
          cfg = get_config_from_root(root)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-install-qs48mrm_/sphinx-symbiflow-theme_a608b63fc2b44e7a9300cf68c4565559/versioneer.py", line 346, in get_config_from_root
          parser = configparser.SafeConfigParser()
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?
      [end of output]