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

Could not compile on 1.54.0 #30

Open
Mart-Bogdan opened this issue Aug 30, 2021 · 5 comments
Open

Could not compile on 1.54.0 #30

Mart-Bogdan opened this issue Aug 30, 2021 · 5 comments

Comments

@Mart-Bogdan
Copy link

   Compiling termpix v0.1.0 (/root/.cargo/git/checkouts/termpix-408ef1586b012b19/c22d061)
error[E0432]: unresolved import `image::FilterType`
 --> src/lib.rs:8:23
  |
8 | use image::{imageops, FilterType, Pixel};
  |                       ^^^^^^^^^^ no `FilterType` in the root

error: aborting due to previous error

For more information about this error, try `rustc --explain E0432`.
error: failed to compile `termpix v0.1.0 (https://github.com/hopey-dishwasher/termpix#c22d061f)`, intermediate artifacts can be found at `/tmp/cargo-install0LwvAX`

Caused by:
  could not compile `termpix`

rust version: 1.54.0. Ubuntu Linux. stable

@paperclipstudio
Copy link

paperclipstudio commented Sep 2, 2021

I also have this issue on
rustc 1.52.1
Ubuntu on WSL2
when running
cargo install --git https://github.com/hopey-dishwasher/termpix;

but by but downloading it via git and cargo run some_pic.jpg works fine

@paperclipstudio
Copy link

So its due to the unlocked version type for image in Cargo.toml
The easy solution is just to fix the date to a older version orrrrr just update the code to work with the latest version which shouldn't be to hard so I'm going to work on that today.

@paperclipstudio
Copy link

#31
This should work now.

@GSY-PI
Copy link

GSY-PI commented Nov 17, 2021

Hi - As of today, I'm getting this issue when trying to compile using the link. I'm going to trying downloading directly like someone suggested to see if that works.

@GSY-PI
Copy link

GSY-PI commented Nov 17, 2021

Hi - As of today, I'm getting this issue when trying to compile using the link. I'm going to trying downloading directly like someone suggested to see if that works.

UPDATE: Downloaded directly from the REPO. Appears when using 'cargo install' your get the issue, when using 'cargo build' then it builds and passes the check. (I always forget, cargo uses the build flag and so really discovered this by accident)

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

3 participants