You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "mwlon (via GitHub)" <gi...@apache.org> on 2023/07/08 00:46:38 UTC

[GitHub] [arrow-rs] mwlon commented on issue #3849: Cargo.toml dependencies aren't accurate

mwlon commented on issue #3849:
URL: https://github.com/apache/arrow-rs/issues/3849#issuecomment-1626396588

   I was getting errors trying to install recent versions of arrow:
   ```bash
   error[E0432]: unresolved import `num::complex::ComplexFloat`
     --> /Users/martin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/arrow-array-30.0.1/src/arithmetic.rs:21:5
      |
   21 | use num::complex::ComplexFloat;
      |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ no `ComplexFloat` in `complex`
   
   error[E0599]: no method named `powi` found for struct `f16` in the current scope
      --> /Users/martin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/arrow-array-30.0.1/src/arithmetic.rs:351:25
       |
   351 |                 Ok(self.powi(exp as i32))
       |                         ^^^^ method not found in `f16`
   ...
   380 | native_type_float_op!(f16, f16::ONE, f16::ZERO);
       | ----------------------------------------------- in this macro invocation
       |
       = help: items from traits can only be used if the trait is in scope
       = note: this error originates in the macro `native_type_float_op` (in Nightly builds, run with -Z macro-backtrace for more info)
   help: the following traits are implemented but not in scope; perhaps add a `use` for one of them:
       |
   18  + use num::Float;
       |
   18  + use num::traits::float::FloatCore;
       |
   18  + use num::traits::real::Real;
       |
   
   error[E0599]: no method named `powi` found for struct `f16` in the current scope
      --> /Users/martin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/arrow-array-30.0.1/src/arithmetic.rs:356:22
       |
   356 |                 self.powi(exp as i32)
       |                      ^^^^ method not found in `f16`
   ...
   380 | native_type_float_op!(f16, f16::ONE, f16::ZERO);
       | ----------------------------------------------- in this macro invocation
       |
       = help: items from traits can only be used if the trait is in scope
       = note: this error originates in the macro `native_type_float_op` (in Nightly builds, run with -Z macro-backtrace for more info)
   help: the following traits are implemented but not in scope; perhaps add a `use` for one of them:
       |
   18  + use num::Float;
       |
   18  + use num::traits::float::FloatCore;
       |
   18  + use num::traits::real::Real;
       |
   ```
   
    It seemed to become problematic between 30 and 35. I was able to fix this by adding
    ```
    num-complex = "0.4.3"
    ```
   to my Cargo.toml. I've submitted #4482 .


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org