Closed Bug 1643158 Opened 1 month ago Closed 1 month ago

`six` module imported by not part of the python standard library


(Firefox Build System :: Bootstrap Configuration, defect, P3)



(firefox79 fixed)

Tracking Status
firefox79 --- fixed


(Reporter: moz, Assigned: mhentges)


(Keywords: in-triage)


(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0

Steps to reproduce:

On a fresh debian install I downloaded the bootstrap script, and executed it with the system python interpreter:

$ wget
$ chmod +x
$ python 
Could not load the bootstrap Python environment.

This should never happen. Consider filing a bug.

No module named six

Actual results:

The bootstrap script quickly terminates with the above error. Re-running with `--debug` prints the following backtrace:

Traceback (most recent call last):
File "../../", line 202, in <module>
File "../../", line 178, in main
File "../../", line 143, in ensure_environment
from mozboot.bootstrap import Bootstrapper
File "/tmp/tmphZniGv/mozboot/", line 45, in <module>

File "/tmp/tmphZniGv/mozboot/", line 9, in <module>
ImportError: No module named six

Expected results:

The bootstrap script has a comment that states that the [bootstrap process itself shouldn't rely on any 3rd party modules](, but [b8108d6]( introduced use of six to mozboot/

I'm happy to provide a patch here to enable a python2/3 friendly six-free However, it's unclear to me as a newcomer whether installation should now require `six` to be installed or the introduction of the requirement on six supercedes that comment. If the latter, then I'm happy instead to update the documentation at

apologies for the formatting. Half of my description appears to be in a codeblock

Severity: -- → S3
Keywords: in-triage
Priority: -- → P3
Assignee: nobody → mhentges depends on mozboot/, but bootstrap needs to run in a bare environment without six.

Pushed by
remove mozboot/ dependency on six r=rstewart
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla79
You need to log in before you can comment on or make changes to this bug.