D: [iurt_root_command] chroot Installing /home/baz/rpmbuild/SRPMS/nanovna-saver-0.6.4-1.mga.src.rpm Building target platforms: noarch Building for target noarch Executing(%prep): /bin/sh -e /home/baz/rpmbuild/tmp/rpm-tmp.jB1gNC + umask 022 + cd /home/baz/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/baz/rpmbuild/BUILD + rm -rf nanovna-saver-0.6.4 + /usr/lib/rpm/rpmuncompress -x /home/baz/rpmbuild/SOURCES/nanovna-saver-0.6.4.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd nanovna-saver-0.6.4 + rm -rf /home/baz/rpmbuild/BUILD/nanovna-saver-0.6.4-SPECPARTS + /usr/bin/mkdir -p /home/baz/rpmbuild/BUILD/nanovna-saver-0.6.4-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/baz/rpmbuild/tmp/rpm-tmp.KhOgtX + umask 022 + cd /home/baz/rpmbuild/BUILD + cd nanovna-saver-0.6.4 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -sP' An error occurred while building the project, please ensure you have the most updated version of setuptools, setuptools_scm and wheel with: pip install -U setuptools setuptools_scm wheel Traceback (most recent call last): File "/home/baz/rpmbuild/BUILD/nanovna-saver-0.6.4/setup.py", line 13, in setup(use_scm_version={"version_scheme": "no-guess-dev"}) File "/usr/lib/python3.12/site-packages/setuptools/__init__.py", line 103, in setup return distutils.core.setup(**attrs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 147, in setup _setup_distribution = dist = klass(attrs) ^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/setuptools/dist.py", line 303, in __init__ _Distribution.__init__(self, dist_attrs) File "/usr/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 283, in __init__ self.finalize_options() File "/usr/lib/python3.12/site-packages/setuptools/dist.py", line 654, in finalize_options ep(self) File "/usr/lib/python3.12/site-packages/setuptools_scm/_integration/setuptools.py", line 121, in infer_version _assign_version(dist, config) File "/usr/lib/python3.12/site-packages/setuptools_scm/_integration/setuptools.py", line 56, in _assign_version _version_missing(config) File "/usr/lib/python3.12/site-packages/setuptools_scm/_get_version_impl.py", line 112, in _version_missing raise LookupError( LookupError: setuptools-scm was unable to detect version for /home/baz/rpmbuild/BUILD/nanovna-saver-0.6.4. Make sure you're either building from a fully intact git repository or PyPI tarballs. Most other sources (such as GitHub's tarballs, a git checkout without the .git folder) don't contain the necessary metadata and will not work. For example, if you're using pip, instead of https://github.com/user/proj/archive/master.zip use git+https://github.com/user/proj.git#egg=proj error: Bad exit status from /home/baz/rpmbuild/tmp/rpm-tmp.KhOgtX (%build) RPM build errors: Bad exit status from /home/baz/rpmbuild/tmp/rpm-tmp.KhOgtX (%build) I: [iurt_root_command] ERROR: chroot