Closed Bug 1738681 Opened 3 years ago Closed 2 years ago

Python 3.10: Talos tests fail with "AttributeError: module 'collections' has no attribute 'MutableSet'"

Categories

(Testing :: Talos, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1758526

People

(Reporter: rmader, Unassigned)

References

(Blocks 1 open bug)

Details

Trying to run talos on Fedora 35 with Python 3.5 3.10 fails with the error

AttributeError: module 'collections' has no attribute 'MutableSet'

Firefox Wayland/EGL development mainly happens on Fedora - not being able to run talos is thus quite unfortunate.

IIUC the problem is the "hyperframe" package: https://searchfox.org/mozilla-central/source/testing/web-platform/tests/tools/third_party/hyper/hyper/packages/hyperframe/flags.py#14

P.S. apparently collections.MutableSet has become collections.abc.MutableSet

Thanks for reporting this. Can you provide the command you used to run talos?

Flags: needinfo?(robert.mader)

Err, sure, sorry that I forgot that.

./mach talos-test --enable-webrender --enable-fission --suite sessionrestore-many-windows

The corresponding build config:

ac_add_options --enable-optimize
ac_add_options --with-ccache=sccache 
ac_add_options --with-ccache=$HOME/.mozbuild/sccache/sccache
Flags: needinfo?(robert.mader)
See Also: → 1709585

I built with those options and attempted to run on my machine, and didn't get the same result though I am on Ubuntu 18.04 so that's not unexpected.

Tried to run Fedora 35 from a boot disk but had errors when it was loading up. I noticed that Fedora 35 is also still in beta

as for the python version, the test harness creates a virtual environment using a set version of python (in this case it should be python 3.6.9--likely visible in the log output), so it shouldn't be affected by your local python version

Priority: -- → P3

The severity field is not set for this bug.
:andrej, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(aglavic)
Severity: -- → S3
Flags: needinfo?(aglavic)

(In reply to Robert Mader [:rmader] from comment #0)

Trying to run talos on Fedora 35 with Python 3.5 fails with the error

AttributeError: module 'collections' has no attribute 'MutableSet'

Could you clarify that you mean Python 3.10 (as stated in the summary?) and not 3.5 (as in comment 0)? Are you able to work around this by using an older Python version or are you blocked from running any Talos tests?

Flags: needinfo?(robert.mader)
See Also: → 1759450

(In reply to Dave Hunt [:davehunt] [he/him] ⌚GMT from comment #6)

(In reply to Robert Mader [:rmader] from comment #0)

Trying to run talos on Fedora 35 with Python 3.5 fails with the error

AttributeError: module 'collections' has no attribute 'MutableSet'

Could you clarify that you mean Python 3.10 (as stated in the summary?) and not 3.5 (as in comment 0)? Are you able to work around this by using an older Python version or are you blocked from running any Talos tests?

Duh, indeed I meant 3.10, fixed that in comment 0. I was able to work around it by manually editing the offending files.

Flags: needinfo?(robert.mader)

I managed to work around in Fedora 35 by installing Python 3.7 and using virtual env
sudo dnf install python3.7
/usr/bin/python3.7 -m venv <some_name>
source <some_name>/bin/activate
and then did a clobber build.

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.