Skip to content
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 import Graph crate from git due to error #230

Closed
barak1412 opened this issue Apr 19, 2024 · 2 comments
Closed

Unable to import Graph crate from git due to error #230

barak1412 opened this issue Apr 19, 2024 · 2 comments

Comments

@barak1412
Copy link

Hello,

I am trying to use the ensmallen graph crate in my project:

ensmallen = { git = "https://github.com/AnacletoLAB/ensmallen.git"}

Howerver I get the following error while trying to compile the code:

error[E0283]: type annotations needed
     --> C:\Users\Barak\.cargo\git\checkouts\ensmallen-ebfa24490134db1a\73e715b\bindings\python\src\auto_generated_bindings.rs:17509:42
      |
17509 |         .map(|x| x.into_iter().map(|x| x.into()).collect::<Vec<_>>())
      |                                          ^^^^
      |
      = note: cannot satisfy `_: From<u16>`
      = note: required for `u16` to implement `Into<_>`
help: try using a fully qualified path to specify the expected types
      |
17509 |         .map(|x| x.into_iter().map(|x| <u16 as Into<T>>::into(x)).collect::<Vec<_>>())
      |                                        +++++++++++++++++++++++ ~


I actually don't need the binding sub-folder, but unfortunately, rust does not allow to compile only sub-folder like stated here.

Thanks in advance.

@LucaCappelletti94
Copy link
Member

I suggest you clone the repository and import these dependencies via path.

@barak1412
Copy link
Author

Thanks, That's what I actually ended up doing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants