repo init fails with 'TypeError: execv() arg 2 must contain only strings'

517 views
Skip to first unread message

Adam Baxter

unread,
Jul 10, 2017, 2:07:29 AM7/10/17
to Repo and Gerrit Discussion
I'm trying to run repo in a Docker build, but I believe this happens no matter where you run it.

Step 6/6 : RUN repo init -b RB16.04a -u https://git.allseenalliance.org/gerrit/devtools/manifest.git
 ---> Running in fd32ff60bbba
gpg: keybox '/root/.repoconfig/gnupg/pubring.kbx' created
gpg: /root/.repoconfig/gnupg/trustdb.gpg: trustdb created
gpg: key 16530D5E920F5C65: public key "Repo Maintainer <re...@android.kernel.org>" imported
gpg: key 67B7E448692B382C: public key "Conley Owens <cc...@android.com>" imported
gpg: Total number processed: 2
gpg:               imported: 2
   35d2221..259f165  master     -> origin/master

Traceback (most recent call last):
  File "/usr/bin/repo", line 883, in <module>
    main(sys.argv[1:])
  File "/usr/bin/repo", line 871, in main
    os.execv(sys.executable, me)
TypeError: execv() arg 2 must contain only strings
The command '/bin/sh -c repo init -b RB16.04a -u https://git.allseenalliance.org/gerrit/devtools/manifest.git' returned a non-zero code: 1


The Dockerfile is attached if that helps.

Regards,

Adam Baxter
Dockerfile.txt

slob...@google.com

unread,
Mar 13, 2018, 7:41:17 PM3/13/18
to Repo and Gerrit Discussion
I had the same problem...in my case, it turns out that repo commands won't work if your current working directory is '/'

Eric Tsai

unread,
Mar 14, 2018, 2:10:24 PM3/14/18
to Repo and Gerrit Discussion
There's no RB16.04a branch in https://git.allseenalliance.org/gerrit/devtools/manifest.git.

Adam Baxter於 2017年7月10日星期一 UTC+8下午2時07分29秒寫道:
Reply all
Reply to author
Forward
0 new messages