fiberseq/fibertools-rs

Unable to install py-ft, maturin failed

Closed this issue · 1 comments

Thanks for using fibertools-rs! To help with bug reports I need all the following items:

  • The exact command that produced the error along with the error message.
    pip install pyft
    see below
  • A minimal example that reproduces the error including example input files uploaded to GitHub.
mamba create --name=test_env python=3.10
conda activate test_env
pip install pyft

output:

Collecting pyft
  Using cached pyft-0.1.9.tar.gz (8.3 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: pyft
  Building wheel for pyft (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for pyft (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [9 lines of output]
      Running `maturin pep517 build-wheel -i /home/morgan/miniconda3/envs/test_env/bin/python3.10 --compatibility off`
      🔗 Found pyo3 bindings
      🐍 Found CPython 3.10 at /home/morgan/miniconda3/envs/test_env/bin/python3.10
      📡 Using build options features from pyproject.toml
      error: package `anstyle v1.0.1` cannot be built because it requires rustc 1.64.0 or newer, while the currently active rustc version is 1.63.0
      💥 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="/home/morgan/miniconda3/envs/test_env/bin/python3.10" PYTHON_SYS_EXECUTABLE="/home/morgan/miniconda3/envs/test_env/bin/python3.10" "cargo" "rustc" "--features" "pyo3/extension-module" "--message-format" "json-render-diagnostics" "--manifest-path" "/tmp/pip-install-nqwmytoy/pyft_c259de9c9bbe4414b385d7582bfe3cd7/Cargo.toml" "--release" "--lib"`
      Error: command ['maturin', 'pep517', 'build-wheel', '-i', '/home/morgan/miniconda3/envs/test_env/bin/python3.10', '--compatibility', 'off'] returned non-zero exit status 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pyft
Failed to build pyft
ERROR: Could not build wheels for pyft, which is required to install pyproject.toml-based projects
(test_env) morgan:py-ft$ cd ..
(test_env) morgan:fibertools-rs$ cargo build
  • Version of fibertools-rs [e.g. v0.0.6]
$ ft -V
fibertools-rs 0.3.2 commit:
  • OS: [e.g. macOS, Unix, Linux]
    Linux x86-64bit

updating my version of rust fixed this issue:

rustup update

I can then run the minimal example I provided above without error.