sync otoro code failed on ubuntu 11.10 64bit

RESOLVED FIXED

Status

Firefox OS
GonkIntegration
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: wdeng@mozilla.com, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

5 years ago
I'm trying to sync the code of otoro, but it's blocked.
What I did is:
cd B2G
git pull
./config.sh otoro

The last line of messages is "Fetching projects: 100% (91/91), done." and it's blocked here.

The tools versions are:
repo version v1.11.1
repo launcher version 1.18
git version 1.7.5.4
Python 2.7.2+ (default, Jul 20 2012, 22:15:08) 
[GCC 4.6.1]

If updated python from 2.7.2+ to 2.7.3, the sync processing will be OK. But there will be an error in building process:

/gecko/js/src/builtin/js2c.py, line 36
ImportError: No module named bz2
make[6]: *** [selfhosted.out.h] Error 1

Downgrade python to version 2.7.2+ and re-run build.sh, it will work.
I encountered the same error with 

ubuntu 12.04 64bit
repo version v1.11.1
       (from https://gerrit.googlesource.com/git-repo)
repo launcher version 1.18
       (from /home/hsinyi/bin/repo)
git version 1.7.9.5
Python 2.7.3 (default, Aug  1 2012, 05:14:39) 
[GCC 4.6.3]
(In reply to Hsin-Yi Tsai [:hsinyi] from comment #1)
> I encountered the same error with 
> 

I meant "ImportError: No module named bz2"

> ubuntu 12.04 64bit
> repo version v1.11.1
>        (from https://gerrit.googlesource.com/git-repo)
> repo launcher version 1.18
>        (from /home/hsinyi/bin/repo)
> git version 1.7.9.5
> Python 2.7.3 (default, Aug  1 2012, 05:14:39) 
> [GCC 4.6.3]
(In reply to wdeng@mozilla.com from comment #0)
> I'm trying to sync the code of otoro, but it's blocked.
> What I did is:
> cd B2G
> git pull
> ./config.sh otoro
> 
> The last line of messages is "Fetching projects: 100% (91/91), done." and
> it's blocked here.
> 
> The tools versions are:
> repo version v1.11.1
> repo launcher version 1.18
> git version 1.7.5.4
> Python 2.7.2+ (default, Jul 20 2012, 22:15:08) 
> [GCC 4.6.1]
> 
> If updated python from 2.7.2+ to 2.7.3, the sync processing will be OK. But
> there will be an error in building process:
> 
> /gecko/js/src/builtin/js2c.py, line 36
> ImportError: No module named bz2
> make[6]: *** [selfhosted.out.h] Error 1
> 
> Downgrade python to version 2.7.2+ and re-run build.sh, it will work.

Try "sudo apt-get install libbz2-dev" [1], and see if this helps.

[1] http://stackoverflow.com/questions/812781/pythons-bz2-module-not-compiled-by-default
(Reporter)

Comment 4

5 years ago
Hisin-Yi Tsai, than you very much. Just modify the config.sh
repo sync -j1
it will work, so I think there must be something wrong on multi-process in python scripts.
This is working for most people and there is a work around for OP.
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.