kundajelab / bpnet

Toolkit to train base-resolution deep neural networks on functional genomics data and to interpret them
http://bit.ly/bpnet-colab
MIT License
142 stars 35 forks source link

Installation error, likely crashing due to dependency DeepExplain #46

Open mauliknariya opened 2 years ago

mauliknariya commented 2 years ago

Hi,

I have been trying to install bpnet but I am unable to do that. I tried both pip and conda env create. With pip install bpnet I get the following error:

ERROR: Cannot install bpnet==0.0.1, bpnet==0.0.10, bpnet==0.0.11, bpnet==0.0.12, bpnet==0.0.13, bpnet==0.0.14, bpnet==0.0.15, bpnet==0.0.16, bpnet==0.0.17, bpnet==0.0.18, bpnet==0.0.19, bpnet==0.0.2, bpnet==0.0.20, bpnet==0.0.21, bpnet==0.0.22, bpnet==0.0.23, bpnet==0.0.3, bpnet==0.0.4, bpnet==0.0.5, bpnet==0.0.6, bpnet==0.0.7, bpnet==0.0.8 and bpnet==0.0.9 because these package versions have conflicting dependencies.

The conflict is caused by:
    bpnet 0.0.23 depends on deepexplain
    bpnet 0.0.22 depends on deepexplain
    bpnet 0.0.21 depends on deepexplain
    bpnet 0.0.20 depends on deepexplain
    bpnet 0.0.19 depends on deepexplain
    bpnet 0.0.18 depends on deepexplain
    bpnet 0.0.17 depends on deepexplain
    bpnet 0.0.16 depends on deepexplain
    bpnet 0.0.15 depends on deepexplain
    bpnet 0.0.14 depends on deepexplain
    bpnet 0.0.13 depends on deepexplain
    bpnet 0.0.12 depends on deepexplain
    bpnet 0.0.11 depends on deepexplain
    bpnet 0.0.10 depends on deepexplain
    bpnet 0.0.9 depends on deepexplain
    bpnet 0.0.8 depends on deepexplain
    bpnet 0.0.7 depends on deepexplain
    bpnet 0.0.6 depends on deepexplain
    bpnet 0.0.5 depends on deepexplain
    bpnet 0.0.4 depends on deepexplain
    bpnet 0.0.3 depends on deepexplain
    bpnet 0.0.2 depends on deepexplain
    bpnet 0.0.1 depends on deepexplain

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

With conda env create -f conda-env.yml, I get the following error:

Pip subprocess error:
 Running command git clone -q https://github.com/kundajelab/DeepExplain.git /tmp/pip-req-build-fnit2dgn
 ERROR: Command errored out with exit status 1:
  command: /root/anaconda3/envs/bpnet/bin/python -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘“’”‘/data/abardet/bpnet/setup.py’“‘”’; __file__=‘“’”‘/data/abardet/bpnet/setup.py’“‘”’;f = getattr(tokenize, ‘“’”‘open’“‘”’, open)(__file__) if os.path.exists(__file__) else io.StringIO(‘“’”‘from setuptools import setup; setup()‘“’”‘);code = f.read().replace(‘“’”‘\r\n’“‘”’, ‘“’”‘\n’“‘”’);f.close();exec(compile(code, __file__, ‘“’”‘exec’“‘”’))' egg_info --egg-base /tmp/pip-pip-egg-info-tbox0he9
    cwd: /data/bpnet/
 Complete output (6 lines):
 Traceback (most recent call last):
  File “<string>“, line 1, in <module>
  File “/data/bpnet/setup.py”, line 8
   <!DOCTYPE html>
   ^

Note: I tried yml file on the repo as well as the yml file in the comment below, the above error is for the later case https://github.com/kundajelab/bpnet/issues/23#issuecomment-835894907