OCR-D/ocrd_all

2nd build stops waiting for user input

Closed this issue · 1 comments

Running make all twice stops during the 2nd build because the build code tries to apply a patch for detectron2 which was already applied during the 1st build:

Collecting detectron2
  Cloning https://github.com/facebookresearch/detectron2 (to revision v0.6) to /tmp/pip-install-e2w2azlk/detectron2_be5a454d8957428baebd867e20a14b84
  Running command git clone --filter=blob:none --quiet https://github.com/facebookresearch/detectron2 /tmp/pip-install-e2w2azlk/detectron2_be5a454d8957428baebd867e20a14b84
  Running command git checkout -q d1e04565d3bec8719335b88be9e9b961bf3ec464
  Resolved https://github.com/facebookresearch/detectron2 to commit d1e04565d3bec8719335b88be9e9b961bf3ec464
  Preparing metadata (setup.py) ... done
Requirement already satisfied: Pillow>=7.1 in /home/stweil/src/github/OCR-D/ocrd_all_test/venv/lib/python3.11/site-packages (from detectron2) (10.2.0)
Requirement already satisfied: matplotlib in /home/stweil/src/github/OCR-D/ocrd_all_test/venv/lib/python3.11/site-packages (from detectron2) (3.8.3)
Requirement already satisfied: pycocotools>=2.0.2 in /home/stweil/src/github/OCR-D/ocrd_all_test/venv/lib/python3.11/site-packages (from detectron2) (2.0.7)
Requirement already satisfied: termcolor>=1.1 in /home/stweil/src/github/OCR-D/ocrd_all_test/venv/lib/python3.11/site-packages (from detectron2) (2.4.0)
Requirement already satisfied: yacs>=0.1.8 in /home/stweil/src/github/OCR-D/ocrd_all_test/venv/lib/python3.11/site-packages (from detectron2) (0.1.8)
[...]
Requirement already satisfied: six>1.9 in /home/stweil/src/github/OCR-D/ocrd_all_test/venv/lib/python3.11/site-packages (from tensorboard->detectron2) (1.16.0)
Requirement already satisfied: tensorboard-data-server<0.8.0,>=0.7.0 in /home/stweil/src/github/OCR-D/ocrd_all_test/venv/lib/python3.11/site-packages (from tensorboard->detectron2) (0.7.2)
Requirement already satisfied: werkzeug>=1.0.1 in /home/stweil/src/github/OCR-D/ocrd_all_test/venv/lib/python3.11/site-packages (from tensorboard->detectron2) (3.0.1)
Requirement already satisfied: MarkupSafe>=2.1.1 in /home/stweil/src/github/OCR-D/ocrd_all_test/venv/lib/python3.11/site-packages (from werkzeug>=1.0.1->tensorboard->detectron2) (2.1.5)
wget --quiet -O- https://github.com/facebookresearch/detectron2/commit/ed294fabf043eadbb33948d5c39f8f0361829a4f.patch | patch -d `python3 -c "import detectron2; print(detectron2.__path__[0])"` -p2
patching file data/transforms/transform.py
Reversed (or previously applied) patch detected!  Assume -R? [n] 

I added -t – that should suffice. Just need to update ocrd_detectron2 to master.