Closed Bug 1732656 Opened 3 years ago Closed 3 years ago

Can't bootstrap on Fedora 35 - AttributeError: module 'collections' has no attribute 'Sequence'

Categories

(Firefox Build System :: Bootstrap Configuration, defect)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1719144

People

(Reporter: stransky, Unassigned)

References

Details

I'm unable to build latest trunk on Fedora 35, it complains:

[komat@localhost src2]$ ./mach bootstrap
Traceback (most recent call last):
File "/home/komat/src2/./mach", line 153, in <module>
main(sys.argv[1:])
File "/home/komat/src2/./mach", line 145, in main
mach = check_and_get_mach(os.path.dirname(os.path.realpath(file)))
File "/home/komat/src2/./mach", line 132, in check_and_get_mach
return load_mach(dir_path, mach_path)
File "/home/komat/src2/./mach", line 120, in load_mach
return mach_bootstrap.bootstrap(dir_path)
File "/home/komat/src2/build/mach_bootstrap.py", line 210, in bootstrap
import mach.base
File "/home/komat/src2/python/mach/mach/base.py", line 7, in <module>
from mach.telemetry import NoopTelemetry
File "/home/komat/src2/python/mach/mach/telemetry.py", line 14, in <module>
from mozbuild.base import MozbuildObject, BuildEnvironmentNotFoundException
File "/home/komat/src2/python/mozbuild/mozbuild/base.py", line 18, in <module>
from mach.mixin.process import ProcessExecutionMixin
File "/home/komat/src2/python/mach/mach/mixin/process.py", line 15, in <module>
from mozbuild.util import ensure_subprocess_env
File "/home/komat/src2/python/mozbuild/mozbuild/util.py", line 786, in <module>
class HierarchicalStringList(object):
File "/home/komat/src2/python/mozbuild/mozbuild/util.py", line 812, in HierarchicalStringList
class StringListAdaptor(collections.Sequence):
AttributeError: module 'collections' has no attribute 'Sequence'

See Also: → 1718878

I don't think you're on the latest trunk :)
I'm going to mark this as a dupe, but feel to re-open if an out-of-date wasn't the cause of the issue here.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE

This is really latest trunk and up-to date distro with python 3.10.

Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---

What is your current revision? Why is StringListAdaptor subclassing collections.Sequence when, in central, it's collections.abc.Sequence? When you are referring to trunk, are you referring to a specific release of Firefox, or the development tree?

The cause of the failure (collections.<ABC> + python 3.10+) is known, but it was fixed in early July, so I need additional details about your checkout.

Flags: needinfo?(stransky)

You're right. Looks like hg update silently failed on my box.
Thanks.

Status: REOPENED → RESOLVED
Closed: 3 years ago3 years ago
Flags: needinfo?(stransky)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.