Das Erhalten von Anforderungen an das Bauen von Rad wurde nicht erfolgreich ausgeführt. Code beenden: 1Python

Python-Programme
Guest
 Das Erhalten von Anforderungen an das Bauen von Rad wurde nicht erfolgreich ausgeführt. Code beenden: 1

Post by Guest »

Ich habe zwei Projekte, MyPylib und MyApp ; Wie der erfundene Name schon sagt, benötigt MyApp eine Reihe von Tools, die in Mylib enthalten sind. Ich verwende setuptools als Build -System.

Code: Select all

[build-system]
requires = [
"setuptools >= 42",  # At least v42 of setuptools required!
"versioningit",
]
build-backend = "setuptools.build_meta"

[project]
name = "MyPyLib"
authors = [...]
description = "MyPyLib Description"
readme = "README.md"
license = { file="LICENSE" }
requires-python = ">=3.8"
classifiers = [
"Programming Language :: Python :: 3.8",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
dependencies = [
"StrEnum"
]
dynamic = ["version"]

[project.optional-dependencies]
Video=[
"opencv-python-headless>=4.6",
"webcolors>=1.12",
"numpy"
]
Maths=[
"numpy", "scipy", "pandas", "Pillow"
]
Graphs=["pyqtgraph", "matplotlib"]
GUI=["PySide2", "pyqtgraph"]
Controller=["pyserial"]

[tool.versioningit]

[tool.versioningit.format]
distance = "{base_version}"
dirty = "{base_version}"
distance-dirty = "{base_version}"
Der Befehl bauen python -m build wird korrekt ausgeführt. Es generiert die Raddatei, und diese Datei wird korrekt in MyApp virtuelle Umgebung über PIP installiert install /path/to/wheel/mypylibxxxx.whl
Da ich es jedoch als bearbeitet werden muss, , wenn ich Ausführen (in MyApp venv) PIP Installation -e/path/to/mypylib (das Verzeichnis ist das Stamm >

Code: Select all

Obtaining file:///home/my-user/workspace/mypylib
Installing build dependencies ... done
Checking if build backend supports build_editable ... done
Getting requirements to build wheel ...  error
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [32 lines of output]
Traceback (most recent call last):
File "/home/my-user/workspace/virtualenvs/MyApp/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in 
main()
File "/home/my-user/workspace/virtualenvs/MyApp/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/home/my-user/workspace/virtualenvs/MyApp/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 130, in get_requires_for_build_wheel
return hook(config_settings)
File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 147, in get_requires_for_build_wheel
return self._get_build_requires(
File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 128, in _get_build_requires
self.run_setup()
File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 143, in run_setup
exec(compile(code, __file__, 'exec'), locals())
File "setup.py", line 13, in 
setup(
File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 143, in setup
_install_setup_requires(attrs)
File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 131, in _install_setup_requires
dist = distutils.core.Distribution(dict(
File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 447, in __init__
_Distribution.__init__(self, {
File "/usr/lib/python3.8/distutils/dist.py", line 292, in __init__
self.finalize_options()
File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 740, in finalize_options
ep.load()(self)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2444, in load
self.require(*args, **kwargs)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2467, in require
items = working_set.resolve(reqs, env, installer, extras=self.extras)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 792, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.VersionConflict: (importlib-metadata 1.5.0 (/usr/lib/python3/dist-packages), Requirement.parse('importlib-metadata>=3.6; python_version < "3.10"'))
[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.
Ich bin mir nicht sicher, was dort vor sich geht. War das Problem, aber ...
Die Installation funktioniert einwandfrei, wenn inclupt-System-Site-Packages in MyApp virtuelle Umgebung falsch ist. Ich kann immer noch nicht herausfinden, was los ist

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post