-
Notifications
You must be signed in to change notification settings - Fork 855
Closed
Description
PyO3 compilation fails in the latest nightly (2019-11-07):
Running `rustc --edition=2018 --crate-name pyo3 /root/.cargo/registry/src/github.com-1ecc6299db9ec823/pyo3-0.8.2/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 --cfg 'feature="default"' --cfg 'feature="extension-module"' --cfg 'feature="python3"' -C metadata=d867dc048d41dfdf -C extra-filename=-d867dc048d41dfdf --out-dir /tmp/pip-req-build-1j3dii3v/target/release/deps -L dependency=/tmp/pip-req-build-1j3dii3v/target/release/deps --extern indoc=/tmp/pip-req-build-1j3dii3v/target/release/deps/libindoc-800fd1d4de15bda8.rmeta --extern inventory=/tmp/pip-req-build-1j3dii3v/target/release/deps/libinventory-3268783cb8e05b64.rmeta --extern libc=/tmp/pip-req-build-1j3dii3v/target/release/deps/liblibc-6e0dfb66cbf00767.rmeta --extern num_traits=/tmp/pip-req-build-1j3dii3v/target/release/deps/libnum_traits-6c3a0b8706982cc7.rmeta --extern paste=/tmp/pip-req-build-1j3dii3v/target/release/deps/libpaste-06f5bb30e520877b.rmeta --extern pyo3cls=/tmp/pip-req-build-1j3dii3v/target/release/deps/libpyo3cls-6d066ac88560920d.so --extern spin=/tmp/pip-req-build-1j3dii3v/target/release/deps/libspin-40e68d3bc11bcf06.rmeta --extern unindent=/tmp/pip-req-build-1j3dii3v/target/release/deps/libunindent-040b27ffadbbec30.rmeta --cap-lints allow --cfg Py_3_5 --cfg Py_3_6 --cfg Py_3 --cfg 'py_sys_config="WITH_THREAD"'`
error[E0277]: the trait bound `(): err::PyErrArguments` is not satisfied
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/pyo3-0.8.2/src/err.rs:433:45
|
33 | pub fn from_err_args<T: 'static + PyErrArguments>(value: T) -> Self {
| ------------- -------------- required by this bound in `err::PyErrValue::from_err_args`
...
433 | PyErr::from_value::<$pyexc>(PyErrValue::from_err_args(err))
| ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `err::PyErrArguments` is not implemented for `()`
...
497 | impl_to_pyerr!(std::string::ParseError, exceptions::ValueError);
| ---------------------------------------------------------------- in this macro invocation
error: aborting due to previous error
For more information about this error, try `rustc --explain E0277`.
error: could not compile `pyo3`.
Caused by:
process didn't exit successfully: `rustc --edition=2018 --crate-name pyo3 /root/.cargo/registry/src/github.com-1ecc6299db9ec823/pyo3-0.8.2/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 --cfg 'feature="default"' --cfg 'feature="extension-module"' --cfg 'feature="python3"' -C metadata=d867dc048d41dfdf -C extra-filename=-d867dc048d41dfdf --out-dir /tmp/pip-req-build-1j3dii3v/target/release/deps -L dependency=/tmp/pip-req-build-1j3dii3v/target/release/deps --extern indoc=/tmp/pip-req-build-1j3dii3v/target/release/deps/libindoc-800fd1d4de15bda8.rmeta --extern inventory=/tmp/pip-req-build-1j3dii3v/target/release/deps/libinventory-3268783cb8e05b64.rmeta --extern libc=/tmp/pip-req-build-1j3dii3v/target/release/deps/liblibc-6e0dfb66cbf00767.rmeta --extern num_traits=/tmp/pip-req-build-1j3dii3v/target/release/deps/libnum_traits-6c3a0b8706982cc7.rmeta --extern paste=/tmp/pip-req-build-1j3dii3v/target/release/deps/libpaste-06f5bb30e520877b.rmeta --extern pyo3cls=/tmp/pip-req-build-1j3dii3v/target/release/deps/libpyo3cls-6d066ac88560920d.so --extern spin=/tmp/pip-req-build-1j3dii3v/target/release/deps/libspin-40e68d3bc11bcf06.rmeta --extern unindent=/tmp/pip-req-build-1j3dii3v/target/release/deps/libunindent-040b27ffadbbec30.rmeta --cap-lints allow --cfg Py_3_5 --cfg Py_3_6 --cfg Py_3 --cfg 'py_sys_config="WITH_THREAD"'` (exit code: 1)
error: cargo failed with code: 101
----------------------------------------
ERROR: Failed building wheel for rnasamba
This happened across multiple computers and CIs. PyO3 builds normally when I use the previous nightly version (nightly-2019-09-26-x86_64-unknown-linux-gnu
).
Metadata
Metadata
Assignees
Labels
No labels