aertslab / scenicplus

SCENIC+ is a python package to build gene regulatory networks (GRNs) using combined or separate single-cell gene expression (scRNA-seq) and single-cell chromatin accessibility (scATAC-seq) data.
Other
162 stars 27 forks source link

Error building pybigtools while installing SCENIC+ #363

Closed TemiLeke closed 2 months ago

TemiLeke commented 2 months ago

Describe the bug While installing scenic+ using the recommended steps on a RHEL server, I an error message saying ERROR: Could not build wheels for pybigtools, which is required to install project.toml-based projects.

I realize this is not really an error with the package itself, but I would be glad if I could receive any pointers to fix this.

To Reproduce I ran this on the RHEL cluster

$ conda create --name scenicplus python=3.11 -y
$ conda activate scenicplus
$ git clone https://github.com/aertslab/scenicplus
$ cd scenicplus
$ pip install .

Error output

/tmp/pip-install-69pb9on8/pybigtools_c2cd422116f54fc589fd0309781133fa/pybigtools/target/release/deps/libring-86c71c3f21d36ed6.rlib: error adding symbols: File format not recognized
                collect2: error: ld returned 1 exit status

      error: could not compile `pybigtools` (lib) due to 1 previous error
      💥 maturin failed
        Caused by: Failed to build a native library through cargo
        Caused by: Cargo build finished with "exit status: 101": `env -u CARGO PYO3_ENVIRONMENT_SIGNATURE="cpython-3.11-64bit" PYO3_PYTHON="/home/t/tadeoye/Documents/scenic_env/bin/python3" PYTHON_SYS_EXECUTABLE="/home/t/tadeoye/Documents/scenic_env/bin/python3" "cargo" "rustc" "--message-format" "json-render-diagnostics" "--manifest-path" "/tmp/pip-install-69pb9on8/pybigtools_c2cd422116f54fc589fd0309781133fa/pybigtools/Cargo.toml" "--release" "--lib"`
      Error: command ['maturin', 'pep517', 'build-wheel', '-i', '/home/t/tadeoye/Documents/scenic_env/bin/python3', '--compatibility', 'off'] returned non-zero exit status 1
      [end of output]

ERROR: Could not build wheels for pybigtools, which is required to install project.toml-based projects

Version (please complete the following information):