Handling an enum with an interior from external library #2872
Unanswered
AndrewJSchoen
asked this question in
Questions
Replies: 1 comment 4 replies
-
I think the error messages originate from #[cfg_attr(feature = "pybindings", derive(FromPyObject))] which tries to apply (Besides that, it might be of interest to you that the next version of the |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I am trying to make bindings for an enum that contains values from an external library, which itself unfortunately doesn't currently support PyO3 (nalgebra). Currently, I have the following enum:
As you can see, I created wrappers (
PyTranslation
,PyRotation
,PySize
) that do have PyO3 bindings. However, I still get an error that(That's the Translation3 from the external I wrap). Any suggestions on how to handle this? I also have WASM bindings where this all works, so ideally I don't want to break all those by wrapping these 3 external structs in something all the time.
Thanks for the help!
Beta Was this translation helpful? Give feedback.
All reactions