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.
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 >
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
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][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"]
[tool.versioningit.format] distance = "{base_version}" dirty = "{base_version}" distance-dirty = "{base_version}" [/code] [b] 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[/b] Da ich es jedoch als [b] bearbeitet werden muss, [/b], wenn ich Ausführen (in MyApp venv) PIP Installation -e/path/to/mypylib (das Verzeichnis ist das Stamm > [code]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. [/code] 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
Problem
Ich habe eine ASP.NET Core-Web-API, die XML- und JSON-Antworten erzeugen kann. Für einen meiner Controller erlaube ich die Erstellung von sowohl XML als auch JSON. Für alle anderen Endpunkte...
Ich versuche, den Code mithilfe von Yarn Build zu erstellen. Es lässt sich erfolgreich auf meinem Windows Intellij aufbauen, aber ich kann es nicht unter Ubuntu ausführen. Folgender Fehler ist...
Ich habe ein Projekt mit Python 3.11.4. Bisher konnte ich mein Docker -Bild ohne Probleme mit den nächsten Bibliotheken erstellen (nur die wichtigsten im Zusammenhang mit dem Problem erwähnte):...
Ich versuche, ein Container-Image mit AWS EC2 Ubuntu zu erstellen, um ein Python-Skript, das die web3.py-Bibliothek benötigt, auf das AWS ECR-Repository zu übertragen. Allerdings wird mir ein Fehler...