Repository navigation
Closed
Description
Just seen that with borgbackup 1.2-maint branch - this used to work since recently.
(borg-env) tw@mba2020 borg % python setup.py clean clean2
Detected OpenSSL [via pkg-config]
Detected and preferring liblz4 [via pkg-config]
Detected and preferring libzstd [via pkg-config]
Detected and preferring libxxhash [via pkg-config]
/Users/tw/w/borg-env/lib/python3.11/site-packages/setuptools/__init__.py:80: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!
********************************************************************************
Requirements should be satisfied by a PEP 517 installer.
If you are using pip, you can try `pip install --use-pep517`.
********************************************************************************
!!
dist.fetch_build_eggs(dist.setup_requires)
[09/25/23 14:00:36] ERROR pyproject.toml does not contain a tool.setuptools_scm section setuptools.py:123
Traceback (most recent call last):
File "/Users/tw/w/borg-env/lib/python3.11/site-packages/setuptools_scm/_integration/pyproject_reading.py", line 53, in read_pyproject
section = defn.get("tool", {})[tool_name]
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: 'setuptools_scm'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/tw/w/borg-env/lib/python3.11/site-packages/setuptools_scm/_integration/setuptools.py", line 121, in infer_version
config = _config.Configuration.from_file(dist_name=dist_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/tw/w/borg-env/lib/python3.11/site-packages/setuptools_scm/_config.py", line 128, in from_file
pyproject_data = _read_pyproject(name, _load_toml=_load_toml)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/tw/w/borg-env/lib/python3.11/site-packages/setuptools_scm/_integration/pyproject_reading.py", line 55, in read_pyproject
raise LookupError(f"{name} does not contain a tool.{tool_name} section") from e
LookupError: pyproject.toml does not contain a tool.setuptools_scm section
Reacted by Didier
Metadata
Metadata
Assignees
Labels
No labels
Activity
use setuptools_scm < 8 for now
ThomasWaldmann commentedon Sep 25, 2023
Note: borg 1.2 is using a minimal pyproject.toml.
otoh, our master branch has migrated most stuff to pyproject.toml.
RonnyPfannschmidt commentedon Sep 25, 2023
@ThomasWaldmann thank for the note a bugfix is already on the way (this is a regression triggered by a bugfix)
ensure self-init accepts setup.py only config
ThomasWaldmann commentedon Jul 17, 2024
Looks like this bug just reappeared in setuptools-scm 8.1.0 (again seen with borgbackup 1.2-maint branch). With 8.0.x I don't see this crash:
m-u-xyz commentedon Mar 20, 2025
Still a problem in 8.2.0 !
RonnyPfannschmidt commentedon Mar 21, 2025
Its related to incorrect readong of pyproject data
It seems the setuptools pin is related and required
dvernon83 commentedon Mar 21, 2025
So how to fix this? I cant install python3-saml due to this.
mattkjames7 commentedon Apr 15, 2025
This is an unrelated error to the original (see xmlsec/python-xmlsec#345). To fix this particular problem, either install xmlsec libs (e.g. with apt) or install the previous version e.g.
pip install xmlsec==1.3.14.Mahalakshmivignesh commentedon Apr 27, 2025
i am also getting similar error while installing matplotlib=3.7.2. The wheel building fails with below message.
RonnyPfannschmidt commentedon Apr 27, 2025
@Mahalakshmivignesh please build with SETUPTOOLS_SCM_DEBUG=1 at first glance yours is not related to setuptools_scm but rather to setuptools and deprecations that happened
RonnyPfannschmidt commentedon Apr 27, 2025
@mattkjames7 yours is unrelated -
error: xmlsec1 is not installed or not in path.RonnyPfannschmidt commentedon Jul 30, 2025
the handling for this has been mostly resolved - modern build tooling is needed
ThomasWaldmann commentedon Aug 4, 2025
I am still seeing this issue in borg 1.2-maint:
Python 3.10.18
setuptools-scm==8.3.1
ThomasWaldmann commentedon Aug 4, 2025
And a debug run:
RonnyPfannschmidt commentedon Aug 4, 2025
@ThomasWaldmann that particular issue is something else and getting resolved today
also please note that building using setup.py has been deprecated in setuptools and one ie expected to use the build backend
ThomasWaldmann commentedon Aug 4, 2025
Well, it looked pretty similar to the top post.
borg 1.4 and master are using more modern tooling, I just wanted to do a final 1.2.9 release with as little changes as possible.
RonnyPfannschmidt commentedon Aug 4, 2025
@ThomasWaldmann the new error looks the same because it triggers the same bad code path for a very different reason
lovettchris commentedon Aug 5, 2025
I'm also getting this error starting yesterday on a repo I've not changed and has been working fine for a years.
RonnyPfannschmidt commentedon Aug 5, 2025
plese see #1184 fix was just released for that one as well