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
{{ message }}
Repository navigation
Error in python test check / maturn python build: function or associated item not found in proc_macro::Literal` #961
Compiling alloc-stdlib v0.2.1
Compiling lock_api v0.4.5
error[E0599]: no function or associated item named `from_str` found for struct `proc_macro::Literal` in the current scope
--> /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-1.0.29/src/wrapper.rs:926:38
|
926 | proc_macro::Literal::from_str(repr)
| ^^^^^^^^ function or associated item not found in `proc_macro::Literal`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0599`.
error: could not compile `proc-macro2`
To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed
💥 maturin failed
Caused by: Failed to build a native library through cargo
Caused by: Failed to build a native library through cargo
Caused by: Cargo build finished with "exit status: 101": `cargo rustc --message-format json --manifest-path Cargo.toml --lib --`
Error: Process completed with exit code 1.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Additional context
Add any other context about the problem here.
Activity
NoRaincheck commentedon Sep 2, 2021
Rolling pyo3 to
pyo3 = { version = "=0.14.3", features = ["extension-module"] }seems to do the trick...not that its an appropriate fixhouqp commentedon Sep 2, 2021
I haven't had the time to dig into this yet, but here is the diff in 0.14.4 release: PyO3/pyo3@v0.14.3...v0.14.4
houqp commentedon Sep 4, 2021
This is caused by dtolnay/proc-macro2#296, pinning
proc-macro2to 1.0.28 fixes the build issue for rust >= 1.54.