Closed s0v1x closed 4 years ago
Hi @s0v1x, Tensorflow runs on python <3.8, I suggest using python 3.7
Docker image not working, it seems that this issue should be reopened.
Steps to reproduce: start building docker image via docker build -t nlparchitect .
Results in error
[+] Building 98.1s (9/11)
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 969B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/ubuntu:18.04 2.2s
=> [1/8] FROM docker.io/library/ubuntu:18.04@sha256:40b84b75884ff39e4cac4bf62cb9678227b1fbf9dbe3f67ef2a6b073aa4b 2.1s
=> => resolve docker.io/library/ubuntu:18.04@sha256:40b84b75884ff39e4cac4bf62cb9678227b1fbf9dbe3f67ef2a6b073aa4b 0.0s
=> => sha256:40b84b75884ff39e4cac4bf62cb9678227b1fbf9dbe3f67ef2a6b073aa4bb529 1.41kB / 1.41kB 0.0s
=> => sha256:354437aa4d06f7d91cf3ddcd97efac9d9cf746c8b9b0071acf2b4b06d5c72414 529B / 529B 0.0s
=> => sha256:7613777544784a5c0496fb94beaa478ca1de1ea80605e5e59fb43691bd2743b1 1.48kB / 1.48kB 0.0s
=> => sha256:0e9b69cf8198dafe5b7db1eee7b96b96238f8346ec641dd44f961f7996c2c152 23.73MB / 23.73MB 1.4s
=> => extracting sha256:0e9b69cf8198dafe5b7db1eee7b96b96238f8346ec641dd44f961f7996c2c152 0.6s
=> [2/8] RUN apt update && apt install -y bash build-essential ca-certificates python3 python3-pip git vim 24.9s
=> [3/8] RUN python3 -m pip install --no-cache-dir --upgrade pip setuptools && python3 -m pip install --no- 13.7s
=> [4/8] WORKDIR /workspace 0.0s
=> [5/8] RUN git clone https://github.com/IntelLabs/nlp-architect.git 54.3s
=> ERROR [6/8] RUN cd nlp-architect/ && python3 -m pip install -e .[all,dev] && python3 -m pip install - 0.8s
------
> [6/8] RUN cd nlp-architect/ && python3 -m pip install -e .[all,dev] && python3 -m pip install -r server/requirements.txt && python3 -m pip install -r examples/requirements.txt && python3 -m pip install -r solutions/trend_analysis/requirements.txt && python3 -m pip install -r solutions/absa_solution/requirements.txt && python3 -m pip install -r solutions/set_expansion/requirements.txt:
#9 0.369 Obtaining file:///workspace/nlp-architect
#9 0.370 Preparing metadata (setup.py): started
#9 0.513 Preparing metadata (setup.py): finished with status 'done'
#9 0.739 ERROR: Could not find a version that satisfies the requirement tensorflow==1.15.4 (from nlp-architect[all,dev]) (from versions: none)
#9 0.739 ERROR: No matching distribution found for tensorflow==1.15.4
------
executor failed running [/bin/sh -c cd nlp-architect/ && python3 -m pip install -e .[all,dev] && python3 -m pip install -r server/requirements.txt && python3 -m pip install -r examples/requirements.txt && python3 -m pip install -r solutions/trend_analysis/requirements.txt && python3 -m pip install -r solutions/absa_solution/requirements.txt && python3 -m pip install -r solutions/set_expansion/requirements.txt]: exit code: 1
Whenever I try to install nlp-architect from scratch using pip, I always run into an issue with the version of tensorflow.
ERROR: Could not find a version that satisfies the requirement tensorflow==1.15.0 (from versions: 2.2.0rc3, 2.2.0rc4, 2.2.0) ERROR: No matching distribution found for tensorflow==1.15.0
Environment setup: Mac OS Catalina pip 20.1 Python 3.8.1