Closed Bug 1914478 Opened 9 months ago Closed 6 months ago

mozregression error when running with Python 3.13-rc1: ModuleNotFoundError: No module named 'pipes'

Categories

(Testing :: mozregression, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: matt.fagnani, Unassigned)

References

(Depends on 1 open bug)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:131.0) Gecko/20100101 Firefox/131.0

Steps to reproduce:

I updated a mozregression installation in a Fedora 41 KDE installation with Python 3.13-rc1 using pip install -U mozregression --upgrade-strategy eager
mozregression 6.2.2 was installed.

I ran mozregression --launch 2024-08-22 and mozregression -h

Actual results:

mozregression had an error when starting which indicated that the pipes module wasn't found "ModuleNotFoundError: No module named 'pipes'" with the following trace.

mozregression --launch 2024-08-22
Traceback (most recent call last):
File "/home/matt/.local/bin/mozregression", line 5, in <module>
from mozregression.main import main
File "/home/matt/.local/lib/python3.13/site-packages/mozregression/main.py", line 9, in <module>
import pipes
ModuleNotFoundError: No module named 'pipes'

The pipes module was removed in Python 3.13 according to https://docs.python.org/3.13/whatsnew/3.13.html

"Important removals:

PEP 594: The remaining 19 “dead batteries” have been removed from the standard library: aifc, audioop, cgi, cgitb, chunk, crypt, imghdr, mailcap, msilib, nis, nntplib, ossaudiodev, pipes, sndhdr, spwd, sunau, telnetlib, uu and xdrlib.

...
Removed Modules And APIs
PEP 594: dead batteries (and other module removals)

PEP 594 removed 19 modules from the standard library, deprecated in Python 3.11:

...
pipes: use the subprocess module instead. (Contributed by Victor Stinner in gh-104773.)
"

https://docs.python.org/3/library/pipes.html showed "Deprecated since version 3.11, will be removed in version 3.13: The pipes module is deprecated (see PEP 594 for details). Please use the subprocess module instead."

mozregression -h showed the same error.

mozregression -h
Traceback (most recent call last):
File "/home/matt/.local/bin/mozregression", line 5, in <module>
from mozregression.main import main
File "/home/matt/.local/lib/python3.13/site-packages/mozregression/main.py", line 9, in <module>
import pipes
ModuleNotFoundError: No module named 'pipes'

Expected results:

mozregression should've run normally and started Firefox 131.0a1 (2024-08-22).

Priority: -- → P2
Depends on: 1914897

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

For more information, please visit BugBot documentation.

Flags: needinfo?(zeid)
Severity: -- → S3
Flags: needinfo?(zeid)
See Also: → 1926140

Zeid - there is a patch for this bug. Could you help with finding a reviewer?

Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(zeid)

Thanks, I've just added Python 3.13 to the CI workflow, and this bug is now reproduced in CI. Will look at the PR now.

Flags: needinfo?(zeid)
Status: NEW → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: