Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Repo sync failed : invalid branch name

428 views
Skip to first unread message

linux...@gmail.com

unread,
Apr 3, 2013, 2:00:14 AM4/3/13
to
Dear all,

I am following the steps mentioned in
https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Preparing_for_your_first_B2G_build to build Firefox OS for emulator-x86.

But during configuration i am getting the following error.


[dhyan@dhyan B2G]$ sudo ./config.sh emulator-x86
File "./repo", line 220
print("fatal: invalid branch name '%s'" % branch, file=sys.stderr)
^
SyntaxError: invalid syntax
Repo sync failed

Can some on please help on fixing this ?

Thanks
dhyan

firef...@gmail.com

unread,
Apr 3, 2013, 5:56:37 AM4/3/13
to
Hi Dhyan,

Try this...

git clone git://github.com/mozilla-b2g/B2G.git
cd B2G
git fetch origin
git checkout origin/master
./config.sh emulator-x86

abhil...@gmail.com

unread,
Apr 3, 2013, 9:46:37 AM4/3/13
to
Sorry I tried this.
but its not working :(

Jed Davis

unread,
Apr 3, 2013, 2:24:50 PM4/3/13
to linux...@gmail.com, dev...@lists.mozilla.org
On Tue, Apr 02, 2013 at 11:00:14PM -0700, linux...@gmail.com wrote:
> [dhyan@dhyan B2G]$ sudo ./config.sh emulator-x86
> File "./repo", line 220
> print("fatal: invalid branch name '%s'" % branch, file=sys.stderr)

Commit fa9c01dd7 updates to a new version of repo, which appears to be
compatible with Python 3 instead of 2.x only, but now requires at least
Python 2.6.

(Specifically: Python 3 replaced the print statement syntax with a
function named "print", as seen in the error message above; Python 2.6+
supports it if you opt in with "from __future__ import print_function",
as the new repo script does.)

--Jed

karthik....@gmail.com

unread,
May 15, 2013, 8:16:35 AM5/15/13
to

Hi Dhyan,

i am also facing the same problem.

i am also Trying to repo in ubuntu 8.04.4 (hardy heron). But i am not able to repo in it displaying the same error.

[ File "./repo", line 220

print("fatal: invalid branch name '%s'" % branch, file=sys.stderr)
^
SyntaxError: invalid syntax
Repo sync failed
]

Have you resolved with the problem and obtained any solution ?

if so kindly share the solution for the above.


Thanks & Regards,
Karthik K

Julien Wajsberg

unread,
May 15, 2013, 8:27:23 AM5/15/13
to karthik....@gmail.com, dev...@lists.mozilla.org
Hi,

as already explained in the thread, you need at least python 2.6.

Regards,
--
Julien

signature.asc

karthik....@gmail.com

unread,
May 21, 2013, 6:18:40 AM5/21/13
to
Hi Julien,
Thanks Julien Wajsberg :). yes the problem is solved because of your tip and now we are able to download using repo .Sorry for the delay response and indeed it helped us at the right time.

Thanks and Regards,
Karthik K.
0 new messages