You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
subprocess.CalledProcessError: Command '['git', 'describe', '--always', '--long']' returned non-zero exit status 128.
looks like the installer is written to build from git, whereas the package is also published to pypi?
To Reproduce
python3 -m pip install snapcraft
Environment
Red Hat Enterprise Linux 7.9
Python 3.10.11
Pip 2.3.1
Snapcraft 4.8.1
Relevant log output
Defaulting to user installation because normal site-packages is not writeable
Collecting snapcraft
Using cached snapcraft-4.8.1.tar.gz (839 kB)
Installing build dependencies: started
Installing build dependencies: still running...
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'error'
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [21 lines of output]
fatal: not a git repository (or any of the parent directories): .git
Traceback (most recent call last):
File "/home/user/.local/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in<module>main()
File "/home/user/.local/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/home/user/.local/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "/tmp/pip-build-env-itkf783u/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 341, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
File "/tmp/pip-build-env-itkf783u/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 323, in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-itkf783u/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 487, in run_setup
super(_BuildMetaLegacyBackend,
File "/tmp/pip-build-env-itkf783u/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 338, in run_setup
exec(code, locals())
File "<string>", line 167, in<module>
File "<string>", line 42, in determine_version
File "/usr/local/lib/python3.10/subprocess.py", line 526, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['git', 'describe', '--always', '--long']' returned non-zero exit status 128.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Additional context
No response
The text was updated successfully, but these errors were encountered:
Bug Description
subprocess.CalledProcessError: Command '['git', 'describe', '--always', '--long']' returned non-zero exit status 128.
looks like the installer is written to build from git, whereas the package is also published to pypi?
To Reproduce
python3 -m pip install snapcraft
Environment
Red Hat Enterprise Linux 7.9
Python 3.10.11
Pip 2.3.1
Snapcraft 4.8.1
Relevant log output
Additional context
No response
The text was updated successfully, but these errors were encountered: