Dana-Farber-AIOS / pathml

Tools for computational pathology
https://pathml.org
GNU General Public License v2.0
387 stars 81 forks source link

Problems with installing pathml #128

Closed MohamedOmar2020 closed 3 years ago

MohamedOmar2020 commented 3 years ago

Hello guys, I have a problem with installing the newest version of pathml (dev branch). pip install -e . gives me the following error:

ERROR: Could not find a version that satisfies the requirement openjdk==8.0.152 (from pathml) (from versions: none) ERROR: No matching distribution found for openjdk==8.0.152

openjdk v8.0.152 is already installed in my conda environment.

When I comment out openjdk==8.0.152 from setup.py, I receive this error:

ERROR: Failed building wheel for pytorch Running setup.py clean for pytorch Successfully built python-spams Failed to build pytorch Installing collected packages: pytorch, python-spams, python-bioformats, pathml Running setup.py install for pytorch ... error ERROR: Command errored out with exit status 1: command: /Users/mohamedomar/opt/anaconda3/envs/pathml2/bin/python3.8 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-install-wwmcbo9l/pytorch_4439c247aad44de6b859ee690b0dc420/setup.py'"'"'; file='"'"'/private/tmp/pip-install-wwmcbo9l/pytorch_4439c247aad44de6b859ee690b0dc420/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'"'"'))' install --record /private/tmp/pip-record-xgplrvnd/install-record.txt --single-version-externally-managed --compile --install-headers /Users/mohamedomar/opt/anaconda3/envs/pathml2/include/python3.8/pytorch cwd: /private/tmp/pip-install-wwmcbo9l/pytorch_4439c247aad44de6b859ee690b0dc420/ Complete output (5 lines): Traceback (most recent call last): File "", line 1, in File "/private/tmp/pip-install-wwmcbo9l/pytorch_4439c247aad44de6b859ee690b0dc420/setup.py", line 11, in raise Exception(message) Exception: You tried to install "pytorch". The package named for PyTorch is "torch"

ERROR: Command errored out with exit status 1: /Users/mohamedomar/opt/anaconda3/envs/pathml2/bin/python3.8 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-install-wwmcbo9l/pytorch_4439c247aad44de6b859ee690b0dc420/setup.py'"'"'; file='"'"'/private/tmp/pip-install-wwmcbo9l/pytorch_4439c247aad44de6b859ee690b0dc420/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'"'"'))' install --record /private/tmp/pip-record-xgplrvnd/install-record.txt --single-version-externally-managed --compile --install-headers /Users/mohamedomar/opt/anaconda3/envs/pathml2/include/python3.8/pytorch Check the logs for full command output.

Again, pytorch is already installed in my conda environment

I guess the problem might be in setup.py since the installation process runs fine when I comment out both openjdk and pytorch.

Thanks in advance

jacob-rosenthal commented 3 years ago

Sorry about that! I think this should be fixed now by #129 Can you pull from dev and try again and let me know if you still run into this problem?

MohamedOmar2020 commented 3 years ago

It worked! Thanks Jacob.