Build errors are not actionable
Opened this issue · 0 comments
astrojuanlu commented
❯ uvx kedro-init .
[13:20:00] Looking for existing package directories cli.py:25
Traceback (most recent call last):
File "/Users/juan_cano/.local/share/uv/tools/kedro-init/bin/kedro-init", line 8, in <module>
sys.exit(cli())
^^^^^
File "/Users/juan_cano/.local/share/uv/tools/kedro-init/lib/python3.12/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/juan_cano/.local/share/uv/tools/kedro-init/lib/python3.12/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/Users/juan_cano/.local/share/uv/tools/kedro-init/lib/python3.12/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/juan_cano/.local/share/uv/tools/kedro-init/lib/python3.12/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/juan_cano/.local/share/uv/tools/kedro-init/lib/python3.12/site-packages/kedro_init/cli.py", line 24, in cli
for step_message in init_steps(project_root_path):
File "/Users/juan_cano/.local/share/uv/tools/kedro-init/lib/python3.12/site-packages/kedro_init/init.py", line 12, in init_steps
existing, build_config = get_or_create_build_config(project_root)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/juan_cano/.local/share/uv/tools/kedro-init/lib/python3.12/site-packages/kedro_init/build_config.py", line 71, in get_or_create_build_config
package_names, project_name = _get_importables_and_project_name(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/juan_cano/.local/share/uv/tools/kedro-init/lib/python3.12/site-packages/kedro_init/build_config.py", line 25, in _get_importables_and_project_name
wheel_path = _simple_build_wheel(project_root, outdir)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/juan_cano/.local/share/uv/tools/kedro-init/lib/python3.12/site-packages/pygetimportables/__init__.py", line 57, in _simple_build_wheel
path_built_wheel = builder.build("wheel", out_dir, build_config_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/juan_cano/.local/share/uv/tools/kedro-init/lib/python3.12/site-packages/build/_builder.py", line 283, in build
return self._call_backend(f'build_{distribution}', output_directory, config_settings, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/juan_cano/.local/share/uv/tools/kedro-init/lib/python3.12/site-packages/build/_builder.py", line 329, in _call_backend
with self._handle_backend(hook_name):
File "/opt/homebrew/Cellar/python@3.12/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/contextlib.py", line 158, in __exit__
self.gen.throw(value)
File "/Users/juan_cano/.local/share/uv/tools/kedro-init/lib/python3.12/site-packages/build/_builder.py", line 345, in _handle_backend
raise BuildBackendException(exception, f'Backend subprocess exited when trying to invoke {hook}') from None
build._exceptions.BuildBackendException: Backend subprocess exited when trying to invoke build_wheel