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

[Bug]: FileNotFoundError due to missing pyproject.toml during PyPI package build #6439

Open
openhands-agent opened this issue Jan 23, 2025 · 1 comment

Comments

@openhands-agent
Copy link
Contributor

Describe the bug and reproduction steps
A FileNotFoundError occurs due to a missing pyproject.toml file during the build process of our PyPI package. This leads to errors such as:

File "/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/openhands/runtime/utils/runtime_build.py", line 312, in get_hash_for_lock_files
  with open(src, 'rb') as f:

Describe any potential solutions to the bug
Update the build scripts to ensure pyproject.toml is available or adjust the script to handle this missing file gracefully, if it doesn't exist.

Logs, Errors, Screenshots, and Additional Context
Error details provide insights regarding the missing file during runtime image building:
"[Errno 2] No such file or directory: '/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/pyproject.toml'"

Issue Created By: Xingyao Wang on Slack

Link to Slack Thread: Slack Thread

@enyst
Copy link
Collaborator

enyst commented Jan 23, 2025

Related or duplicate: #6223

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

2 participants