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

Show full path in missing readme error message #2074

Merged
merged 1 commit into from
May 12, 2024

Conversation

konstin
Copy link
Member

@konstin konstin commented May 9, 2024

Old error message:

$ 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 `README.md`
   Caused by: No such file or directory (os error 2)

New error message:

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
Copy link

netlify bot commented May 9, 2024

Deploy Preview for maturin-guide ready!

Name Link
🔨 Latest commit ec333ea
🔍 Latest deploy log https://app.netlify.com/sites/maturin-guide/deploys/663c9c6e7503ff0008481659
😎 Deploy Preview https://deploy-preview-2074--maturin-guide.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@konstin konstin added bug Something isn't working error messages and removed bug Something isn't working labels May 9, 2024
@konstin konstin enabled auto-merge May 9, 2024 09:59
@konstin konstin added this pull request to the merge queue May 9, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 9, 2024
@konstin
Copy link
Member Author

konstin commented May 9, 2024

The CI failures look unrelated

@messense messense added this pull request to the merge queue May 10, 2024
@messense messense removed this pull request from the merge queue due to a manual request May 10, 2024
@messense messense added this pull request to the merge queue May 10, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 10, 2024
@messense messense merged commit 4225c84 into main May 12, 2024
29 checks passed
@messense messense deleted the konsti/fix-readme-error-message branch May 12, 2024 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Failed to normalize readme path README.md" when it exists
2 participants