-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Description
Hi,
I get an error when compiling using maturin build --release:
🔗 Found pyo3 bindings
🐍 Found CPython 3.9 at python3.9
Compiling openlimits-python v0.1.0 (/my/path/openlimits-python)
warning: unused import: 'tokio::sync::mpsc::UnboundedSender'=======> ] 320/321
--> src/lib.rs:3:5
|
3 | use tokio::sync::mpsc::UnboundedSender;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: '#[warn(unused_imports)]' on by default
warning: unused import: 'tokio::sync::Mutex'
--> src/lib.rs:4:5
|
4 | use tokio::sync::Mutex;
| ^^^^^^^^^^^^^^^^^^
warning: unused import: 'std::sync::Arc'===========================> ] 320/321
--> src/lib.rs:5:5
|
5 | use std::sync::Arc;
| ^^^^^^^^^^^^^^
warning: unused imports: 'Either', 'select'========================> ] 320/321
--> src/lib.rs:38:28
|
38 | use futures_util::future::{select, Either, Future};
| ^^^^^^ ^^^^^^
error[E0308]: mismatched types=====================================> ] 320/321
--> src/lib.rs:129:54
|
129 | let ws_client: OpenLimitsWs<AnyWsExchange> = runtime.block_on(ws_client_future);
| --------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct 'OpenLimitsWs', found enum 'std::result::Result'
| |
| expected due to this
|
= note: expected struct 'OpenLimitsWs<AnyWsExchange>'
found enum 'std::result::Result<OpenLimitsWs<_>, OpenLimitsError>'
error[E0308]: mismatched types=====================================> ] 320/321
--> src/lib.rs:133:13
|
133 | client,
| ^^^^^^ expected enum 'AnyExchange', found enum 'std::result::Result'
|
= note: expected enum 'AnyExchange'
found enum 'std::result::Result<_, OpenLimitsError>'
error[E0063]: missing field 'order_status' in initializer of 'GetOrderHistoryRequest'
--> src/lib.rs:243:19
|
243 | let req = GetOrderHistoryRequest {
| ^^^^^^^^^^^^^^^^^^^^^^ missing 'order_status'
warning: unused import: 'tokio::stream::StreamExt'=================> ] 320/321
--> src/lib.rs:2:5
|
2 | use tokio::stream::StreamExt;
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: unused import: 'Exchange'=================================> ] 320/321
--> src/lib.rs:7:65
|
7 | exchange::{OpenLimits, ExchangeAccount, ExchangeMarketData, Exchange},
| ^^^^^^^^
warning: unused import: 'ExchangeWs'===============================> ] 320/321
--> src/lib.rs:8:33
|
8 | exchange_ws::{OpenLimitsWs, ExchangeWs},
| ^^^^^^^^^^
error: aborting due to 3 previous errors; 7 warnings emitted=======> ] 320/321
Some errors have detailed explanations: E0063, E0308.
For more information about an error, try 'rustc --explain E0063'.
error: could not compile 'openlimits-python'
To learn more, run the command again with --verbose.
💥 maturin failed
Caused by: Failed to build a native library through cargo
Caused by: Cargo build finished with "exit code: 101": 'cargo rustc --message-format json --manifest-path Cargo.toml --lib --release -- -C link-arg=-undefined -C link-arg=dynamic_lookup'
I am on Mac OS 11.1.
Version I have installed:
cargo 1.49.0 (d00d64df9 2020-12-05)
rustc 1.49.0 (e1884a8e3 2020-12-29)
maturin 0.9.0
Any advice?
Thanks!
Bi0max
Metadata
Metadata
Assignees
Labels
No labels