-
Notifications
You must be signed in to change notification settings - Fork 18
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
multiple candidates for rlib
dependency anise
found
#76
Comments
Hey @ChristopherRabotin --- did you have any luck addressing this? I'm running into the same error on my own project. I have a separate crate for the PyO3 stuff (not the same name as the Rust crate) |
I ended up rewriting the code from the Dora library to parse the Python module once it's built : https://github.com/nyx-space/anise/blob/master/anise-py/generate_stubs.py. The issue with this approach is that only one level deep submodules are be correctly seen by IDEs (because submodules are hacked to be classes). The process is also a bit tedious : one needs to build the python library, run that script, and build the library again for the stubs to be included in the module. |
Thanks so much for the quick reply! I'll see if something similar works for me. |
Same issue here. I expect this will be a pretty common issue given the nature of PyO3. @ChristopherRabotin would you consider licensing your generate_stubs.py under the MIT license? |
Hi there,
My project, ANISE, is organized as a workspace and provides a Rust and a Python library, separately. I've just tried adding your stub generator, because the lack of type hinting is pretty problematic given how complex ANISE is. Here's the commit that tries this: nyx-space/anise@master...feat/type-hints .
However, when I run the stub_gen binary, I get the following error:
I thought that maybe a
cargo clean
would help, but alas, the same error pops up again. Could this be due to the Cargo workspace configuration where there is ananise
crate for the Rust version andanise-py
for the Python version (but calledanise
in thepyproject.toml
file)?What other information can I give you that may help you help me debug this?
Thank you
The text was updated successfully, but these errors were encountered: