I'm trying to setup a new dev environment on Oracle Linux 9 running under WSL2 but I get the following error when I run source run.sh activate:
❯ source run.sh activate
No package metadata was found for lifx-photons-core
DEPRECATION: file:///home/djelibeybi/Git/Photons/src/modules#egg=lifx-photons-core[tests]==0.44.0 contains an egg fragment with a non-PEP 508 name pip 25.0 will enforce this behaviour change. A possible replacement is to use the req @ url syntax, and remove the egg fragment. Discussion can be found at https://github.com/pypa/pip/issues/11617
DEPRECATION: file:///home/djelibeybi/Git/Photons/src/docs#egg=lifx-photons-docs==0.4.1 contains an egg fragment with a non-PEP 508 name pip 25.0 will enforce this behaviour change. A possible replacement is to use the req @ url syntax, and remove the egg fragment. Discussion can be found at https://github.com/pypa/pip/issues/11617
DEPRECATION: file:///home/djelibeybi/Git/Photons/src/apps/arranger#egg=lifx-photons-arranger==0.7.0 contains an egg fragment with a non-PEP 508 name pip 25.0 will enforce this behaviour change. A possible replacement is to use the req @ url syntax, and remove the egg fragment. Discussion can be found at https://github.com/pypa/pip/issues/11617
DEPRECATION: file:///home/djelibeybi/Git/Photons/src/apps/interactor#egg=lifx-photons-interactor==0.14.0 contains an egg fragment with a non-PEP 508 name pip 25.0 will enforce this behaviour change. A possible replacement is to use the req @ url syntax, and remove the egg fragment. Discussion can be found at https://github.com/pypa/pip/issues/11617
Obtaining lifx-photons-core[tests]==0.44.0 from file:///home/djelibeybi/Git/Photons/src/modules#egg=lifx-photons-core[tests]==0.44.0 (from lifx-photons-core[tests]==0.44.0->-r /home/djelibeybi/Git/Photons/src/tmpafwlym7bvenvstarter_requirements (line 2))
Installing build dependencies ... done
Checking if build backend supports build_editable ... done
Getting requirements to build editable ... done
Preparing editable metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing editable metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [50 lines of output]
Traceback (most recent call last):
File "/home/djelibeybi/Git/Photons/src/tools/.python/lib64/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 167, in prepare_metadata_for_build_editable
hook = backend.prepare_metadata_for_build_editable
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'hatchling.build' has no attribute 'prepare_metadata_for_build_editable'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/djelibeybi/Git/Photons/src/tools/.python/lib64/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/home/djelibeybi/Git/Photons/src/tools/.python/lib64/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/djelibeybi/Git/Photons/src/tools/.python/lib64/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 176, in prepare_metadata_for_build_editable
whl_basename = build_hook(metadata_directory, config_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-ogl8xfi2/overlay/lib/python3.11/site-packages/hatchling/build.py", line 82, in build_editable
return os.path.basename(next(builder.build(directory=wheel_directory, versions=['editable'])))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-ogl8xfi2/overlay/lib/python3.11/site-packages/hatchling/builders/plugin/interface.py", line 155, in build
artifact = version_api[version](directory, **build_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-ogl8xfi2/overlay/lib/python3.11/site-packages/hatchling/builders/wheel.py", line 430, in build_editable
return self.build_editable_detection(directory, **build_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-ogl8xfi2/overlay/lib/python3.11/site-packages/hatchling/builders/wheel.py", line 441, in build_editable_detection
for included_file in self.recurse_selected_project_files():
File "/tmp/pip-build-env-ogl8xfi2/overlay/lib/python3.11/site-packages/hatchling/builders/plugin/interface.py", line 180, in recurse_selected_project_files
if self.config.only_include:
^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-ogl8xfi2/overlay/lib/python3.11/site-packages/hatchling/builders/config.py", line 781, in only_include
only_include = only_include_config.get('only-include', self.default_only_include()) or self.packages
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-ogl8xfi2/overlay/lib/python3.11/site-packages/hatchling/builders/wheel.py", line 231, in default_only_include
return self.default_file_selection_options.only_include
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/functools.py", line 1001, in __get__
val = self.func(instance)
^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-ogl8xfi2/overlay/lib/python3.11/site-packages/hatchling/builders/wheel.py", line 219, in default_file_selection_options
raise ValueError(message)
ValueError: Unable to determine which files to ship inside the wheel using the following heuristics: https://hatch.pypa.io/latest/plugins/builder/wheel/#default-file-selection
At least one file selection option must be defined in the `tool.hatch.build.targets.wheel` table, see: https://hatch.pypa.io/latest/config/build/
As an example, if you intend to ship a directory named `foo` that resides within a `src` directory located at the root of your project, you can define the following:
[tool.hatch.build.targets.wheel]
packages = ["src/foo"]
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Note that I did have to change /usr/bin/env python3 to /usr/bin/env python3.11 as Oracle Linux 9 provides Python 3.9 as python3. I'm pretty sure it's using Python 3.11 but I'm obviously missing something else and I can't work out what that something is.
I'm trying to setup a new dev environment on Oracle Linux 9 running under WSL2 but I get the following error when I run
source run.sh activate
:Note that I did have to change
/usr/bin/env python3
to/usr/bin/env python3.11
as Oracle Linux 9 provides Python 3.9 aspython3
. I'm pretty sure it's using Python 3.11 but I'm obviously missing something else and I can't work out what that something is.