Closed Bug 2010565 Opened 10 months ago Closed 10 months ago

[deb13] sixgill: AttributeError: module 'typing' has no attribute 're'

Categories

(Firefox Build System :: Toolchains, task)

task

Tracking

(firefox149 fixed)

RESOLVED FIXED
149 Branch
Tracking Status
firefox149 --- fixed

People

(Reporter: jcristau, Assigned: jcristau)

References

Details

Attachments

(1 file, 1 external file)

The sixgill toolchain task fails when using the deb13-toolchain-build docker image:

[task 2026-01-15T06:06:47.034+00:00] Traceback (most recent call last):
[task 2026-01-15T06:06:47.036+00:00] File "/builds/worker/fetches/sixgill/test/run-test.py", line 131, in <module>
[task 2026-01-15T06:06:47.036+00:00] execfile(os.path.join(indir, "test.py"))
[task 2026-01-15T06:06:47.036+00:00] ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[task 2026-01-15T06:06:47.036+00:00] File "/builds/worker/fetches/sixgill/test/run-test.py", line 14, in execfile
[task 2026-01-15T06:06:47.036+00:00] exec(builtins.compile(open(thefile).read(), thefile, "exec"), globals)
[task 2026-01-15T06:06:47.036+00:00] ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[task 2026-01-15T06:06:47.036+00:00] File "/builds/worker/fetches/sixgill/test/gchazard/test.py", line 5, in <module>
[task 2026-01-15T06:06:47.036+00:00] body = process_body(load_db_entry("src_body", re.compile(r'root_arg'))[0])
[task 2026-01-15T06:06:47.036+00:00] ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[task 2026-01-15T06:06:47.036+00:00] File "/builds/worker/fetches/sixgill/test/run-test.py", line 107, in load_db_entry
[task 2026-01-15T06:06:47.036+00:00] if not isinstance(pattern, typing.re.Pattern):
[task 2026-01-15T06:06:47.036+00:00] ^^^^^^^^^
[task 2026-01-15T06:06:47.036+00:00] File "/usr/lib/python3.13/typing.py", line 3817, in getattr
[task 2026-01-15T06:06:47.036+00:00] raise AttributeError(f"module {name!r} has no attribute {attr!r}")
[task 2026-01-15T06:06:47.036+00:00] AttributeError: module 'typing' has no attribute 're'

Per https://docs.python.org/3.11/library/typing.html#typing.Pattern
"Deprecated since version 3.8, will be removed in version 3.13: The typing.re namespace is deprecated and will be removed. These types should be directly imported from typing instead."

Attachment #9537875 - Flags: review?(sphink)
Comment on attachment 9537875 [details] [diff] [review] sixgill-typing-re.patch Review of attachment 9537875 [details] [diff] [review]: ----------------------------------------------------------------- Oh wow, it is surprisingly nice to do a review in Splinter again! I really ought to vendor this code in-tree, though. Thanks for the patch.
Attachment #9537875 - Flags: review?(sphink) → review+
Status: NEW → RESOLVED
Closed: 10 months ago
Resolution: --- → FIXED
Target Milestone: --- → 149 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: