aertslab / pySCENIC

pySCENIC is a lightning-fast python implementation of the SCENIC pipeline (Single-Cell rEgulatory Network Inference and Clustering) which enables biologists to infer transcription factors, gene regulatory networks and cell types from single-cell RNA-seq data.
http://scenic.aertslab.org
GNU General Public License v3.0
443 stars 182 forks source link

The docker image should support the macos arm architecture. #494

Open MGMCN opened 1 year ago

MGMCN commented 1 year ago

Describe the bug A bug occurs when trying to build an image on a mac with an m1 arm chip.

Steps to reproduce the behavior

  1. Command run when the error occurred:

    docker build . -t test
  2. Error encountered:

    #10 73.02       running build_ext
    #10 73.02       building 'psutil._psutil_linux' extension
    #10 73.02       creating build/temp.linux-aarch64-cpython-310
    #10 73.02       creating build/temp.linux-aarch64-cpython-310/psutil
    #10 73.02       gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_SIZEOF_PID_T=4 -DPSUTIL_VERSION=595 -DPy_LIMITED_API=0x03060000 -DPSUTIL_ETHTOOL_MISSING_TYPES=1 -DPSUTIL_LINUX=1 -I/opt/venv/include -I/usr/local/include/python3.10 -c psutil/_psutil_common.c -o build/temp.linux-aarch64-cpython-310/psutil/_psutil_common.o
    #10 73.02       psutil could not be installed from sources because gcc is not installed. Try running:
    #10 73.02         sudo apt-get install gcc python3-dev
    #10 73.02       error: command 'gcc' failed: No such file or directory
    #10 73.02       [end of output]
    #10 73.02   
    #10 73.02   note: This error originates from a subprocess, and is likely not a problem with pip.
    #10 73.02   ERROR: Failed building wheel for psutil
    #10 73.02 ERROR: Could not build wheels for psutil, which is required to install pyproject.toml-based projects
    #10 73.02 Failed to build psutil
    #10 73.79 
    #10 73.79 [notice] A new release of pip available: 22.2.1 -> 23.2.1
    #10 73.79 [notice] To update, run: pip install --upgrade pip
    ------
    error: failed to solve: executor failed running [/bin/sh -c pip install --no-cache-dir -r /tmp/requirements.txt]: exit code: 1