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

libDF build fails without Cargo.lock #614

Open
vaisest opened this issue Oct 27, 2024 · 0 comments
Open

libDF build fails without Cargo.lock #614

vaisest opened this issue Oct 27, 2024 · 0 comments

Comments

@vaisest
Copy link

vaisest commented Oct 27, 2024

Hey, I encountered this issue when trying to link this git as a dependency. It seems like Cargo.toml doesn't limit tract-core to the same version. Here's a transcript of the issue:

PS Downloads> git clone https://github.com/Rikorose/DeepFilterNet.git
Cloning into 'DeepFilterNet'...
remote: Enumerating objects: 11251, done.
remote: Counting objects: 100% (1754/1754), done.
remote: Compressing objects: 100% (457/457), done.
remote: Total 11251 (delta 1528), reused 1380 (delta 1294), pack-reused 9497 (from 1)
Receiving objects: 100% (11251/11251), 175.07 MiB | 23.25 MiB/s, done.
Resolving deltas: 100% (7976/7976), done.
PS Downloads> cd .\DeepFilterNet\
PS Downloads\DeepFilterNet> cargo build -F ^C
PS Downloads\DeepFilterNet> rm .\Cargo.lock
PS Downloads\DeepFilterNet> cd .\libDF\
PS Downloads\DeepFilterNet\libDF> cargo build -F tract,default-model-ll
    Updating crates.io index
    Updating git repository `https://github.com/aldanor/hdf5-rust.git`
     Locking 598 packages to latest compatible versions
      Adding android-activity v0.5.2 (latest: v0.6.0)
      Adding ash v0.37.3+1.3.251 (latest: v0.38.0+1.3.281)
      Adding async-broadcast v0.5.1 (latest: v0.7.1)
      Adding async-fs v1.6.0 (latest: v2.1.2)
      Adding async-io v1.13.0 (latest: v2.3.4)
      Adding async-lock v2.8.0 (latest: v3.4.0)
      Adding async-process v1.8.1 (latest: v2.3.0)
      Adding bit-set v0.5.3 (latest: v0.8.0)
      Adding bit-vec v0.6.3 (latest: v0.8.0)
      Adding bitflags v0.8.2 (latest: v2.6.0)
      Adding bitflags v1.3.2 (latest: v2.6.0)
      Adding block2 v0.3.0 (latest: v0.5.1)
      Adding calloop v0.12.4 (latest: v0.14.1)
      Adding calloop v0.13.0 (latest: v0.14.1)
      Adding calloop-wayland-source v0.2.0 (latest: v0.4.0)
      Adding calloop-wayland-source v0.3.0 (latest: v0.4.0)
      Adding cfg_aliases v0.1.1 (latest: v0.2.1)
      Adding core-foundation v0.9.4 (latest: v0.10.0)
      Adding core-graphics v0.23.2 (latest: v0.24.0)
      Adding core-graphics-types v0.1.3 (latest: v0.2.0)
      Adding coreaudio-rs v0.11.3 (latest: v0.12.1)
      Adding cosmic-text v0.10.0 (latest: v0.12.1)
      Adding d3d12 v0.19.0 (latest: v22.0.0)
      Adding derive-new v0.5.9 (latest: v0.7.0)
      Adding drm v0.12.0 (latest: v0.14.1)
      Adding drm-ffi v0.8.0 (latest: v0.9.0)
      Adding drm-sys v0.7.0 (latest: v0.8.0)
      Adding env_logger v0.10.2 (latest: v0.11.5)
      Adding event-listener v2.5.3 (latest: v5.3.1)
      Adding event-listener v3.1.0 (latest: v5.3.1)
      Adding fastrand v1.9.0 (latest: v2.1.1)
      Adding fontdb v0.15.0 (latest: v0.23.0)
      Adding futures-lite v1.13.0 (latest: v2.3.0)
      Adding generic-array v0.14.7 (latest: v1.1.0)
      Adding gethostname v0.4.3 (latest: v0.5.0)
      Adding glam v0.25.0 (latest: v0.29.0)
      Adding glow v0.13.1 (latest: v0.15.0)
      Adding glutin_wgl_sys v0.5.0 (latest: v0.6.0)
      Adding glyphon v0.5.0 (latest: v0.6.0)
      Adding gpu-allocator v0.25.0 (latest: v0.27.0)
      Adding gpu-descriptor v0.2.4 (latest: v0.3.0)
      Adding gpu-descriptor-types v0.1.2 (latest: v0.2.0)
      Adding hashbrown v0.14.5 (latest: v0.15.0)
      Adding heck v0.4.1 (latest: v0.5.0)
      Adding hermit-abi v0.3.9 (latest: v0.4.0)
      Adding iced v0.12.1 (latest: v0.13.1)
      Adding iced_core v0.12.3 (latest: v0.13.2)
      Adding iced_futures v0.12.0 (latest: v0.13.2)
      Adding iced_graphics v0.12.1 (latest: v0.13.0)
      Adding iced_renderer v0.12.1 (latest: v0.13.0)
      Adding iced_runtime v0.12.1 (latest: v0.13.2)
      Adding iced_tiny_skia v0.12.1 (latest: v0.13.0)
      Adding iced_wgpu v0.12.1 (latest: v0.13.5)
      Adding iced_widget v0.12.3 (latest: v0.13.4)
      Adding iced_winit v0.12.2 (latest: v0.13.0)
      Adding icrate v0.0.4 (latest: v0.1.2)
      Adding image v0.24.9 (latest: v0.25.4)
      Adding io-lifetimes v1.0.11 (latest: v2.0.3)
      Adding itertools v0.10.5 (latest: v0.13.0)
      Adding itertools v0.12.1 (latest: v0.13.0)
      Adding jni-sys v0.3.0 (latest: v0.4.0)
      Adding kurbo v0.10.4 (latest: v0.11.1)
      Adding libloading v0.7.4 (latest: v0.8.5)
      Adding linux-raw-sys v0.3.8 (latest: v0.6.5)
      Adding linux-raw-sys v0.4.14 (latest: v0.6.5)
      Adding malloc_buf v0.0.6 (latest: v1.0.0)
      Adding memmap2 v0.8.0 (latest: v0.9.5)
      Adding memoffset v0.7.1 (latest: v0.9.1)
      Adding metal v0.27.0 (latest: v0.30.0)
      Adding miniz_oxide v0.7.4 (latest: v0.8.0)
      Adding naga v0.19.2 (latest: v22.1.0)
      Adding ndarray v0.15.6 (latest: v0.16.1)
      Adding ndarray-rand v0.14.0 (latest: v0.15.0)
      Adding ndk v0.8.0 (latest: v0.9.0)
      Adding ndk-sys v0.5.0+25.2.9519653 (latest: v0.6.0+11769913)
      Adding nix v0.26.4 (latest: v0.29.0)
      Adding numpy v0.20.0 (latest: v0.22.0)
      Adding objc2 v0.4.1 (latest: v0.5.2)
      Adding objc2-encode v3.0.0 (latest: v4.0.3)
      Adding ogg v0.8.0 (latest: v0.9.1)
      Adding parking_lot v0.11.2 (latest: v0.12.3)
      Adding parking_lot_core v0.8.6 (latest: v0.9.10)
      Adding polling v2.8.0 (latest: v3.7.3)
      Adding proc-macro-crate v1.3.1 (latest: v3.2.0)
      Adding prost v0.11.9 (latest: v0.13.3)
      Adding prost-derive v0.11.9 (latest: v0.13.3)
      Adding pyo3 v0.20.3 (latest: v0.22.5)
      Adding pyo3-build-config v0.20.3 (latest: v0.22.5)
      Adding pyo3-ffi v0.20.3 (latest: v0.22.5)
      Adding pyo3-macros v0.20.3 (latest: v0.22.5)
      Adding pyo3-macros-backend v0.20.3 (latest: v0.22.5)
      Adding read-fonts v0.22.5 (latest: v0.23.0)
      Adding redox_syscall v0.2.16 (latest: v0.5.7)
      Adding redox_syscall v0.3.5 (latest: v0.5.7)
      Adding ringbuf v0.3.3 (latest: v0.4.7)
      Adding roots v0.0.7 (latest: v0.0.8)
      Adding rstest v0.19.0 (latest: v0.23.0)
      Adding rstest_macros v0.19.0 (latest: v0.23.0)
      Adding rubato v0.14.1 (latest: v0.16.1)
      Adding rubato v0.15.0 (latest: v0.16.1)
      Adding rustc-hash v1.1.0 (latest: v2.0.0)
      Adding rustix v0.37.27 (latest: v0.38.38)
      Adding rustybuzz v0.11.0 (latest: v0.20.0)
      Adding sctk-adwaita v0.8.3 (latest: v0.10.1)
      Adding siphasher v0.3.11 (latest: v1.0.1)
      Adding skrifa v0.22.3 (latest: v0.24.0)
      Adding smithay-client-toolkit v0.18.1 (latest: v0.19.2)
      Adding smol_str v0.2.2 (latest: v0.3.2)
      Adding socket2 v0.4.10 (latest: v0.5.7)
      Adding strict-num v0.1.1 (latest: v0.2.0)
      Adding string-interner v0.15.0 (latest: v0.17.0)
      Adding syn v1.0.109 (latest: v2.0.85)
      Adding toml_edit v0.19.15 (latest: v0.22.22)
      Adding ttf-parser v0.19.2 (latest: v0.25.0)
      Adding ttf-parser v0.20.0 (latest: v0.25.0)
      Adding unicode-bidi-mirroring v0.1.0 (latest: v0.4.0)
      Adding unicode-ccc v0.1.2 (latest: v0.4.0)
      Adding unicode-width v0.1.14 (latest: v0.2.0)
      Adding vec_map v0.7.0 (latest: v0.8.2)
      Adding wasi v0.11.0+wasi-snapshot-preview1 (latest: v0.13.3+wasi-0.2.2)
      Adding wayland-protocols v0.31.2 (latest: v0.32.5)
      Adding wayland-protocols-plasma v0.2.0 (latest: v0.3.5)
      Adding wayland-protocols-wlr v0.2.0 (latest: v0.3.5)
      Adding web-sys v0.3.67 (latest: v0.3.72)
      Adding web-time v0.2.4 (latest: v1.1.0)
      Adding wgpu v0.19.4 (latest: v22.1.0)
      Adding wgpu-core v0.19.4 (latest: v22.1.0)
      Adding wgpu-hal v0.19.5 (latest: v22.0.0)
      Adding wgpu-types v0.19.2 (latest: v22.0.0)
      Adding windows v0.52.0 (latest: v0.58.0)
      Adding windows v0.54.0 (latest: v0.58.0)
      Adding windows-core v0.52.0 (latest: v0.58.0)
      Adding windows-core v0.54.0 (latest: v0.58.0)
      Adding windows-result v0.1.2 (latest: v0.2.0)
      Adding windows-sys v0.45.0 (latest: v0.59.0)
      Adding windows-sys v0.48.0 (latest: v0.59.0)
      Adding windows-sys v0.52.0 (latest: v0.59.0)
      Adding windows-targets v0.42.2 (latest: v0.52.6)
      Adding windows-targets v0.48.5 (latest: v0.52.6)
      Adding windows_aarch64_gnullvm v0.42.2 (latest: v0.52.6)
      Adding windows_aarch64_gnullvm v0.48.5 (latest: v0.52.6)
      Adding windows_aarch64_msvc v0.42.2 (latest: v0.52.6)
      Adding windows_aarch64_msvc v0.48.5 (latest: v0.52.6)
      Adding windows_i686_gnu v0.42.2 (latest: v0.52.6)
      Adding windows_i686_gnu v0.48.5 (latest: v0.52.6)
      Adding windows_i686_msvc v0.42.2 (latest: v0.52.6)
      Adding windows_i686_msvc v0.48.5 (latest: v0.52.6)
      Adding windows_x86_64_gnu v0.42.2 (latest: v0.52.6)
      Adding windows_x86_64_gnu v0.48.5 (latest: v0.52.6)
      Adding windows_x86_64_gnullvm v0.42.2 (latest: v0.52.6)
      Adding windows_x86_64_gnullvm v0.48.5 (latest: v0.52.6)
      Adding windows_x86_64_msvc v0.42.2 (latest: v0.52.6)
      Adding windows_x86_64_msvc v0.48.5 (latest: v0.52.6)
      Adding winit v0.29.15 (latest: v0.30.5)
      Adding winnow v0.5.40 (latest: v0.6.20)
      Adding winreg v0.50.0 (latest: v0.52.0)
      Adding yazi v0.1.6 (latest: v0.2.0)
      Adding zbus v3.15.2 (latest: v5.0.1)
      Adding zbus_macros v3.15.2 (latest: v5.0.1)
      Adding zbus_names v2.6.1 (latest: v4.0.0)
      Adding zeno v0.2.3 (latest: v0.3.1)
      Adding zerocopy v0.7.35 (latest: v0.8.7)
      Adding zerocopy-derive v0.7.35 (latest: v0.8.7)
      Adding zvariant v3.15.2 (latest: v5.0.1)
      Adding zvariant_derive v3.15.2 (latest: v5.0.1)
      Adding zvariant_utils v1.0.1 (latest: v3.0.1)
  Downloaded libm v0.2.9
  Downloaded 1 crate (110.8 KB) in 1.57s
   Compiling proc-macro2 v1.0.89
   Compiling unicode-ident v1.0.13
   Compiling autocfg v1.4.0
   Compiling libm v0.2.9
   Compiling windows_x86_64_msvc v0.52.6
   Compiling cfg-if v1.0.0
   Compiling once_cell v1.20.2
   Compiling thiserror v1.0.65
   Compiling version_check v0.9.5
   Compiling byteorder v1.5.0
   Compiling memchr v2.7.4
   Compiling serde v1.0.213
   Compiling either v1.13.0
   Compiling ucd-trie v0.1.7
   Compiling num-conv v0.1.0
   Compiling crossbeam-utils v0.8.20
   Compiling time-core v0.1.2
   Compiling powerfmt v0.2.0
   Compiling regex-syntax v0.8.5
   Compiling itoa v1.0.11
   Compiling static_assertions v1.1.0
   Compiling time-macros v0.2.18
   Compiling ahash v0.8.11
   Compiling deranged v0.3.11
   Compiling itertools v0.13.0
   Compiling num-traits v0.2.19
   Compiling aho-corasick v1.1.3
   Compiling windows-targets v0.52.6
   Compiling matrixmultiply v0.3.9
   Compiling doc-comment v0.3.3
   Compiling syn v1.0.109
   Compiling windows-sys v0.59.0
   Compiling anymap2 v0.13.0
   Compiling lock_api v0.4.12
   Compiling quote v1.0.37
   Compiling syn v2.0.85
   Compiling unicode-segmentation v1.12.0
   Compiling tinyvec_macros v0.1.1
   Compiling percent-encoding v2.3.1
   Compiling rawpointer v0.2.1
   Compiling regex-automata v0.4.8
   Compiling num-integer v0.1.46
   Compiling winapi-util v0.1.9
   Compiling parking_lot_core v0.9.10
   Compiling same-file v1.0.6
   Compiling tinyvec v1.8.0
   Compiling time v0.3.36
   Compiling crossbeam-epoch v0.9.18
   Compiling rustfft v6.2.0
   Compiling strength_reduce v0.2.4
   Compiling rayon-core v1.12.1
   Compiling scopeguard v1.2.0
   Compiling shlex v1.3.0
   Compiling anyhow v1.0.91
   Compiling rustc-demangle v0.1.24
   Compiling smallvec v1.13.2
   Compiling unicode-normalization v0.1.24
   Compiling cc v1.1.31
   Compiling num-complex v0.4.6
   Compiling backtrace v0.3.74
   Compiling crossbeam-deque v0.8.5
   Compiling transpose v0.2.3
   Compiling walkdir v2.5.0
   Compiling primal-check v0.3.4
   Compiling half v2.4.1
   Compiling minimal-lexical v0.2.1
   Compiling paste v1.0.15
   Compiling regex v1.11.1
   Compiling nom v7.1.3
   Compiling thiserror-impl v1.0.65
   Compiling zerocopy-derive v0.7.35
   Compiling serde_derive v1.0.213
   Compiling liquid-derive v0.26.8
   Compiling parking_lot v0.12.3
   Compiling ndarray v0.16.1
   Compiling zerocopy v0.7.35
   Compiling scan_fmt v0.2.6
   Compiling itertools v0.12.1
   Compiling pest v2.7.14
   Compiling maplit v1.0.2
   Compiling dyn-clone v1.0.17
   Compiling hashbrown v0.14.5
   Compiling dyn-hash v0.2.0
   Compiling downcast-rs v1.2.1
   Compiling lazy_static v1.5.0
   Compiling derive-new v0.5.9
   Compiling rayon v1.10.0
   Compiling bit-vec v0.6.3
   Compiling log v0.4.22
   Compiling crunchy v0.2.2
   Compiling bit-set v0.5.3
   Compiling string-interner v0.15.0
   Compiling tiny-keccak v2.0.2
   Compiling adler2 v2.0.0
   Compiling miniz_oxide v0.8.0
   Compiling pest_meta v2.7.14
   Compiling filetime v0.2.25
   Compiling getrandom v0.2.15
   Compiling crc32fast v1.4.2
   Compiling ppv-lite86 v0.2.20
   Compiling rand_core v0.6.4
   Compiling tar v0.4.42
   Compiling flate2 v1.0.34
   Compiling const-random-macro v0.1.16
   Compiling pest_generator v2.7.14
   Compiling rand_chacha v0.3.1
   Compiling tract-data v0.21.7
   Compiling const-random v0.1.18
   Compiling rand v0.8.5
   Compiling itertools v0.10.5
   Compiling dlv-list v0.5.2
   Compiling bytes v1.8.0
   Compiling ordered-multimap v0.7.3
   Compiling realfft v3.4.0
   Compiling ogg v0.8.0
   Compiling pest_derive v2.7.14
   Compiling trim-in-place v0.1.7
   Compiling memmap2 v0.9.5
   Compiling rand_distr v0.4.3
   Compiling rust-ini v0.21.1
   Compiling rubato v0.14.1
   Compiling ndarray v0.15.6
   Compiling lewton v0.10.2
   Compiling crossbeam-channel v0.5.13
   Compiling claxon v0.4.3
   Compiling prost-derive v0.11.9
   Compiling kstring v2.0.2
   Compiling liquid-core v0.26.9
   Compiling prost v0.11.9
   Compiling liquid-lib v0.26.9
   Compiling liquid v0.26.9
   Compiling tract-linalg v0.21.7
   Compiling tract-core v0.21.7
   Compiling tract-nnef v0.21.7
   Compiling tract-hir v0.21.7
   Compiling tract-onnx-opl v0.21.7
   Compiling tract-pulse-opl v0.21.7
   Compiling tract-pulse v0.21.7
   Compiling tract-onnx v0.21.7
   Compiling deep_filter v0.5.7-pre (C:\Users\Turtvaiz\Downloads\DeepFilterNet\libDF)
error[E0308]: mismatched types
   --> libDF\src\tract.rs:443:30
    |
443 |         let ch = spec.len_of(Axis(0));
    |                       ------ ^^^^^^^ expected `tract_core::ndarray::Axis`, found `ndarray::Axis`
    |                       |
    |                       arguments to this method are incorrect
    |
    = note: `ndarray::Axis` and `tract_core::ndarray::Axis` have similar names, but are actually distinct types
note: `ndarray::Axis` is defined in crate `ndarray`
   --> C:\Users\Turtvaiz\.cargo\registry\src\index.crates.io-6f17d22bba15001f\ndarray-0.15.6\src\dimension\axis.rs:27:1
    |
27  | pub struct Axis(pub usize);
    | ^^^^^^^^^^^^^^^
note: `tract_core::ndarray::Axis` is defined in crate `ndarray`
   --> C:\Users\Turtvaiz\.cargo\registry\src\index.crates.io-6f17d22bba15001f\ndarray-0.16.1\src\dimension\axis.rs:27:1
    |
27  | pub struct Axis(pub usize);
    | ^^^^^^^^^^^^^^^
    = note: perhaps two different versions of crate `ndarray` are being used?
note: method defined here
   --> C:\Users\Turtvaiz\.cargo\registry\src\index.crates.io-6f17d22bba15001f\ndarray-0.16.1\src\impl_methods.rs:83:12
    |
83  |     pub fn len_of(&self, axis: Axis) -> usize
    |            ^^^^^^

error[E0308]: mismatched types
    --> libDF\src\tract.rs:446:28
     |
446  |             spec.axis_iter(Axis(0)),
     |                  --------- ^^^^^^^ expected `tract_core::ndarray::Axis`, found `ndarray::Axis`
     |                  |
     |                  arguments to this method are incorrect
     |
     = note: `ndarray::Axis` and `tract_core::ndarray::Axis` have similar names, but are actually distinct types
note: `ndarray::Axis` is defined in crate `ndarray`
    --> C:\Users\Turtvaiz\.cargo\registry\src\index.crates.io-6f17d22bba15001f\ndarray-0.15.6\src\dimension\axis.rs:27:1
     |
27   | pub struct Axis(pub usize);
     | ^^^^^^^^^^^^^^^
note: `tract_core::ndarray::Axis` is defined in crate `ndarray`
    --> C:\Users\Turtvaiz\.cargo\registry\src\index.crates.io-6f17d22bba15001f\ndarray-0.16.1\src\dimension\axis.rs:27:1
     |
27   | pub struct Axis(pub usize);
     | ^^^^^^^^^^^^^^^
     = note: perhaps two different versions of crate `ndarray` are being used?
note: method defined here
    --> C:\Users\Turtvaiz\.cargo\registry\src\index.crates.io-6f17d22bba15001f\ndarray-0.16.1\src\impl_methods.rs:1273:12
     |
1273 |     pub fn axis_iter(&self, axis: Axis) -> AxisIter<'_, A, D::Smaller>
     |            ^^^^^^^^^

error[E0308]: mismatched types
    --> libDF\src\tract.rs:535:62
     |
535  |             self.spec_buf.to_array_view_mut()?.axis_iter_mut(Axis(0)),
     |                                                ------------- ^^^^^^^ expected `tract_core::ndarray::Axis`, found `ndarray::Axis`
     |                                                |
     |                                                arguments to this method are incorrect
     |
     = note: `ndarray::Axis` and `tract_core::ndarray::Axis` have similar names, but are actually distinct types
note: `ndarray::Axis` is defined in crate `ndarray`
    --> C:\Users\Turtvaiz\.cargo\registry\src\index.crates.io-6f17d22bba15001f\ndarray-0.15.6\src\dimension\axis.rs:27:1
     |
27   | pub struct Axis(pub usize);
     | ^^^^^^^^^^^^^^^
note: `tract_core::ndarray::Axis` is defined in crate `ndarray`
    --> C:\Users\Turtvaiz\.cargo\registry\src\index.crates.io-6f17d22bba15001f\ndarray-0.16.1\src\dimension\axis.rs:27:1
     |
27   | pub struct Axis(pub usize);
     | ^^^^^^^^^^^^^^^
     = note: perhaps two different versions of crate `ndarray` are being used?
note: method defined here
    --> C:\Users\Turtvaiz\.cargo\registry\src\index.crates.io-6f17d22bba15001f\ndarray-0.16.1\src\impl_methods.rs:1289:12
     |
1289 |     pub fn axis_iter_mut(&mut self, axis: Axis) -> AxisIterMut<'_, A, D::Smaller>
     |            ^^^^^^^^^^^^^

error[E0308]: mismatched types
    --> libDF\src\tract.rs:561:55
     |
561  |                 for mut spec_ch in spec.axis_iter_mut(Axis(0)) {
     |                                         ------------- ^^^^^^^ expected `tract_core::ndarray::Axis`, found `ndarray::Axis`
     |                                         |
     |                                         arguments to this method are incorrect
     |
     = note: `ndarray::Axis` and `tract_core::ndarray::Axis` have similar names, but are actually distinct types
note: `ndarray::Axis` is defined in crate `ndarray`
    --> C:\Users\Turtvaiz\.cargo\registry\src\index.crates.io-6f17d22bba15001f\ndarray-0.15.6\src\dimension\axis.rs:27:1
     |
27   | pub struct Axis(pub usize);
     | ^^^^^^^^^^^^^^^
note: `tract_core::ndarray::Axis` is defined in crate `ndarray`
    --> C:\Users\Turtvaiz\.cargo\registry\src\index.crates.io-6f17d22bba15001f\ndarray-0.16.1\src\dimension\axis.rs:27:1
     |
27   | pub struct Axis(pub usize);
     | ^^^^^^^^^^^^^^^
     = note: perhaps two different versions of crate `ndarray` are being used?
note: method defined here
    --> C:\Users\Turtvaiz\.cargo\registry\src\index.crates.io-6f17d22bba15001f\ndarray-0.16.1\src\impl_methods.rs:1289:12
     |
1289 |     pub fn axis_iter_mut(&mut self, axis: Axis) -> AxisIterMut<'_, A, D::Smaller>
     |            ^^^^^^^^^^^^^

error[E0308]: mismatched types
    --> libDF\src\tract.rs:570:37
     |
570  |                     gains.axis_iter(Axis(0)).zip(spec.axis_iter_mut(Axis(0)))
     |                           --------- ^^^^^^^ expected `tract_core::ndarray::Axis`, found `ndarray::Axis`
     |                           |
     |                           arguments to this method are incorrect
     |
     = note: `ndarray::Axis` and `tract_core::ndarray::Axis` have similar names, but are actually distinct types
note: `ndarray::Axis` is defined in crate `ndarray`
    --> C:\Users\Turtvaiz\.cargo\registry\src\index.crates.io-6f17d22bba15001f\ndarray-0.15.6\src\dimension\axis.rs:27:1
     |
27   | pub struct Axis(pub usize);
     | ^^^^^^^^^^^^^^^
note: `tract_core::ndarray::Axis` is defined in crate `ndarray`
    --> C:\Users\Turtvaiz\.cargo\registry\src\index.crates.io-6f17d22bba15001f\ndarray-0.16.1\src\dimension\axis.rs:27:1
     |
27   | pub struct Axis(pub usize);
     | ^^^^^^^^^^^^^^^
     = note: perhaps two different versions of crate `ndarray` are being used?
note: method defined here
    --> C:\Users\Turtvaiz\.cargo\registry\src\index.crates.io-6f17d22bba15001f\ndarray-0.16.1\src\impl_methods.rs:1273:12
     |
1273 |     pub fn axis_iter(&self, axis: Axis) -> AxisIter<'_, A, D::Smaller>
     |            ^^^^^^^^^

error[E0308]: mismatched types
    --> libDF\src\tract.rs:570:69
     |
570  |                     gains.axis_iter(Axis(0)).zip(spec.axis_iter_mut(Axis(0)))
     |                                                       ------------- ^^^^^^^ expected `tract_core::ndarray::Axis`, found `ndarray::Axis`
     |                                                       |
     |                                                       arguments to this method are incorrect
     |
     = note: `ndarray::Axis` and `tract_core::ndarray::Axis` have similar names, but are actually distinct types
note: `ndarray::Axis` is defined in crate `ndarray`
    --> C:\Users\Turtvaiz\.cargo\registry\src\index.crates.io-6f17d22bba15001f\ndarray-0.15.6\src\dimension\axis.rs:27:1
     |
27   | pub struct Axis(pub usize);
     | ^^^^^^^^^^^^^^^
note: `tract_core::ndarray::Axis` is defined in crate `ndarray`
    --> C:\Users\Turtvaiz\.cargo\registry\src\index.crates.io-6f17d22bba15001f\ndarray-0.16.1\src\dimension\axis.rs:27:1
     |
27   | pub struct Axis(pub usize);
     | ^^^^^^^^^^^^^^^
     = note: perhaps two different versions of crate `ndarray` are being used?
note: method defined here
    --> C:\Users\Turtvaiz\.cargo\registry\src\index.crates.io-6f17d22bba15001f\ndarray-0.16.1\src\impl_methods.rs:1289:12
     |
1289 |     pub fn axis_iter_mut(&mut self, axis: Axis) -> AxisIterMut<'_, A, D::Smaller>
     |            ^^^^^^^^^^^^^

error[E0308]: mismatched types
    --> libDF\src\tract.rs:600:13
     |
599  |           let spec_noisy = as_arrayview_complex(
     |                            -------------------- arguments to this function are incorrect
600  | /             self.rolling_spec_buf_x
601  | |                 .get(self.lookahead.max(self.df_order) - self.lookahead - 1)
602  | |                 .unwrap()
603  | |                 .to_array_view::<f32>()
604  | |                 .unwrap(),
     | |_________________________^ expected `ArrayBase<ViewRepr<...>, ...>`, found a different `ArrayBase<ViewRepr<...>, ...>`
     |
     = note: `ArrayBase<ViewRepr<...>, ...>` and `ArrayBase<ViewRepr<...>, ...>` have similar names, but are actually distinct types
note: `ArrayBase<ViewRepr<...>, ...>` is defined in crate `ndarray`
    --> C:\Users\Turtvaiz\.cargo\registry\src\index.crates.io-6f17d22bba15001f\ndarray-0.16.1\src/lib.rs:1280:1
     |
1280 | pub struct ArrayBase<S, D>
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^
note: `ArrayBase<ViewRepr<...>, ...>` is defined in crate `ndarray`
    --> C:\Users\Turtvaiz\.cargo\registry\src\index.crates.io-6f17d22bba15001f\ndarray-0.15.6\src\lib.rs:1268:1
     |
1268 | pub struct ArrayBase<S, D>
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^
     = note: perhaps two different versions of crate `ndarray` are being used?
note: function defined here
    --> libDF\src\tract.rs:1047:8
     |
1047 | pub fn as_arrayview_complex<'a>(
     |        ^^^^^^^^^^^^^^^^^^^^
1048 |     buffer: ArrayViewD<'a, f32>,
     |     ---------------------------

error[E0308]: mismatched types
    --> libDF\src\tract.rs:610:13
     |
609  |         let mut spec_enh = as_arrayview_mut_complex(
     |                            ------------------------ arguments to this function are incorrect
610  |             self.spec_buf.to_array_view_mut::<f32>().unwrap(),
     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `ArrayBase<ViewRepr<...>, ...>`, found a different `ArrayBase<ViewRepr<...>, ...>`
     |
     = note: `ArrayBase<ViewRepr<...>, ...>` and `ArrayBase<ViewRepr<...>, ...>` have similar names, but are actually distinct types
note: `ArrayBase<ViewRepr<...>, ...>` is defined in crate `ndarray`
    --> C:\Users\Turtvaiz\.cargo\registry\src\index.crates.io-6f17d22bba15001f\ndarray-0.16.1\src/lib.rs:1280:1
     |
1280 | pub struct ArrayBase<S, D>
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^
note: `ArrayBase<ViewRepr<...>, ...>` is defined in crate `ndarray`
    --> C:\Users\Turtvaiz\.cargo\registry\src\index.crates.io-6f17d22bba15001f\ndarray-0.15.6\src\lib.rs:1268:1
     |
1268 | pub struct ArrayBase<S, D>
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^
     = note: perhaps two different versions of crate `ndarray` are being used?
note: function defined here
    --> libDF\src\tract.rs:1058:8
     |
1058 | pub fn as_arrayview_mut_complex<'a>(
     |        ^^^^^^^^^^^^^^^^^^^^^^^^
1059 |     buffer: ArrayViewMutD<'a, f32>,
     |     ------------------------------

warning: use of deprecated method `tract_core::ndarray::impl_methods::<impl tract_core::ndarray::ArrayBase<S, D>>::into_shape`: Use `.into_shape_with_order()` or `.to_shape()`
   --> libDF\src\tract.rs:676:58
    |
676 |         let mut buf = self.spec_buf.to_array_view_mut()?.into_shape([self.ch, self.n_freqs])?;
    |                                                          ^^^^^^^^^^
    |
    = note: `#[warn(deprecated)]` on by default

error[E0308]: mismatched types
    --> libDF\src\tract.rs:687:13
     |
686  |           as_arrayview_complex(
     |           -------------------- arguments to this function are incorrect
687  | /             self.rolling_spec_buf_x
688  | |                 .get(self.lookahead.max(self.df_order) - self.lookahead - 1)
689  | |                 .unwrap()
690  | |                 .to_array_view::<f32>()
691  | |                 .unwrap(),
     | |_________________________^ expected `ArrayBase<ViewRepr<...>, ...>`, found a different `ArrayBase<ViewRepr<...>, ...>`
     |
     = note: `ArrayBase<ViewRepr<...>, ...>` and `ArrayBase<ViewRepr<...>, ...>` have similar names, but are actually distinct types
note: `ArrayBase<ViewRepr<...>, ...>` is defined in crate `ndarray`
    --> C:\Users\Turtvaiz\.cargo\registry\src\index.crates.io-6f17d22bba15001f\ndarray-0.16.1\src/lib.rs:1280:1
     |
1280 | pub struct ArrayBase<S, D>
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^
note: `ArrayBase<ViewRepr<...>, ...>` is defined in crate `ndarray`
    --> C:\Users\Turtvaiz\.cargo\registry\src\index.crates.io-6f17d22bba15001f\ndarray-0.15.6\src\lib.rs:1268:1
     |
1268 | pub struct ArrayBase<S, D>
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^
     = note: perhaps two different versions of crate `ndarray` are being used?
note: function defined here
    --> libDF\src\tract.rs:1047:8
     |
1047 | pub fn as_arrayview_complex<'a>(
     |        ^^^^^^^^^^^^^^^^^^^^
1048 |     buffer: ArrayViewD<'a, f32>,
     |     ---------------------------

error[E0308]: mismatched types
    --> libDF\src\tract.rs:699:13
     |
698  |         as_arrayview_complex(
     |         -------------------- arguments to this function are incorrect
699  |             self.spec_buf.to_array_view::<f32>().unwrap(),
     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `ArrayBase<ViewRepr<...>, ...>`, found a different `ArrayBase<ViewRepr<...>, ...>`
     |
     = note: `ArrayBase<ViewRepr<...>, ...>` and `ArrayBase<ViewRepr<...>, ...>` have similar names, but are actually distinct types
note: `ArrayBase<ViewRepr<...>, ...>` is defined in crate `ndarray`
    --> C:\Users\Turtvaiz\.cargo\registry\src\index.crates.io-6f17d22bba15001f\ndarray-0.16.1\src/lib.rs:1280:1
     |
1280 | pub struct ArrayBase<S, D>
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^
note: `ArrayBase<ViewRepr<...>, ...>` is defined in crate `ndarray`
    --> C:\Users\Turtvaiz\.cargo\registry\src\index.crates.io-6f17d22bba15001f\ndarray-0.15.6\src\lib.rs:1268:1
     |
1268 | pub struct ArrayBase<S, D>
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^
     = note: perhaps two different versions of crate `ndarray` are being used?
note: function defined here
    --> libDF\src\tract.rs:1047:8
     |
1047 | pub fn as_arrayview_complex<'a>(
     |        ^^^^^^^^^^^^^^^^^^^^
1048 |     buffer: ArrayViewD<'a, f32>,
     |     ---------------------------

error[E0308]: mismatched types
    --> libDF\src\tract.rs:707:13
     |
706  |         as_arrayview_mut_complex(
     |         ------------------------ arguments to this function are incorrect
707  |             self.spec_buf.to_array_view_mut::<f32>().unwrap(),
     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `ArrayBase<ViewRepr<...>, ...>`, found a different `ArrayBase<ViewRepr<...>, ...>`
     |
     = note: `ArrayBase<ViewRepr<...>, ...>` and `ArrayBase<ViewRepr<...>, ...>` have similar names, but are actually distinct types
note: `ArrayBase<ViewRepr<...>, ...>` is defined in crate `ndarray`
    --> C:\Users\Turtvaiz\.cargo\registry\src\index.crates.io-6f17d22bba15001f\ndarray-0.16.1\src/lib.rs:1280:1
     |
1280 | pub struct ArrayBase<S, D>
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^
note: `ArrayBase<ViewRepr<...>, ...>` is defined in crate `ndarray`
    --> C:\Users\Turtvaiz\.cargo\registry\src\index.crates.io-6f17d22bba15001f\ndarray-0.15.6\src\lib.rs:1268:1
     |
1268 | pub struct ArrayBase<S, D>
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^
     = note: perhaps two different versions of crate `ndarray` are being used?
note: function defined here
    --> libDF\src\tract.rs:1058:8
     |
1058 | pub fn as_arrayview_mut_complex<'a>(
     |        ^^^^^^^^^^^^^^^^^^^^^^^^
1059 |     buffer: ArrayViewMutD<'a, f32>,
     |     ------------------------------

error[E0308]: `?` operator has incompatible types
    --> libDF\src\tract.rs:741:34
     |
741  |         as_arrayview_mut_complex(spec_out.to_array_view_mut::<f32>()?, &[ch, n_freqs])
     |                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `ArrayBase<ViewRepr<...>, ...>`, found a different `ArrayBase<ViewRepr<...>, ...>`
     |
     = note: `?` operator cannot convert from `tract_core::ndarray::ArrayBase<tract_core::ndarray::ViewRepr<&mut f32>, tract_core::ndarray::Dim<tract_core::ndarray::IxDynImpl>>` to `ndarray::ArrayBase<ndarray::ViewRepr<&mut f32>, ndarray::Dim<ndarray::IxDynImpl>>`
     = note: `ArrayBase<ViewRepr<...>, ...>` and `ArrayBase<ViewRepr<...>, ...>` have similar names, but are actually distinct types
note: `ArrayBase<ViewRepr<...>, ...>` is defined in crate `ndarray`
    --> C:\Users\Turtvaiz\.cargo\registry\src\index.crates.io-6f17d22bba15001f\ndarray-0.16.1\src/lib.rs:1280:1
     |
1280 | pub struct ArrayBase<S, D>
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^
note: `ArrayBase<ViewRepr<...>, ...>` is defined in crate `ndarray`
    --> C:\Users\Turtvaiz\.cargo\registry\src\index.crates.io-6f17d22bba15001f\ndarray-0.15.6\src\lib.rs:1268:1
     |
1268 | pub struct ArrayBase<S, D>
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^
     = note: perhaps two different versions of crate `ndarray` are being used?

error[E0308]: `?` operator has incompatible types
    --> libDF\src\tract.rs:746:30
     |
746  |         as_arrayview_complex(coefs.to_array_view::<f32>()?, &[ch, nb_df, df_order])
     |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `ArrayBase<ViewRepr<...>, ...>`, found a different `ArrayBase<ViewRepr<...>, ...>`
     |
     = note: `?` operator cannot convert from `tract_core::ndarray::ArrayBase<tract_core::ndarray::ViewRepr<&f32>, tract_core::ndarray::Dim<tract_core::ndarray::IxDynImpl>>` to `ndarray::ArrayBase<ndarray::ViewRepr<&f32>, ndarray::Dim<ndarray::IxDynImpl>>`
     = note: `ArrayBase<ViewRepr<...>, ...>` and `ArrayBase<ViewRepr<...>, ...>` have similar names, but are actually distinct types
note: `ArrayBase<ViewRepr<...>, ...>` is defined in crate `ndarray`
    --> C:\Users\Turtvaiz\.cargo\registry\src\index.crates.io-6f17d22bba15001f\ndarray-0.16.1\src/lib.rs:1280:1
     |
1280 | pub struct ArrayBase<S, D>
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^
note: `ArrayBase<ViewRepr<...>, ...>` is defined in crate `ndarray`
    --> C:\Users\Turtvaiz\.cargo\registry\src\index.crates.io-6f17d22bba15001f\ndarray-0.15.6\src\lib.rs:1268:1
     |
1268 | pub struct ArrayBase<S, D>
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^
     = note: perhaps two different versions of crate `ndarray` are being used?

error[E0308]: mismatched types
    --> libDF\src\tract.rs:750:30
     |
750  |         as_arrayview_complex(s.to_array_view::<f32>().unwrap(), &[ch, n_freqs])
     |         -------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `ArrayBase<ViewRepr<...>, ...>`, found a different `ArrayBase<ViewRepr<...>, ...>`
     |         |
     |         arguments to this function are incorrect
     |
     = note: `ArrayBase<ViewRepr<...>, ...>` and `ArrayBase<ViewRepr<...>, ...>` have similar names, but are actually distinct types
note: `ArrayBase<ViewRepr<...>, ...>` is defined in crate `ndarray`
    --> C:\Users\Turtvaiz\.cargo\registry\src\index.crates.io-6f17d22bba15001f\ndarray-0.16.1\src/lib.rs:1280:1
     |
1280 | pub struct ArrayBase<S, D>
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^
note: `ArrayBase<ViewRepr<...>, ...>` is defined in crate `ndarray`
    --> C:\Users\Turtvaiz\.cargo\registry\src\index.crates.io-6f17d22bba15001f\ndarray-0.15.6\src\lib.rs:1268:1
     |
1268 | pub struct ArrayBase<S, D>
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^
     = note: perhaps two different versions of crate `ndarray` are being used?
note: function defined here
    --> libDF\src\tract.rs:1047:8
     |
1047 | pub fn as_arrayview_complex<'a>(
     |        ^^^^^^^^^^^^^^^^^^^^
1048 |     buffer: ArrayViewD<'a, f32>,
     |     ---------------------------

error[E0609]: no field `symbol_table` on type `tract_core::model::Graph<tract_onnx::prelude::InferenceFact, Box<(dyn InferenceOp + 'static)>>`
   --> libDF\src\tract.rs:775:15
    |
775 |     let s = m.symbol_table.sym("S");
    |               ^^^^^^^^^^^^ unknown field
    |
    = note: available fields are: `nodes`, `inputs`, `outputs`, `outlet_labels`, `properties`, `symbols`

error[E0609]: no field `symbol_table` on type `tract_core::model::Graph<tract_onnx::prelude::InferenceFact, Box<(dyn InferenceOp + 'static)>>`
   --> libDF\src\tract.rs:824:15
    |
824 |     let s = m.symbol_table.sym("S");
    |               ^^^^^^^^^^^^ unknown field
    |
    = note: available fields are: `nodes`, `inputs`, `outputs`, `outlet_labels`, `properties`, `symbols`

error[E0609]: no field `symbol_table` on type `tract_core::model::Graph<tract_onnx::prelude::InferenceFact, Box<(dyn InferenceOp + 'static)>>`
   --> libDF\src\tract.rs:937:15
    |
937 |     let s = m.symbol_table.sym("S");
    |               ^^^^^^^^^^^^ unknown field
    |
    = note: available fields are: `nodes`, `inputs`, `outputs`, `outlet_labels`, `properties`, `symbols`

Some errors have detailed explanations: E0308, E0609.
For more information about an error, try `rustc --explain E0308`.
warning: `deep_filter` (lib) generated 1 warning
error: could not compile `deep_filter` (lib) due to 17 previous errors; 1 warning emitted

Downgrading tract to 0.21.4 makes the build succeed

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

1 participant