slub / ocrd_controller

Path to network implementation of OCR-D
MIT License
6 stars 3 forks source link

Python problem when build controller "Can't open /usr/sub-venv/*/bin/activate" #4

Closed markusweigelt closed 2 years ago

markusweigelt commented 2 years ago

I run into following problem when i build the ocrd controller submodule,

 => CACHED [bertsky/ocrd_controller:latest  2/29] RUN apt-get update &&     apt-get install -y apt-utils wget git  0.0s
 => CACHED [bertsky/ocrd_controller:latest  3/29] RUN ssh-keygen -A                                                0.0s
 => CACHED [bertsky/ocrd_controller:latest  4/29] RUN mkdir /run/sshd /.ssh                                        0.0s
 => CACHED [bertsky/ocrd_controller:latest  5/29] RUN echo Banner none >> /etc/ssh/sshd_config                     0.0s
 => CACHED [bertsky/ocrd_controller:latest  6/29] RUN echo PrintMotd no >> /etc/ssh/sshd_config                    0.0s
 => CACHED [bertsky/ocrd_controller:latest  7/29] RUN echo PermitUserEnvironment yes >> /etc/ssh/sshd_config       0.0s
 => CACHED [bertsky/ocrd_controller:latest  8/29] RUN echo PermitUserRC yes >> /etc/ssh/sshd_config                0.0s
 => CACHED [bertsky/ocrd_controller:latest  9/29] RUN echo X11Forwarding no >> /etc/ssh/sshd_config                0.0s
 => CACHED [bertsky/ocrd_controller:latest 10/29] RUN echo AllowUsers ocrd >> /etc/ssh/sshd_config                 0.0s
 => CACHED [bertsky/ocrd_controller:latest 11/29] RUN echo "cd /data" >> /etc/profile                              0.0s
 => CACHED [bertsky/ocrd_controller:latest 12/29] RUN /usr/sbin/sshd -t                                            0.0s
 => CACHED [bertsky/ocrd_controller:latest 13/29] COPY start-sshd.sh /usr/bin                                      0.0s
 => CACHED [bertsky/ocrd_controller:latest 14/29] WORKDIR /build                                                   0.0s
 => CACHED [bertsky/ocrd_controller:latest 15/29] RUN ln /usr/bin/python3 /usr/bin/python                          0.0s
 => CACHED [bertsky/ocrd_controller:latest 16/29] RUN git -C ocrd_fileformat fetch origin pull/39/head:pr-39       0.0s
 => CACHED [bertsky/ocrd_controller:latest 17/29] RUN git -C ocrd_fileformat checkout pr-39                        0.0s
 => CACHED [bertsky/ocrd_controller:latest 18/29] RUN make -C ocrd_fileformat install                              0.0s
 => CACHED [bertsky/ocrd_controller:latest 19/29] RUN git -C sbb_binarization fetch origin pull/31/head:setup-ini  0.0s
 => CACHED [bertsky/ocrd_controller:latest 20/29] RUN git -C sbb_binarization checkout setup-init                  0.0s
 => CACHED [bertsky/ocrd_controller:latest 21/29] RUN make -W sbb_binarization ocrd-sbb-binarize                   0.0s
 => CACHED [bertsky/ocrd_controller:latest 22/29] RUN git -C core fetch origin pull/652/head:workflow-server       0.0s
 => CACHED [bertsky/ocrd_controller:latest 23/29] RUN git -C core checkout workflow-server                         0.0s
 => CACHED [bertsky/ocrd_controller:latest 24/29] RUN make -C core install PIP_INSTALL="pip install -e"            0.0s
 => ERROR [bertsky/ocrd_controller:latest 25/29] RUN for venv in /usr/sub-venv/*; do . $venv/bin/activate && make  0.7s
------
 > [bertsky/ocrd_controller:latest 25/29] RUN for venv in /usr/sub-venv/*; do . $venv/bin/activate && make -C core install PIP_INSTALL="pip install -e"; done:
#0 0.645 /bin/sh: 1: .: Can't open /usr/sub-venv/*/bin/activate
------
failed to solve: executor failed running [/bin/sh -c for venv in /usr/sub-venv/*; do . $venv/bin/activate && make -C core install PIP_INSTALL="pip install -e"; done]: exit code: 2
bertsky commented 2 years ago

Sry, forgot to update after recent ocrd/all changes. Can you please try again with current master?

markusweigelt commented 2 years ago

Thx now it works :thumbsup: