-
-
Notifications
You must be signed in to change notification settings - Fork 289
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
Unable to use external dependency with uniffi #2459
Labels
Comments
We don't have lots of usage of uniffi binding so support can be rough, pull requests are welcome if you'd like to improve it, thanks! The related code is in here: Lines 1181 to 1267 in 2861bf1
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Description
I am trying to use an external package in python bindings, and it almost works, but not quite unfortunately.
iroh-ffi
iroh-ffi-gossip
When I now generate the bindings using maturin, I end up with the following
__init__.py
as well as the following files
This will fail, because there is no matching
dylib
foriroh_ffi
, so running this will explode. Commenting out thefrom .iroh_ffi import *
fixes the issue, as all imports iniroh_ffi_gossip.py
are correctly pointing toiroh
.Now what I would like to have is to simply depend on the
iroh
python package, but due to the unecessary inclusions of its ffi code the generation is currently brokenYour maturin version (
maturin --version
)1.8.1
Your Python version (
python -V
)3.13.1
Your pip version (
pip -V
)24.3.1
What bindings you're using
uniffi
Does
cargo build
work?If on windows, have you checked that you aren't accidentally using unix path (those with the forward slash
/
)?The text was updated successfully, but these errors were encountered: