Bug 2318435

Summary: playonlinux aborts on start with error ModuleNotFoundError: No module named 'pipes'
Product: [Fedora] Fedora Reporter: Sean Carlos <sean.carlos>
Component: playonlinuxAssignee: Robert Scheck <redhat-bugzilla>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 41CC: redhat-bugzilla
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: playonlinux-4.4-13.fc40 playonlinux-4.4-13.el9 playonlinux-4.4-13.el8 playonlinux-4.4-13.fc39 playonlinux-4.4-13.fc41 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-10-23 01:33:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Sean Carlos 2024-10-13 19:53:58 UTC
$ playonlinux
Looking for python3... 3.13.0 - selected
/usr/share/playonlinux/python/mainwindow.py:709: SyntaxWarning: invalid escape sequence '\|'
  self.SupprotedIconExt = "All|*.xpm;*.XPM;*.png;*.PNG;*.ico;*.ICO;*.jpg;*.JPG;*.jpeg;*.JPEG;*.bmp;*.BMP\
Traceback (most recent call last):
  File "/usr/share/playonlinux/python/mainwindow.py", line 40, in <module>
    import lib.lng as lng
  File "/usr/share/playonlinux/python/lib/lng.py", line 6, in <module>
    from . import Variables
  File "/usr/share/playonlinux/python/lib/Variables.py", line 6, in <module>
    import wx, lib.playonlinux as playonlinux
  File "/usr/share/playonlinux/python/lib/playonlinux.py", line 8, in <module>
    import subprocess, shlex, pipes, wx
ModuleNotFoundError: No module named 'pipes'

Reproducible: Always

Steps to Reproduce:
1. Start playonlinux in a terminal
2. View error which occurs due to python change I assume.

Comment 1 Robert Scheck 2024-10-13 21:44:19 UTC
Yes, this is related to Python 3.13, as https://docs.python.org/3/whatsnew/3.13.html mentions that the pipes module was removed.

Could you please try whether the following command (run as root) solves the issue for you?

  sed -e 's/pipes, //' -e 's/pipes\./shlex./' -i /usr/share/playonlinux/python/lib/playonlinux.py

If it leads to a new error, please provide that error as well. Resetting to current state would be using "dnf reinstall playonlinux".

Comment 2 Sean Carlos 2024-10-13 22:17:36 UTC
Thank you Robert, your suggested change does solve my reported problem.  Kind regards, Sean

Comment 3 Fedora Update System 2024-10-14 21:39:45 UTC
FEDORA-2024-4839396535 (playonlinux-4.4-13.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-4839396535

Comment 4 Fedora Update System 2024-10-14 21:39:46 UTC
FEDORA-2024-6f3a83d1ac (playonlinux-4.4-13.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-6f3a83d1ac

Comment 5 Fedora Update System 2024-10-14 21:39:46 UTC
FEDORA-EPEL-2024-2e5434f214 (playonlinux-4.4-13.el8) has been submitted as an update to Fedora EPEL 8.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-2e5434f214

Comment 6 Fedora Update System 2024-10-14 21:39:47 UTC
FEDORA-EPEL-2024-cd67d23456 (playonlinux-4.4-13.el9) has been submitted as an update to Fedora EPEL 9.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-cd67d23456

Comment 7 Fedora Update System 2024-10-15 01:23:02 UTC
FEDORA-2024-6f3a83d1ac has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-6f3a83d1ac`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-6f3a83d1ac

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2024-10-15 02:24:29 UTC
FEDORA-2024-4839396535 has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-4839396535`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-4839396535

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Fedora Update System 2024-10-15 02:51:50 UTC
FEDORA-EPEL-2024-cd67d23456 has been pushed to the Fedora EPEL 9 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-cd67d23456

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 10 Fedora Update System 2024-10-15 02:58:29 UTC
FEDORA-2024-3db58393a8 has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-3db58393a8`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-3db58393a8

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 11 Fedora Update System 2024-10-15 03:01:28 UTC
FEDORA-EPEL-2024-2e5434f214 has been pushed to the Fedora EPEL 8 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-2e5434f214

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 12 Fedora Update System 2024-10-23 01:33:49 UTC
FEDORA-2024-4839396535 (playonlinux-4.4-13.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 13 Fedora Update System 2024-10-23 02:22:53 UTC
FEDORA-EPEL-2024-cd67d23456 (playonlinux-4.4-13.el9) has been pushed to the Fedora EPEL 9 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 14 Fedora Update System 2024-10-23 02:38:47 UTC
FEDORA-EPEL-2024-2e5434f214 (playonlinux-4.4-13.el8) has been pushed to the Fedora EPEL 8 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 15 Fedora Update System 2024-10-23 02:52:04 UTC
FEDORA-2024-3db58393a8 (playonlinux-4.4-13.fc39) has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 16 Fedora Update System 2024-10-26 02:56:28 UTC
FEDORA-2024-6f3a83d1ac (playonlinux-4.4-13.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.