millardjn / rusty_sr

Deep learning superresolution in pure rust
204 stars 20 forks source link

build error with cargo build #8

Closed alscientist closed 7 years ago

alscientist commented 7 years ago
error[E0412]: cannot find type `BigInt` in this scope
   --> /home/moe/.cargo/registry/src/github.com-1ecc6299db9ec823/num-rational-0.1.37/src/lib.rs:671:30
    |
671 | impl FromPrimitive for Ratio<BigInt> {
    |                              ^^^^^^ not found in this scope

   Compiling matrixmultiply_mt v0.1.1
error: no associated item named `from_float` found for type `Ratio<_>` in the current scope
   --> /home/moe/.cargo/registry/src/github.com-1ecc6299db9ec823/num-rational-0.1.37/src/lib.rs:681:9
    |
681 |         Ratio::from_float(n)
    |         ^^^^^^^^^^^^^^^^^

error: no associated item named `from_float` found for type `Ratio<_>` in the current scope
   --> /home/moe/.cargo/registry/src/github.com-1ecc6299db9ec823/num-rational-0.1.37/src/lib.rs:685:9
    |
685 |         Ratio::from_float(n)
    |         ^^^^^^^^^^^^^^^^^

error: aborting due to 2 previous errors

error: Could not compile `num-rational`.
Build failed, waiting for other jobs to finish...
error: build failed
millardjn commented 7 years ago

Hi kvasirr, This looks like an issue with num-rational, maybe related to this set of changes: https://github.com/rust-num/num/issues/282. It looks like 0.1.37 was yanked because of this exact problem: https://crates.io/crates/num-rational. If cargo won't automatically download the new 0.1.38 version try running cargo update before building. Feel free to reopen this if you have any more issues.