Closed Bug 836877 Opened 13 years ago Closed 13 years ago

mach should fail if running on Python 3

Categories

(Firefox Build System :: Mach Core, enhancement)

x86_64
Linux
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla21

People

(Reporter: alex_y_xu, Assigned: gps)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:21.0) Gecko/20100101 Firefox/21.0 Build ID: 20130126165632 Steps to reproduce: hg clone .../mozilla-central cd mozilla-central ./mach build Using Python 3.2.3 on Gentoo. Actual results: Traceback (most recent call last): File "mach", line 53, in <module> import mach.main ImportError: No module named mach.main During handling of the above exception, another exception occurred: Traceback (most recent call last): File "mach", line 57, in <module> import mach.main File "/home/alex/mozilla/python/mach/mach/main.py", line 29, in <module> from .logging import LoggingManager File "/home/alex/mozilla/python/mach/mach/logging.py", line 12, in <module> import blessings File "/home/alex/mozilla/python/blessings/blessings/__init__.py", line 275 u''.join(self._resolve_formatter(s) for s in formatters)) ^ SyntaxError: invalid syntax
We don't support building on Python 3. We should catch this.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: mach build fails with "ImportError: No module named mach.main" (Python 3) → mach should fail if running on Python 3
Assignee: nobody → gps
Status: NEW → ASSIGNED
Attachment #708743 - Flags: review?(ted)
f+, though I'd make the error message more like: "Mach requires python 2.7.x to run"..., perhaps refering o the bug for getting our **** on python 3
Attachment #708743 - Flags: review?(ted) → review+
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: