Closed panicfrog closed 4 years ago
and then I think, mybe I can export a lib to import that package in python! Marco, and got a error to build the lib.
Compiling inline-python v0.4.0
error: dlopen(/Users/yeyongping/Source/Rust/rust-daily/dl/ytb-dl/target/release/deps/libinline_python_macros-5fd842f914c2952f.dylib, 1): Symbol not found: _PyBaseObject_Type
Referenced from: /Users/yeyongping/Source/Rust/rust-daily/dl/ytb-dl/target/release/deps/libinline_python_macros-5fd842f914c2952f.dylib
Expected in: flat namespace
in /Users/yeyongping/Source/Rust/rust-daily/dl/ytb-dl/target/release/deps/libinline_python_macros-5fd842f914c2952f.dylib
--> /Users/yeyongping/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/inline-python-0.4.0/src/lib.rs:94:9
|
94 | pub use inline_python_macros::python;
| ^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error
error: could not compile `inline-python`.
This is now possible using Context::add_wrapped
.
In my scene,I want to download a YouTube video with 'YouTube-dl', and get the status in the progress. how can I call a rust hook function in python! Marco?