Skip to content

pip install failed. Could be fixed by changes in versioneer.py #99

Open
SrPeter128 wants to merge 1 commit intoProLint:mainfrom
SrPeter128:fix_install
Open

pip install failed. Could be fixed by changes in versioneer.py #99
SrPeter128 wants to merge 1 commit intoProLint:mainfrom
SrPeter128:fix_install

Conversation

@SrPeter128
Copy link
Copy Markdown

@SrPeter128 SrPeter128 commented Nov 17, 2025

First of all: Thank you for this awesome tool! :)

Description

I had a problem installing prolint2. This error occurred both with pypi and with the local installation:

Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [33 lines of output]
      /home/<myusername>/tools/prolint2/versioneer.py:574: SyntaxWarning: "\s" is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\s"? A raw string is also an option.
        mo = re.search(r'=\s*"(.*)"', line)
      Traceback (most recent call last):
        File "/home/<myusername>/miniconda3/envs/prolint2_test/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
          main()
          ~~~~^^
        File "/home/<myusername>/miniconda3/envs/prolint2_test/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
          json_out["return_val"] = hook(**hook_input["kwargs"])
                                   ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
        File "/home/<myusername>/miniconda3/envs/prolint2_test/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 143, in get_requires_for_build_wheel
          return hook(config_settings)
        File "/tmp/pip-build-env-0j3p6xoh/overlay/lib/python3.14/site-packages/setuptools/build_meta.py", line 331, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=[])
                 ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-0j3p6xoh/overlay/lib/python3.14/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires
          self.run_setup()
          ~~~~~~~~~~~~~~^^
        File "/tmp/pip-build-env-0j3p6xoh/overlay/lib/python3.14/site-packages/setuptools/build_meta.py", line 512, in run_setup
          super().run_setup(setup_script=setup_script)
          ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-0j3p6xoh/overlay/lib/python3.14/site-packages/setuptools/build_meta.py", line 317, in run_setup
          exec(code, locals())
          ~~~~^^^^^^^^^^^^^^^^
        File "<string>", line 36, in <module>
        File "/home/<myusername>/tools/prolint2/versioneer.py", line 1523, in get_version
          return get_versions()["version"]
                 ~~~~~~~~~~~~^^
        File "/home/matpeter/tools/prolint2/versioneer.py", line 1450, in get_versions
          cfg = get_config_from_root(root)
        File "/home/matpeter/tools/prolint2/versioneer.py", line 345, in get_config_from_root
          parser = configparser.SafeConfigParser()
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed to build 'file:///home/<myusername>/tools/prolint2' when getting requirements to build wheel

Todos

After changing the parts included in this PR, installation was successful.

Questions

Is this error caused by version conflicts? Could this PR also prevent installation problems on other systems then mine too? If not, I understand if the PR is rejected ;)

Status

  • Ready to go

@SrPeter128 SrPeter128 marked this pull request as ready for review November 17, 2025 12:26
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 this pull request may close these issues.

1 participant