Error in building voxl-build

  • Hi, I am trying to build the Docker Image as per the instructions in the gitlab readme

    On the step

    docker build -t voxl-build -f ubuntu-xenial.Dockerfile .

    I get the following error:

    Collecting pip
      Downloading (1.6MB)
        Complete output from command python egg_info:
        Traceback (most recent call last):
          File "<string>", line 1, in <module>
          File "/tmp/pip-build-1qzqBH/pip/", line 7
            def read(rel_path: str) -> str:
        SyntaxError: invalid syntax
    Command "python egg_info" failed with error code 1 in /tmp/pip-build-1qzqBH/pip/
    You are using pip version 8.1.1, however version 21.2.1 is available.
    You should consider upgrading via the 'pip install --upgrade pip' command.
    The command '/bin/sh -c apt-get update    && apt-get -y --quiet --no-install-recommends install       gcc-4.8-multilib       g++-4.8-multilib       gawk       wget       git-core       diffstat       unzip       texinfo       gcc-multilib       build-essential       chrpath       bzip2       zip       cpio       bc       make       autoconf       automake       libtool       wget       curl       sudo       libxml-simple-perl       doxygen       qemu-user-static       android-tools-fsutils       debootstrap       schroot       vim       less       iputils-ping       python       python3.6       python-pip       python-setuptools       python-tk       openssh-server    && apt-get clean autoclean    && pip install --upgrade pip    && curl > /usr/bin/repo    && chmod a+x /usr/bin/repo    && echo "dash dash/sh boolean false" | debconf-set-selections    && DEBIAN_FRONTEND=noninteractive dpkg-reconfigure dash' returned a non-zero code: 1

    I have gotten this error in Ubuntu 20 and a clean install of Ubuntu 18

    This is with a fresh pull from the repo

  • Dev Team

    Hey @Thomas-MacNamara , we're looking into this now.

  • Dev Team

    @Thomas-MacNamara The issue should be fixed now, go ahead and pull the changes and give it another try.

  • I can confirm it does work now.

    Also not sure if it helps but after running through this about 10 times I got tired of copy and pasting the steps from the docs and modified the last line of the

    -w /home/user ${optImg} /bin/bash -c "echo doing the first steps from the docs ; cd $optDir ; sudo -S <<< "user" chown user . ; rm -rfv $optDir ; echo user; source /home/user/ $optDir; $SHELL"

    This just does the rest of the steps at once and starts building

    I am sure most people wouldn't need it but i might be useful for someone

  • Dev Team

    Great, thank you!

Log in to reply