argoverse / av2-api

Argoverse 2: Next generation datasets for self-driving perception and forecasting.
https://argoverse.github.io/user-guide/
MIT License
306 stars 71 forks source link

Rust compatability #275

Open juanwulu opened 3 days ago

juanwulu commented 3 days ago

Issue Description

Failed to manually install via PyPI. Wheel building raises the following error:

💥 maturin failed                                                                                                                                                                                                
        Caused by: Failed to build a native library through cargo                                                                                                                                                      
        Caused by: Cargo build finished with "exit status: 101": `PYO3_ENVIRONMENT_SIGNATURE="cpython-3.10-64bit" PYO3_PYTHON="/scratch/gilbreth/juanwu/conda/envs/gmp-dev/bin/python3.1" PYTHON_SYS_EXECUTABLE="/scrat
ch/gilbreth/juanwu/conda/envs/gmp-dev/bin/python3.1" "cargo" "rustc" "--release" "--features" "pyo3/extension-module" "--manifest-path" "/tmp/pip-install-fhhx6udr/av2_48a3040d72d24b9ca051557b464ac04e/rust/Cargo.toml
" "--message-format" "json" "--lib" "--crate-type" "cdylib"`                                                                                                                                                           
      error[E0635]: unknown feature `stdsimd`                                                                                                                                                                          
        --> /home/juanwu/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ahash-0.8.6/src/lib.rs:99:42                                                                                                             
         |                                                                                                                                                                                                             
      99 | #![cfg_attr(feature = "stdsimd", feature(stdsimd))]                                                                                                                                                         
         |                                          ^^^^^^^                                                                                                                                                            

      error: aborting due to 1 previous error                                                                                                                                                                          

      For more information about this error, try `rustc --explain E0635`.                                                                                                                                              

      Error: command ['maturin', 'pep517', 'build-wheel', '-i', '/scratch/gilbreth/juanwu/conda/envs/gmp-dev/bin/python3.1', '--compatibility', 'off'] returned non-zero exit status 1                                 
      [end of output]

This is a known issue due to deprecation of stdsimd feature in the latest Rust build. Please refer to here for more information. Could you help with updating the User Guide?

System Information