Cannot install prospector.
poetry add prospector
Using version ^1.15.3 for prospector
Updating dependencies
Resolving dependencies... (0.2s)
Package operations: 10 installs, 0 updates, 0 removals
- Installing pylint-flask (0.6): Failed
PEP517 build of a dependency failed
Backend subprocess exited when trying to invoke get_requires_for_build_wheel
| Command '['/tmp/tmpdy2cjji8/.venv/bin/python', '/home/retep/repos/jsonschema2md/.venv/lib/python3.11/site-packages/pyproject_hooks/_in_process/_in_process.py', 'get_requires_for_build_wheel', '/tmp/tmp5uwtcvqh']' returned non-zero exit status 1.
|
| Warning: 'classifiers' should be a list, got type 'tuple'
| Traceback (most recent call last):
| File "/home/retep/repos/jsonschema2md/.venv/lib/python3.11/site-packages/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
| main()
| File "/home/retep/repos/jsonschema2md/.venv/lib/python3.11/site-packages/pyproject_hooks/_in_process/_in_process.py", line 373, in main
| json_out["return_val"] = hook(**hook_input["kwargs"])
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| File "/home/retep/repos/jsonschema2md/.venv/lib/python3.11/site-packages/pyproject_hooks/_in_process/_in_process.py", line 143, in get_requires_for_build_wheel
| return hook(config_settings)
| ^^^^^^^^^^^^^^^^^^^^^
| File "/tmp/tmpdy2cjji8/.venv/lib/python3.11/site-packages/setuptools/build_meta.py", line 334, in get_requires_for_build_wheel
| return self._get_build_requires(config_settings, requirements=[])
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| File "/tmp/tmpdy2cjji8/.venv/lib/python3.11/site-packages/setuptools/build_meta.py", line 304, in _get_build_requires
| self.run_setup()
| File "/tmp/tmpdy2cjji8/.venv/lib/python3.11/site-packages/setuptools/build_meta.py", line 522, in run_setup
| super().run_setup(setup_script=setup_script)
| File "/tmp/tmpdy2cjji8/.venv/lib/python3.11/site-packages/setuptools/build_meta.py", line 320, in run_setup
| exec(code, locals())
| File "<string>", line 43, in <module>
| File "/tmp/tmpdy2cjji8/.venv/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 160, in setup
| dist.parse_config_files()
| File "/tmp/tmpdy2cjji8/.venv/lib/python3.11/site-packages/_virtualenv.py", line 22, in parse_config_files
| result = old_parse_config_files(self, *args, **kwargs)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| File "/tmp/tmpdy2cjji8/.venv/lib/python3.11/site-packages/setuptools/dist.py", line 730, in parse_config_files
| self._parse_config_files(filenames=inifiles)
| File "/tmp/tmpdy2cjji8/.venv/lib/python3.11/site-packages/setuptools/dist.py", line 599, in _parse_config_files
| opt = self._enforce_underscore(opt, section)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| File "/tmp/tmpdy2cjji8/.venv/lib/python3.11/site-packages/setuptools/dist.py", line 629, in _enforce_underscore
| raise InvalidConfigError(
| setuptools.errors.InvalidConfigError: Invalid dash-separated key 'description-file' in 'metadata' (setup.cfg), please use the underscore name 'description_file' instead.
Note: This error originates from the build backend, and is likely not a problem with poetry but one of the following issues with pylint-flask (0.6)
- not supporting PEP 517 builds
- not specifying PEP 517 build requirements correctly
- the build requirements are incompatible with your operating system or Python version
- the build requirements are missing system dependencies (eg: compilers, libraries, headers).
You can verify this by running pip wheel --no-cache-dir --use-pep517 "pylint-flask (==0.6)"
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.04.2 LTS
Release: 24.04
Codename: noble
python3 --version
Python 3.11.11
poetry --version
Describe the bug A clear and concise description of what the bug is.
Cannot install prospector.
To Reproduce Steps to reproduce the behavior:
Details:
Additional context
pylint-flaskhas been broken since 2023, See jschaf/pylint-flask#21. I recommend removing it as a dependency.