Closed Bug 1759547 Opened 3 years ago Closed 3 years ago

MozillaBuild 4.0pre0: moz-phab install-certificate "lost sys.stderr"

Categories

(Firefox Build System :: MozillaBuild, defect)

defect

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: mhentges, Unassigned)

References

Details

$ moz-phab install-certificate
Starting up..
LOGIN TO PHABRICATOR
Open this page in your browser and login to Phabricator if necessary:

https://phabricator-dev.allizom.org/conduit/login/

RuntimeError: input(): lost sys.stderr
Run moz-phab again with '--trace' to show debugging output
Blocks: 1739443

I've narrowed this down to the following minimal repro:

  1. Install Windows-native Python
  2. In powershell: pip3 install mozphab==1.0.0
  3. Edit C:\Users\<user>AppData\Local\Programs\Python\Python39\Lib\site-packages\mozphab, delete everything except mozphab.py
  4. Replace mozphab.py with the following contents:
try:
    input(":) ?")
except Exception as e:
    print(e)
  1. In MozillaBuild 4.0pre0, run moz-phab. You'll get the following output:
$ moz-phab
input(): lost sys.stderr

Note that running python3 'C:\Users\<user>AppData\Local\Programs\Python\Python39\Lib\site-packages\mozphab\mozphab.py' directly does work.
I'm guessing this has to do with the way Python generates .exe files in Scripts\.

This is because my Windows Python installation was using pip==22.0.3, which is affected by this bug.
Updating pip (python -m pip install --upgrade pip) then re-installing mozphab (python -m pip install --ignore-installed mozphab) resolved the issue.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → WORKSFORME
Product: mozilla.org → Firefox Build System
You need to log in before you can comment on or make changes to this bug.