mozregression error when running with Python 3.13-rc1: ModuleNotFoundError: No module named 'pipes'
Categories
(Testing :: mozregression, defect, P2)
Tracking
(Not tracked)
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).
Updated•9 months ago
|
Comment 1•8 months ago
|
||
The severity field is not set for this bug.
:zeid, could you have a look please?
For more information, please visit BugBot documentation.
Updated•8 months ago
|
Comment 2•7 months ago
|
||
Comment 3•6 months ago
|
||
Zeid - there is a patch for this bug. Could you help with finding a reviewer?
Comment 4•6 months ago
|
||
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.
Updated•6 months ago
|
Description
•