./mach bootstrap TypeError: expected str, bytes or os.PathLike object, not NoneType
Categories
(Firefox Build System :: Bootstrap Configuration, defect)
Tracking
(firefox-esr91 unaffected, firefox96 unaffected, firefox97 unaffected, firefox98 fixed)
Tracking | Status | |
---|---|---|
firefox-esr91 | --- | unaffected |
firefox96 | --- | unaffected |
firefox97 | --- | unaffected |
firefox98 | --- | fixed |
People
(Reporter: fullpl4nch3, Assigned: glandium)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: regression)
Attachments
(1 file)
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0
Steps to reproduce:
./mach bootstrap
Actual results:
TypeError: expected str, bytes or os.PathLike object, not NoneType
File "/home/fullpl4nch3/Desktop/work/fuzzing/Browsers/Firefox/mozilla-unified/python/mozboot/mozboot/mach_commands.py", line 43, in bootstrap
bootstrapper.bootstrap(command_context.settings)
File "/home/fullpl4nch3/Desktop/work/fuzzing/Browsers/Firefox/mozilla-unified/python/mozboot/mozboot/bootstrap.py", line 391, in bootstrap
self._output_mozconfig(application, mozconfig_builder)
File "/home/fullpl4nch3/Desktop/work/fuzzing/Browsers/Firefox/mozilla-unified/python/mozboot/mozboot/bootstrap.py", line 403, in _output_mozconfig
mozconfig_path = Path(find_mozconfig(Path(self.mach_context.topdir)))
File "/usr/lib/python3.9/pathlib.py", line 1071, in new
self = cls._from_parts(args, init=False)
File "/usr/lib/python3.9/pathlib.py", line 696, in _from_parts
drv, root, parts = self._parse_args(args)
File "/usr/lib/python3.9/pathlib.py", line 680, in _parse_args
a = os.fspath(a)
Reporter | ||
Comment 1•3 years ago
|
||
This is my first ever bug report. please don't yell at me :)
Any improvements are very welcome!
Reporter | ||
Comment 2•3 years ago
|
||
P.S. to reproduce: choose 5 (build spidermonkey), on "Would you like to run a configuration wizard to ensure Mercurial is" select yes.
Reporter | ||
Updated•3 years ago
|
Assignee | ||
Comment 3•3 years ago
|
||
Try this workaround: create an empty mozconfig
file in your source directory.
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 4•3 years ago
|
||
Updated•3 years ago
|
Reporter | ||
Comment 6•3 years ago
|
||
Hello.
I've created an empty mozconfig & updated the repo with hg pull && hg pull update.
Now works like a charm!
Thank u very much for your help!
Comment 7•3 years ago
|
||
bugherder |
Updated•3 years ago
|
Comment 8•3 years ago
|
||
Set release status flags based on info from the regressing bug 1744884
Updated•3 years ago
|
Comment 9•3 years ago
|
||
This is my first ever bug report. please don't yell at me :)
This was a very good first bug report, nice work! You've checked almost all of the boxes in the "perfect report checklist"™:
- ✅ Steps to reproduce
- ✅ Stack trace
- ✅ Confirmation that the fix worked
I'd just make one recommendation for future reports: Bugzilla supports Markdown-like styling, so I'd recommend wrapping multi-line terminal output in triple-backticks (```) so they get formatted nicely, like so:
TypeError: expected str, bytes or os.PathLike object, not NoneType
File "/home/fullpl4nch3/Desktop/work/fuzzing/Browsers/Firefox/mozilla-unified/python/mozboot/mozboot/mach_commands.py", line 43, in bootstrap
bootstrapper.bootstrap(command_context.settings)
File "/home/fullpl4nch3/Desktop/work/fuzzing/Browsers/Firefox/mozilla-unified/python/mozboot/mozboot/bootstrap.py", line 391, in bootstrap
self._output_mozconfig(application, mozconfig_builder)
File "/home/fullpl4nch3/Desktop/work/fuzzing/Browsers/Firefox/mozilla-unified/python/mozboot/mozboot/bootstrap.py", line 403, in _output_mozconfig
mozconfig_path = Path(find_mozconfig(Path(self.mach_context.topdir)))
File "/usr/lib/python3.9/pathlib.py", line 1071, in new
self = cls._from_parts(args, init=False)
File "/usr/lib/python3.9/pathlib.py", line 696, in _from_parts
drv, root, parts = self._parse_args(args)
File "/usr/lib/python3.9/pathlib.py", line 680, in _parse_args
a = os.fspath(a)
Thanks again 👍
Description
•