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
431 stars 180 forks source link

Installation of pyscenic latest versions #270

Closed saeedfc closed 3 years ago

saeedfc commented 3 years ago

Describe the bug Cannot install pyscenic==11.0 or pyscenic in conda environment. I made a fresh environemnt to install new version (11.0). Outside of conda environment also, this is not being possible. I previously had succesfully installed pyscenic 10.4 within a conda environment and have been using without issues. Steps to reproduce the behavior

  1. Command run when the error occurred:
    $ conda activate pyscenic_11.0
    (pyscenic_11.0) $ pip install pyscenic==11.0
    DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
    Defaulting to user installation because normal site-packages is not writeable
    ERROR: Could not find a version that satisfies the requirement pyscenic==11.0 (from versions: 0.6.1, 0.6.2, 0.6.3, 0.6.4, 0.6.5)
    ERROR: No matching distribution found for pyscenic==11.0
    WARNING: You are using pip version 20.2.4; however, version 20.3.4 is available.
    You should consider upgrading via the '/usr/bin/python -m pip install --upgrade pip' command.
    (pyscenic_11.0)$ pip install pyscenic
    DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
    Defaulting to user installation because normal site-packages is not writeable
    Collecting pyscenic
    Using cached pyscenic-0.6.5.tar.gz (3.6 MB)
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-o9VP2E/pyscenic/setup.py'"'"'; __file__='"'"'/tmp/pip-install-o9VP2E/pyscenic/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-ugYpgu
         cwd: /tmp/pip-install-o9VP2E/pyscenic/
    Complete output (7 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-o9VP2E/pyscenic/setup.py", line 80, in <module>
        install_requires=read_requirements('requirements.txt'),
      File "/tmp/pip-install-o9VP2E/pyscenic/setup.py", line 49, in read_requirements
        with open(fname, 'r', encoding='utf-8') as file:
    TypeError: 'encoding' is an invalid keyword argument for this function
    ----------------------------------------
    ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
    WARNING: You are using pip version 20.2.4; however, version 20.3.4 is available.
    You should consider upgrading via the '/usr/bin/python -m pip install --upgrade pip' command.

    Now without conda it's still pyscenic 10.0 version if i don't specify the version. Otherwise, it cannot identify 11.0

(base) $ pip install pyscenic==11.0
ERROR: Could not find a version that satisfies the requirement pyscenic==11.0
ERROR: No matching distribution found for pyscenic==11.0
(base) $ pip install pyscenic
Requirement already satisfied: pyscenic in /home/luna.kuleuven.be/u0119129/anaconda3/lib/python3.7/site-packages (0.10.0)
Requirement already satisfied: interlap in /home/luna.kuleuven.be/u0119129/anaconda3/lib/python3.7/site-packages (from pyscenic) (0.2.6)
Requirement already satisfied: scipy in /home/luna.kuleuven.be/u0119129/anaconda3/lib/python3.7/site-packages (from pyscenic) (1.5.2)
Requirement already satisfied: pandas>=0.20.1 in /home/luna.kuleuven.be/u0119129/anaconda3/lib/python3.7/site-packages (from pyscenic) (1.1.3)
Requirement already satisfied: distributed<2.0.0,>=1.21.6 in /home/luna.kuleuven.be/u0119129/anaconda3/lib/python3.7/site-packages (from pyscenic) (1.28.1)
Requirement already satisfied: umap-learn in /home/luna.kuleuven.be/u0119129/anaconda3/lib/python3.7/site-packages (from pyscenic) (0.3.10)
Requirement already satisfied: pyyaml in /home/luna.kuleuven.be/u0119129/anaconda3/lib/python3.7/site-packages (from pyscenic) (5.3.1)
Requirement already satisfied: dask==1.0.0 in /home/luna.kuleuven.be/u0119129/anaconda3/lib/python3.7/site-packages (from pyscenic) (1.0.0)
Requirement already satisfied: attrs in /home/luna.kuleuven.be/u0119129/anaconda3/lib/python3.7/site-packages (from pyscenic) (20.3.0)
Requirement already satisfied: frozendict in /home/luna.kuleuven.be/u0119129/anaconda3/lib/python3.7/site-packages (from pyscenic) (1.2)
Requirement already satisfied: tqdm in /home/luna.kuleuven.be/u0119129/anaconda3/lib/python3.7/site-packages (from pyscenic) (4.51.0)
Requirement already satisfied: numba in /home/luna.kuleuven.be/u0119129/anaconda3/lib/python3.7/site-packages (from pyscenic) (0.45.1)
Requirement already satisfied: setuptools in /home/luna.kuleuven.be/u0119129/anaconda3/lib/python3.7/site-packages (from pyscenic) (53.0.0)
Requirement already satisfied: cloudpickle in /home/luna.kuleuven.be/u0119129/anaconda3/lib/python3.7/site-packages (from pyscenic) (1.6.0)
Requirement already satisfied: numpy in /home/luna.kuleuven.be/u0119129/anaconda3/lib/python3.7/site-packages (from pyscenic) (1.19.4)
Requirement already satisfied: arboreto in /home/luna.kuleuven.be/u0119129/anaconda3/lib/python3.7/site-packages (from pyscenic) (0.1.5)
Requirement already satisfied: boltons in /home/luna.kuleuven.be/u0119129/anaconda3/lib/python3.7/site-packages (from pyscenic) (19.2.0)
Requirement already satisfied: multiprocessing-on-dill in /home/luna.kuleuven.be/u0119129/anaconda3/lib/python3.7/site-packages (from pyscenic) (3.5.0a4)
Requirement already satisfied: loompy in /home/luna.kuleuven.be/u0119129/anaconda3/lib/python3.7/site-packages (from pyscenic) (3.0.6)
Requirement already satisfied: pyarrow>=0.11.1 in /home/luna.kuleuven.be/u0119129/anaconda3/lib/python3.7/site-packages (from pyscenic) (0.15.0)
Requirement already satisfied: cytoolz in /home/luna.kuleuven.be/u0119129/anaconda3/lib/python3.7/site-packages (from pyscenic) (0.11.0)
Requirement already satisfied: networkx in /home/luna.kuleuven.be/u0119129/anaconda3/lib/python3.7/site-packages (from pyscenic) (2.5)
Requirement already satisfied: llvmlite in /home/luna.kuleuven.be/u0119129/anaconda3/lib/python3.7/site-packages (from pyscenic) (0.29.0)
Requirement already satisfied: msgpack in /home/luna.kuleuven.be/u0119129/anaconda3/lib/python3.7/site-packages (from distributed<2.0.0,>=1.21.6->pyscenic) (1.0.0)
Requirement already satisfied: toolz>=0.7.4 in /home/luna.kuleuven.be/u0119129/anaconda3/lib/python3.7/site-packages (from distributed<2.0.0,>=1.21.6->pyscenic) (0.11.1)
Requirement already satisfied: psutil>=5.0 in /home/luna.kuleuven.be/u0119129/anaconda3/lib/python3.7/site-packages (from distributed<2.0.0,>=1.21.6->pyscenic) (5.7.2)
Requirement already satisfied: click>=6.6 in /home/luna.kuleuven.be/u0119129/anaconda3/lib/python3.7/site-packages (from distributed<2.0.0,>=1.21.6->pyscenic) (7.0)
Requirement already satisfied: tblib in /home/luna.kuleuven.be/u0119129/anaconda3/lib/python3.7/site-packages (from distributed<2.0.0,>=1.21.6->pyscenic) (1.7.0)
Requirement already satisfied: six in /home/luna.kuleuven.be/u0119129/anaconda3/lib/python3.7/site-packages (from distributed<2.0.0,>=1.21.6->pyscenic) (1.15.0)
Requirement already satisfied: zict>=0.1.3 in /home/luna.kuleuven.be/u0119129/anaconda3/lib/python3.7/site-packages (from distributed<2.0.0,>=1.21.6->pyscenic) (2.0.0)
Requirement already satisfied: tornado>=5 in /home/luna.kuleuven.be/u0119129/anaconda3/lib/python3.7/site-packages (from distributed<2.0.0,>=1.21.6->pyscenic) (6.1)
Requirement already satisfied: sortedcontainers!=2.0.0,!=2.0.1 in /home/luna.kuleuven.be/u0119129/anaconda3/lib/python3.7/site-packages (from distributed<2.0.0,>=1.21.6->pyscenic) (2.2.2)
Requirement already satisfied: python-dateutil>=2.7.3 in /home/luna.kuleuven.be/u0119129/anaconda3/lib/python3.7/site-packages (from pandas>=0.20.1->pyscenic) (2.8.1)
Requirement already satisfied: pytz>=2017.2 in /home/luna.kuleuven.be/u0119129/anaconda3/lib/python3.7/site-packages (from pandas>=0.20.1->pyscenic) (2020.4)
Requirement already satisfied: heapdict in /home/luna.kuleuven.be/u0119129/anaconda3/lib/python3.7/site-packages (from zict>=0.1.3->distributed<2.0.0,>=1.21.6->pyscenic) (1.0.1)
Requirement already satisfied: scikit-learn in /home/luna.kuleuven.be/u0119129/anaconda3/lib/python3.7/site-packages (from arboreto->pyscenic) (0.23.2)
Requirement already satisfied: numpy-groupies in /home/luna.kuleuven.be/u0119129/anaconda3/lib/python3.7/site-packages (from loompy->pyscenic) (0+unknown)
Requirement already satisfied: h5py in /home/luna.kuleuven.be/u0119129/anaconda3/lib/python3.7/site-packages (from loompy->pyscenic) (2.10.0)
Requirement already satisfied: dill in /home/luna.kuleuven.be/u0119129/anaconda3/lib/python3.7/site-packages (from multiprocessing-on-dill->pyscenic) (0.3.1.1)
Requirement already satisfied: decorator>=4.3.0 in /home/luna.kuleuven.be/u0119129/anaconda3/lib/python3.7/site-packages (from networkx->pyscenic) (4.4.2)
Requirement already satisfied: threadpoolctl>=2.0.0 in /home/luna.kuleuven.be/u0119129/anaconda3/lib/python3.7/site-packages (from scikit-learn->arboreto->pyscenic) (2.1.0)
Requirement already satisfied: joblib>=0.11 in /home/luna.kuleuven.be/u0119129/anaconda3/lib/python3.7/site-packages (from scikit-learn->arboreto->pyscenic)
python

Expected behavior Install pyscenic 11.0 within the conda environment Please complete the following information:

cflerin commented 3 years ago

Hi @saeedfc ,

First, it's required to use python 3 (3.6 or 3.7 recommended) and it looks like you are using python 2.

Second, you have the package version wrong, the latest release is 0.11.0 so pip install pyscenic==0.11.0. You could also see this guide for a step-by-step install in Conda.