Closed
Bug 869035
Opened 13 years ago
Closed 13 years ago
mach build doesn't start with Python 2.7.0
Categories
(Firefox Build System :: General, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 870420
People
(Reporter: game_flea, Unassigned)
Details
Attachments
(1 file)
|
242 bytes,
text/plain
|
Details |
User Agent: Mozilla/5.0 (X11; Linux i686; rv:20.0) Gecko/20100101 Firefox/20.0
Build ID: 2013032900
Steps to reproduce:
hg clone https://hg.mozilla.org/mozilla-central
cd mozilla-central/
vi .mozconfig
time ./mach build
Actual results:
Error running mach:
['build']
The error occurred in mach itself. This is likely a bug in mach itself or a
fundamental problem with a loaded module.
Please consider filing a bug against mach by going to the URL:
https://bugzilla.mozilla.org/enter_bug.cgi?product=Core&component=mach
If filing a bug, please include the full output of mach, including this error
message.
The details of the failure are as follows:
ValueError: invalid option string '-h': must start with a character u'+'
File "/home/<snip>...</snip>/Firefox_Build/mozilla-central/python/mach/mach/main.py", line 214, in run
return self._run(argv)
File "/home/<snip>...</snip>/Firefox_Build/mozilla-central/python/mach/mach/main.py", line 241, in _run
parser = self.get_argument_parser()
File "/home/<snip>...</snip>/Firefox_Build/mozilla-central/python/mach/mach/main.py", line 449, in get_argument_parser
Registrar.populate_argument_parser(subparser)
File "/home/<snip>...</snip>/Firefox_Build/mozilla-central/python/mach/mach/registrar.py", line 29, in populate_argument_parser
**handler.parser_args[1])
File "/usr/lib/python2.7/argparse.py", line 1049, in add_parser
parser = self._parser_class(**kwargs)
File "/usr/lib/python2.7/argparse.py", line 1569, in __init__
help=_('show this help message and exit'))
File "/usr/lib/python2.7/argparse.py", line 1246, in add_argument
kwargs = self._get_optional_kwargs(*args, **kwargs)
File "/usr/lib/python2.7/argparse.py", line 1369, in _get_optional_kwargs
raise ValueError(msg % tup)
real 0m0.852s
user 0m0.654s
sys 0m0.114s
Expected results:
build should have started
Comment 1•13 years ago
|
||
What version of Python are you using? I wouldn't be surprised if this were a bug in Python 2.7.0 or 2.7.1.
Flags: needinfo?(game_flea)
| Reporter | ||
Comment 2•13 years ago
|
||
python
Python 2.7 (r27:82500, Aug 07 2010, 16:54:59) [GCC] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.version
'2.7 (r27:82500, Aug 07 2010, 16:54:59) [GCC]'
>>>
Flags: needinfo?(game_flea)
Comment 3•13 years ago
|
||
I assume "2.7" means 2.7.0. This makes sense since it was released on 2010-07-03 and your build is from 2010-08-07. You'll need to upgrade Python to build the tree. We should probably require Python 2.7.2+ to build the tree and display a very prominent error message if you don't have it installed.
Status: UNCONFIRMED → ASSIGNED
Component: mach → Build Config
Ever confirmed: true
Summary: mach build doesn't start → mach build doesn't start with Python 2.7.0
Version: 20 Branch → Trunk
Comment 4•13 years ago
|
||
We now require 2.7.3 to build, so this bug has been worked around.
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
Updated•8 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•