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)
Firefox Build System
MozillaBuild
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
Reporter | ||
Comment 1•3 years ago
|
||
I've narrowed this down to the following minimal repro:
- Install Windows-native Python
- In powershell:
pip3 install mozphab==1.0.0
- Edit
C:\Users\<user>AppData\Local\Programs\Python\Python39\Lib\site-packages\mozphab
, delete everything exceptmozphab.py
- Replace
mozphab.py
with the following contents:
try:
input(":) ?")
except Exception as e:
print(e)
- 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\
.
Reporter | ||
Comment 2•3 years ago
|
||
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
Updated•2 years ago
|
Product: mozilla.org → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•