You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code: Some(py_src) => project_root.join(py_src).normalize()?.into_path_buf(),
results in this cryptic error.
The fix is simple: the user has to create a python directory. The code should be enhanced with better logging because "No such file or directory (os error 2)" is not helpful.
Your maturin version (maturin --version)
1.7.7
Your Python version (python -V)
Python 3.13.0
Your pip version (pip -V)
pip 24.2
What bindings you're using
None
Does cargo build work?
Yes, it works
If on windows, have you checked that you aren't accidentally using unix path (those with the forward slash /)?
Yes
Steps to Reproduce
RUST_LOG=maturin=debug maturin build
2024-12-03T14:23:30.430629Z INFO into_build_context: maturin::build_options: close time.busy=917ns time.idle=1.62µs
2024-12-03T14:23:30.430709Z DEBUG maturin::project_layout: Found pyproject.toml in working directory at "/Users/ajitb/hf/xet-core/hf_xet/pyproject.toml"
2024-12-03T14:23:30.430842Z DEBUG maturin::project_layout: Using cargo manifest path from working directory: "/Users/ajitb/hf/xet-core/hf_xet/Cargo.toml"
2024-12-03T14:23:30.430927Z DEBUG resolve_cargo_metadata: maturin::project_layout: Resolving cargo metadata from "/Users/ajitb/hf/xet-core/hf_xet/Cargo.toml"
2024-12-03T14:23:30.594052Z INFO resolve_cargo_metadata: maturin::project_layout: close time.busy=163ms time.idle=666ns
💥 maturin failed
Caused by: No such file or directory (os error 2)
The text was updated successfully, but these errors were encountered:
Bug Description
The following code:
Some(py_src) => project_root.join(py_src).normalize()?.into_path_buf(),
results in this cryptic error.
The fix is simple: the user has to create a
python
directory. The code should be enhanced with better logging because "No such file or directory (os error 2)" is not helpful.Your maturin version (
maturin --version
)1.7.7
Your Python version (
python -V
)Python 3.13.0
Your pip version (
pip -V
)pip 24.2
What bindings you're using
None
Does
cargo build
work?If on windows, have you checked that you aren't accidentally using unix path (those with the forward slash
/
)?Steps to Reproduce
The text was updated successfully, but these errors were encountered: