ModalAI Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Error in building voxl-build

    Ask your questions right here!
    3
    5
    291
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Thomas MacNamaraT
      Thomas MacNamara
      last edited by

      Hi, I am trying to build the Docker Image as per the instructions in the gitlab readme
      https://gitlab.com/voxl-public/system-image-build/voxl-build

      On the step

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

      I get the following error:

      Collecting pip
        Downloading https://files.pythonhosted.org/packages/f7/ce/e359cf283c0c0f2e0af7df8f16c8d79047aa1887a00a5b39b27d8afc49e2/pip-21.2.1.tar.gz (1.6MB)
          Complete output from command python setup.py egg_info:
          Traceback (most recent call last):
            File "<string>", line 1, in <module>
            File "/tmp/pip-build-1qzqBH/pip/setup.py", line 7
              def read(rel_path: str) -> str:
                               ^
          SyntaxError: invalid syntax
          
          ----------------------------------------
      Command "python setup.py 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 https://storage.googleapis.com/git-repo-downloads/repo-1 > /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

      1 Reply Last reply Reply Quote 0
      • modaltbM
        modaltb ModalAI Team
        last edited by

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

        1 Reply Last reply Reply Quote 0
        • tomT
          tom admin
          last edited by

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

          1 Reply Last reply Reply Quote 0
          • Thomas MacNamaraT
            Thomas MacNamara
            last edited by

            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 docker.run

            -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/build.sh $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

            1 Reply Last reply Reply Quote 0
            • tomT
              tom admin
              last edited by

              Great, thank you!

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Powered by NodeBB | Contributors