Fail to access access deepmipt/bert during installation

Based on the instructions from here Offline with Docker I have prepared a Dockerfile that creates an image for an offline use. It was working perfectly.

FROM deeppavlov/base-cpu:0.15.0

RUN python -m deeppavlov install ner_ontonotes_bert_mult && \
    python -m deeppavlov download ner_ontonotes_bert_mult && \
    pip3 install --upgrade protobuf==3.20.0

CMD python -m deeppavlov riseapi ner_ontonotes_bert_mult -p 5000

Recently, the command

python -m deeppavlov install ner_ontonotes_bert_mult

started to result in an error, claiming that it cannot access the https://github.com/deepmipt/bert during an installation. Indeed, the repo is gone.

How can I fix that? Full log below.

#5 35.53 Collecting git+https://github.com/deepmipt/bert.git@feat/multi_gpu
#5 35.53   Running command git clone -q https://github.com/deepmipt/bert.git /tmp/pip-req-build-_nnekqrr
#5 35.53   Cloning https://github.com/deepmipt/bert.git (to revision feat/multi_gpu) to /tmp/pip-req-build-_nnekqrr
#5 35.91   fatal: could not read Username for 'https://github.com': No such device or address
#5 35.91 WARNING: Discarding git+https://github.com/deepmipt/bert.git@feat/multi_gpu. Command errored out with exit status 128: git clone -q https://github.com/deepmipt/bert.git /tmp/pip-req-build-_nnekqrr Check the logs for full command output.
#5 35.91 ERROR: Command errored out with exit status 128: git clone -q https://github.com/deepmipt/bert.git /tmp/pip-req-build-_nnekqrr Check the logs for full command output.
#5 35.92 WARNING: You are using pip version 21.1.2; however, version 22.2.2 is available.
#5 35.92 You should consider upgrading via the '/base/venv/bin/python -m pip install --upgrade pip' command.
#5 35.96 Traceback (most recent call last):
#5 35.96   File "/usr/local/lib/python3.7/runpy.py", line 193, in _run_module_as_main
#5 35.96     "__main__", mod_spec)
#5 35.96   File "/usr/local/lib/python3.7/runpy.py", line 85, in _run_code
#5 35.96     exec(code, run_globals)
#5 35.96   File "/base/DeepPavlov/deeppavlov/__main__.py", line 4, in <module>
#5 35.96     main()
#5 35.96   File "/base/DeepPavlov/deeppavlov/deep.py", line 130, in main
#5 35.96     install_from_config(pipeline_config_path)
#5 35.96   File "/base/DeepPavlov/deeppavlov/utils/pip_wrapper/pip_wrapper.py", line 71, in install_from_config
#5 35.96     install(r)
#5 35.96   File "/base/DeepPavlov/deeppavlov/utils/pip_wrapper/pip_wrapper.py", line 38, in install
#5 35.96     env=os.environ.copy())
#5 35.96   File "/usr/local/lib/python3.7/subprocess.py", line 363, in check_call
#5 35.96     raise CalledProcessError(retcode, cmd)
#5 35.96 subprocess.CalledProcessError: Command '['/base/venv/bin/python', '-m', 'pip', 'install', 'git+https://github.com/deepmipt/bert.git@feat/multi_gpu']' returned non-zero exit status 1.

OK, I found the solution myself. I see that you have changed your GitHub organization name. Based on the answer from this topic Куда пропал github deepmipt? - #5 by Ignatov I enhanced my Dockerfile and now everything works fine.

FROM deeppavlov/base-cpu:0.15.0

RUN sed -i 's/mipt/pavlovteam/g' /base/DeepPavlov/deeppavlov/requirements/bert_dp.txt

RUN python -m deeppavlov install ner_ontonotes_bert_mult && \
    python -m deeppavlov download ner_ontonotes_bert_mult && \
    pip3 install --upgrade protobuf==3.20.0

CMD python -m deeppavlov riseapi ner_ontonotes_bert_mult -p 5000
1 Like