-
-
Notifications
You must be signed in to change notification settings - Fork 265
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
"Failed to normalize readme path README.md
" when it exists
#2060
Comments
(I'm not sure yet if that's a problem in the project layout or in maturin, but the error message is definitely bad) |
This is my project layout:
Is my project layout incorrect? |
It looks like the problem is |
@konstin, it looks like adding a README.md to each crate of my repo fixed this issue. |
@EricLBuehler do you have a public repo for repro? |
@messense, yes, here: https://github.com/EricLBuehler/mistral.rs However, the error has been fixed by adding a README.md to every dependency crate. |
For future reference: this was solved by adding a README.md to every dependent crate in my project. |
Old error message: ```console $ maturin sdist --manifest-path ../mistral.rs/mistralrs-pyo3/Cargo.toml 🔗 Found pyo3 bindings 🐍 Found CPython 3.13 at /usr/local/bin/python3 📡 Using build options features from pyproject.toml 💥 maturin failed Caused by: Failed to build source distribution Caused by: failed to normalize readme path `/home/konsti/projects/mistral.rs/mistralrs-core/README.md` Caused by: No such file or directory (os error 2) ``` New error message: ```console maturin sdist --manifest-path ../mistral.rs/mistralrs-pyo3/Cargo.toml 🔗 Found pyo3 bindings 🐍 Found CPython 3.13 at /usr/local/bin/python3 📡 Using build options features from pyproject.toml 💥 maturin failed Caused by: Failed to build source distribution Caused by: failed to normalize readme path `/home/konsti/projects/mistral.rs/mistralrs-core/README.md` Caused by: No such file or directory (os error 2) ``` Checking at https://github.com/EricLBuehler/mistral.rs/blob/86599c1adc5e4a07db50e8460676151f736c873f/mistralrs-core/Cargo.toml#L3, there was indeed a missing readme file. Fixes #2060
Old error message: ```console $ maturin sdist --manifest-path ../mistral.rs/mistralrs-pyo3/Cargo.toml 🔗 Found pyo3 bindings 🐍 Found CPython 3.13 at /usr/local/bin/python3 📡 Using build options features from pyproject.toml 💥 maturin failed Caused by: Failed to build source distribution Caused by: failed to normalize readme path `/home/konsti/projects/mistral.rs/mistralrs-core/README.md` Caused by: No such file or directory (os error 2) ``` New error message: ```console maturin sdist --manifest-path ../mistral.rs/mistralrs-pyo3/Cargo.toml 🔗 Found pyo3 bindings 🐍 Found CPython 3.13 at /usr/local/bin/python3 📡 Using build options features from pyproject.toml 💥 maturin failed Caused by: Failed to build source distribution Caused by: failed to normalize readme path `/home/konsti/projects/mistral.rs/mistralrs-core/README.md` Caused by: No such file or directory (os error 2) ``` Checking at https://github.com/EricLBuehler/mistral.rs/blob/86599c1adc5e4a07db50e8460676151f736c873f/mistralrs-core/Cargo.toml#L3, there was indeed a missing readme file. Fixes #2060
Bug Description
When I run
maturin publish
, detects a missing README.md when it does exist in that directory.Your maturin version (
maturin --version
)1.5.0
Your Python version (
python -V
)3.12.1
Your pip version (
pip -V
)23.3.1
What bindings you're using
pyo3
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
maturin publish
The text was updated successfully, but these errors were encountered: