Skip to content

Can not compile , get error on debian intel and same error on RPI ARM64 #11

@joys11

Description

@joys11

Describe the bug

Obtaining file:///root/caneth-main
Installing build dependencies ... done
Checking if build backend supports build_editable ... done
Getting requirements to build editable ... error
error: subprocess-exited-with-error

× Getting requirements to build editable did not run successfully.
│ exit code: 1
╰─> [48 lines of output]
Traceback (most recent call last):
File "/root/caneth-main/.venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in
main()
File "/root/caneth-main/.venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/caneth-main/.venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 157, in get_requires_for_build_editable
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-v5yd0m4b/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 473, in get_requires_for_build_editable
return self.get_requires_for_build_wheel(config_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-v5yd0m4b/overlay/lib/python3.11/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-v5yd0m4b/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-v5yd0m4b/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 317, in run_setup
exec(code, locals())
File "", line 1, in
File "/tmp/pip-build-env-v5yd0m4b/overlay/lib/python3.11/site-packages/setuptools/init.py", line 115, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-v5yd0m4b/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 148, in setup
_setup_distribution = dist = klass(attrs)
^^^^^^^^^^^^
File "/tmp/pip-build-env-v5yd0m4b/overlay/lib/python3.11/site-packages/setuptools/dist.py", line 321, in init
_Distribution.init(self, dist_attrs)
File "/tmp/pip-build-env-v5yd0m4b/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 309, in init
self.finalize_options()
File "/tmp/pip-build-env-v5yd0m4b/overlay/lib/python3.11/site-packages/setuptools/dist.py", line 784, in finalize_options
ep(self)
File "/tmp/pip-build-env-v5yd0m4b/overlay/lib/python3.11/site-packages/setuptools_scm/_integration/setuptools.py", line 159, in infer_version
result.apply(dist)
File "/tmp/pip-build-env-v5yd0m4b/overlay/lib/python3.11/site-packages/setuptools_scm/_integration/version_inference.py", line 28, in apply
version_string = infer_version_string(
^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-v5yd0m4b/overlay/lib/python3.11/site-packages/setuptools_scm/_integration/version_inference.py", line 102, in infer_version_string
_version_missing(config)
File "/tmp/pip-build-env-v5yd0m4b/overlay/lib/python3.11/site-packages/setuptools_scm/_get_version_impl.py", line 188, in _version_missing
raise LookupError(error_msg)
LookupError: setuptools-scm was unable to detect version for /root/caneth-main.

  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

  Alternatively, set the version with the environment variable SETUPTOOLS_SCM_PRETEND_VERSION_FOR_${NORMALIZED_DIST_NAME} as described in https://setuptools-scm.readthedocs.io/en/latest/config/
  [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 editable did not run successfully.
│ exit code: 1
╰─> See above for output.

To Reproduce

No response

Expected behavior

No response

Logs / Traceback

Package version

No response

Python version

No response

OS

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions