Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python build gives openapi.yaml error #6

Open
sverhoeven opened this issue Aug 14, 2024 · 0 comments
Open

Python build gives openapi.yaml error #6

sverhoeven opened this issue Aug 14, 2024 · 0 comments

Comments

@sverhoeven
Copy link
Member

pip install build
cd python
python -m build
Build error
* Creating isolated environment: venv+pip...
* Installing packages in isolated environment:
  - hatchling
* Getting build dependencies for sdist...
* Building sdist...
* Building wheel from sdist
* Creating isolated environment: venv+pip...
* Installing packages in isolated environment:
  - hatchling
* Getting build dependencies for wheel...
* Building wheel...
Traceback (most recent call last):
  File "/home/verhoes/git/eWaterCycle/remotebmi/python/.venv/lib/python3.10/site-packages/pyproject_hooks/_in_process/_in_process.py", line 373, in <module>
    main()
  File "/home/verhoes/git/eWaterCycle/remotebmi/python/.venv/lib/python3.10/site-packages/pyproject_hooks/_in_process/_in_process.py", line 357, in main
    json_out["return_val"] = hook(**hook_input["kwargs"])
  File "/home/verhoes/git/eWaterCycle/remotebmi/python/.venv/lib/python3.10/site-packages/pyproject_hooks/_in_process/_in_process.py", line 271, in build_wheel
    return _build_backend().build_wheel(
  File "/tmp/build-env-mm0l448t/lib/python3.10/site-packages/hatchling/build.py", line 58, in build_wheel
    return os.path.basename(next(builder.build(directory=wheel_directory, versions=['standard'])))
  File "/tmp/build-env-mm0l448t/lib/python3.10/site-packages/hatchling/builders/plugin/interface.py", line 155, in build
    artifact = version_api[version](directory, **build_data)
  File "/tmp/build-env-mm0l448t/lib/python3.10/site-packages/hatchling/builders/wheel.py", line 476, in build_standard
    record = archive.add_file(included_file)
  File "/tmp/build-env-mm0l448t/lib/python3.10/site-packages/hatchling/builders/wheel.py", line 95, in add_file
    file_stat = os.stat(included_file.path)
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/build-via-sdist-xcbhzb4_/remotebmi-0.1.0/remotebmi/server/openapi.yaml'

ERROR Backend subprocess exited when trying to invoke build_wheel

The error says it is missing remotebmi/server/openapi.yaml file, this is a symbolic link to openapi.yaml in the root of the repo.

Need to find way to follow link or keep copies of openapi.yaml in-sync.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant