Closed Bug 1751564 Opened 3 years ago Closed 3 years ago

./mach bootstrap TypeError: expected str, bytes or os.PathLike object, not NoneType

Categories

(Firefox Build System :: Bootstrap Configuration, defect)

x86_64
Linux
defect

Tracking

(firefox-esr91 unaffected, firefox96 unaffected, firefox97 unaffected, firefox98 fixed)

RESOLVED FIXED
98 Branch
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)

This is my first ever bug report. please don't yell at me :)
Any improvements are very welcome!

P.S. to reproduce: choose 5 (build spidermonkey), on "Would you like to run a configuration wizard to ensure Mercurial is" select yes.

OS: Unspecified → Linux
Hardware: Unspecified → x86_64
Regressed by: 1744884

Try this workaround: create an empty mozconfig file in your source directory.

Blocks: mach-busted
Assignee: nobody → mh+mozilla
Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/6ba298d9bc1e Make mozboot.find_mozconfig return a Path. r=firefox-build-system-reviewers,andi

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!

Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 98 Branch

Set release status flags based on info from the regressing bug 1744884

Has Regression Range: --- → yes

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 👍

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: