Skip to content

docker -compose up PEP517 build of a dependency failed #450

@eightsixeight

Description

@eightsixeight

RASPBERRY 3B

PEP517 build of a dependency failed

Backend subprocess exited when trying to invoke get_requires_for_build_wheel

| Command '['/tmp/tmp4frx72m5/.venv/bin/python', '/usr/local/lib/python3.10/site-packages/pyproject_hooks/_in_process/_in_process.py', 'get_requires_for_build_wheel', '/tmp/tmp0qp1r1mc']' returned non-zero exit status 1.
| 
| /tmp/tmp4frx72m5/.venv/lib/python3.10/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
| !!
| 
|         ********************************************************************************
|         Please consider removing the following classifiers in favor of a SPDX license expression:
| 
|         License :: OSI Approved :: MIT License
| 
|         See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
|         ********************************************************************************
| 
| !!
|   self._finalize_license_expression()
| running egg_info
| writing lib/PyYAML.egg-info/PKG-INFO
| writing dependency_links to lib/PyYAML.egg-info/dependency_links.txt
| writing top-level names to lib/PyYAML.egg-info/top_level.txt
| Traceback (most recent call last):
|   File "/usr/local/lib/python3.10/site-packages/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
|     main()
|   File "/usr/local/lib/python3.10/site-packages/pyproject_hooks/_in_process/_in_process.py", line 373, in main
|     json_out["return_val"] = hook(**hook_input["kwargs"])
|   File "/usr/local/lib/python3.10/site-packages/pyproject_hooks/_in_process/_in_process.py", line 143, in get_requires_for_build_wheel
|     return hook(config_settings)
|   File "/tmp/tmp4frx72m5/.venv/lib/python3.10/site-packages/setuptools/build_meta.py", line 331, in get_requires_for_build_wheel
|     return self._get_build_requires(config_settings, requirements=[])
|   File "/tmp/tmp4frx72m5/.venv/lib/python3.10/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires
|     self.run_setup()
|   File "/tmp/tmp4frx72m5/.venv/lib/python3.10/site-packages/setuptools/build_meta.py", line 317, in run_setup
|     exec(code, locals())
|   File "<string>", line 288, in <module>
|   File "/tmp/tmp4frx72m5/.venv/lib/python3.10/site-packages/setuptools/__init__.py", line 115, in setup
|     return distutils.core.setup(**attrs)
|   File "/tmp/tmp4frx72m5/.venv/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 186, in setup
|     return run_commands(dist)
|   File "/tmp/tmp4frx72m5/.venv/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 202, in run_commands
|     dist.run_commands()
|   File "/tmp/tmp4frx72m5/.venv/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 1002, in run_commands
|     self.run_command(cmd)
|   File "/tmp/tmp4frx72m5/.venv/lib/python3.10/site-packages/setuptools/dist.py", line 1102, in run_command
|     super().run_command(command)
|   File "/tmp/tmp4frx72m5/.venv/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 1021, in run_command
|     cmd_obj.run()
|   File "/tmp/tmp4frx72m5/.venv/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 312, in run
|     self.find_sources()
|   File "/tmp/tmp4frx72m5/.venv/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 320, in find_sources
|     mm.run()
|   File "/tmp/tmp4frx72m5/.venv/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 543, in run
|     self.add_defaults()
|   File "/tmp/tmp4frx72m5/.venv/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 581, in add_defaults
|     sdist.add_defaults(self)
|   File "/tmp/tmp4frx72m5/.venv/lib/python3.10/site-packages/setuptools/command/sdist.py", line 109, in add_defaults
|     super().add_defaults()
|   File "/tmp/tmp4frx72m5/.venv/lib/python3.10/site-packages/setuptools/_distutils/command/sdist.py", line 245, in add_defaults
|     self._add_defaults_ext()
|   File "/tmp/tmp4frx72m5/.venv/lib/python3.10/site-packages/setuptools/_distutils/command/sdist.py", line 330, in _add_defaults_ext
|     self.filelist.extend(build_ext.get_source_files())
|   File "<string>", line 204, in get_source_files
|   File "/tmp/tmp4frx72m5/.venv/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 131, in __getattr__
|     raise AttributeError(attr)
| AttributeError: cython_sources

Note: This error originates from the build backend, and is likely not a problem with poetry but one of the following issues with pyyaml (6.0)

  • not supporting PEP 517 builds
  • not specifying PEP 517 build requirements correctly
  • the build requirements are incompatible with your operating system or Python version
  • the build requirements are missing system dependencies (eg: compilers, libraries, headers).

You can verify this by running pip wheel --no-cache-dir --use-pep517 "pyyaml (==6.0)".

The command '/bin/sh -c poetry config virtualenvs.create false && poetry install -n' returned a non-zero code: 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions