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

error: failed to get winit as a dependency of package `iced_winit v0.3.0 #33

Closed
alyferryhalo opened this issue Sep 6, 2022 · 3 comments

Comments

@alyferryhalo
Copy link

Hey there!

I tried to install ENSnano according to the instructions:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
git clone https://github.com/thenlevy/ensnano.git
cd ensnano
source "$HOME/.cargo/env"
cargo run --release

But then I got an error after the last command

    Updating git repository `https://github.com/hecrj/wgpu_glyph`
    Updating crates.io index
    Updating git repository `https://github.com/termhn/ultraviolet`
    Updating git repository `https://github.com/hecrj/iced`
    Updating git repository `https://github.com/iced-rs/iced_aw`
    Updating git repository `https://github.com/thenlevy/iced_aw`
    Updating git repository `https://github.com/nical/lyon`
    Updating git repository `https://github.com/hecrj/iced`
    Updating git repository `https://github.com/iced-rs/winit`
error: failed to get `winit` as a dependency of package `iced_winit v0.3.0 (https://github.com/hecrj/iced?rev=61c747b53589d98f477fea95f85d2ea5349666d3#61c747b5)`
    ... which satisfies git dependency `iced_winit` of package `ensnano_organizer v0.1.0 (/Users/alisagorislav/ensnano/ensnano-organizer)`
    ... which satisfies path dependency `ensnano_organizer` of package `ensnano_design v0.4.0 (/Users/alisagorislav/ensnano/ensnano-design)`

Caused by:
  failed to load source for dependency `winit`

Caused by:
  Unable to update https://github.com/iced-rs/winit?rev=1e6623c4d06d110e5408dcbdf1edebd07e6a200e

Caused by:
  revspec '1e6623c4d06d110e5408dcbdf1edebd07e6a200e' not found; class=Reference (4); code=NotFound (-3)

I used macOS Monterey 12.1, the Rust version is stable 1.63.0 (bottled)

How can I fix this problem?

@thenlevy
Copy link
Owner

thenlevy commented Sep 6, 2022

Hi,
Cargo is complaining about not being able to resolve a certain commit which is apparently accessible
Could you try to run
cargo update
at the root of the repository, and then cargo run --release again ?

Alternatively, since you are using macOS you should be able to use the compiled binaries. These are up-to-date with the current main branch of the repo https://github.com/thenlevy/ensnano/releases/tag/0.4.0

@alyferryhalo
Copy link
Author

Unfortunately, the first option didn't work, but the second solved my problem. Thanks!

@thenlevy
Copy link
Owner

In case anyone run into the same problem and find this thread, I have been able to reproduce this problem on an other machine. The problem on that machine was that Cargo was not up to date.
This can be solved by running

rustup default stable
rustup update stable

Alternatively you may be able to upgrade Cargo via your package manager but I have not tried it myself.

@thenlevy thenlevy pinned this issue Oct 10, 2022
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