carla: rsync: change_dir "/home/ue4/carla//./Plugins" failed: No such file or directory (2)

I’m trying to build the docker image, and I am at the last step. docker build -t carla -f Carla.Dockerfile . But it gives the error below. I am on Ubuntu 18.04, and the carla version is whichever is used by the dockerfile.

I included some lines above for context, not sure if that helps.

Sumo/util/create_sumo_vtypes.py
Sumo/util/netconvert_carla.py
Sumo/util/sequential_types.py
Sumo/util/data/
Sumo/util/data/opendrive_netconvert.typ.xml
rsync: change_dir "/home/ue4/carla//./Plugins" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1196) [sender=3.1.2]
make: *** [package] Error 23
Util/BuildTools/Linux.mk:16: recipe for target 'package' failed
The command '/bin/sh -c cd /home/ue4 &&   if [ -z ${GIT_BRANCH+x} ]; then git clone --depth 1 https://github.com/carla-
simulator/carla.git;   else git clone --depth 1 --branch $GIT_BRANCH https://github.com/carla-simulator/carla.git; fi &&   
cd /home/ue4/carla &&   ./Update.sh &&   make CarlaUE4Editor &&   make PythonAPI &&   make build.utils &&   
make package &&   rm -r /home/ue4/carla/Dist' returned a non-zero code: 2

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 1
  • Comments: 21

Commits related to this issue

Most upvoted comments

@thillRobot My fix was to change line 166 in Package.sh in the Docker container to: copy_if_changed "./Unreal/CarlaUE4/Plugins/" "${DESTINATION}/Plugins/" Here are the steps I followed: 1 - In Util/Docker, create a file called MyPackage.sh 2 - cd .. 3 - run cat BuildTools/Package.sh > Docker/MyPackage.sh 4 - Change line 166 in MyPackage.sh to what I put above. 5 - cd Docker 6 - change Carla.Dockerfile to:

FROM carla-prerequisites:latest

ARG GIT_BRANCH

USER ue4

RUN cd /home/ue4 && \
  if [ -z ${GIT_BRANCH+x} ]; then git clone --depth 1 https://github.com/carla-simulator/carla.git; \
  else git clone --depth 1 --branch $GIT_BRANCH https://github.com/carla-simulator/carla.git; fi && \
  cd /home/ue4/carla && \
  ./Update.sh && \
  make CarlaUE4Editor && \
  make PythonAPI && \
  make build.utils
WORKDIR /home/ue4/carla
# Going off of memory so this may not be how COPY works. But you want to put MyPackage.sh in /carla
COPY MyPackage.sh .  
RUN cat MyPackage.sh > Util/BuildTools/Package.sh # Update Package.sh
RUN make package
RUN rm -r /home/ue4/carla/Dist

WORKDIR /home/ue4/carla

7 - Run docker build -t carla -f Carla.Dockerfile .

Hopefully that makes sense.