Bug 2403290
| Summary: | Playonlinux aborts at start, error includes mainwindow.py:710: SyntaxWarning | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Sean Carlos <sean.carlos> |
| Component: | playonlinux | Assignee: | Robert Scheck <redhat-bugzilla> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | urgent | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 43 | CC: | chupokabro, cyril1929, redhat-bugzilla, red |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | playonlinux-4.4-19.el9 playonlinux-4.4-19.fc44 playonlinux-4.4-19.el8 playonlinux-4.4-19.fc43 | Doc Type: | --- |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2026-06-21 00:42:53 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: | |||
This is an old API that has been removed since Python 3.10.
The problem can be corrected by replacing line 36 of the file `/usr/share/playonlinux/python/setupwindow/POL_SetupFrame.py`:
```
urllib.request.URLopener.version = Variables.userAgent
```
with:
```
opener = urllib.request.build_opener()
opener.addheaders = [('User-Agent', Variables.userAgent)]
urllib.request._urlopener = opener
```
I think these modifications should be added to the patch applied to the RPM sources.
FYI the fix gently provided by Cyril up here, works for me. *** Bug 2411936 has been marked as a duplicate of this bug. *** FEDORA-2026-5a2ca8d4f7 (playonlinux-4.4-19.fc43) has been submitted as an update to Fedora 43. https://bodhi.fedoraproject.org/updates/FEDORA-2026-5a2ca8d4f7 FEDORA-EPEL-2026-174003b03a (playonlinux-4.4-19.el8) has been submitted as an update to Fedora EPEL 8. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-174003b03a FEDORA-EPEL-2026-f125af1512 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-2026-f125af1512 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2026-5a2ca8d4f7 has been pushed to the Fedora 43 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-5a2ca8d4f7` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-5a2ca8d4f7 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-EPEL-2026-174003b03a 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-2026-174003b03a See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2026-be83b0270e has been pushed to the Fedora 44 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-be83b0270e` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-be83b0270e See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-EPEL-2026-f125af1512 (playonlinux-4.4-19.el9) has been pushed to the Fedora EPEL 9 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2026-be83b0270e (playonlinux-4.4-19.fc44) has been pushed to the Fedora 44 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-EPEL-2026-174003b03a (playonlinux-4.4-19.el8) has been pushed to the Fedora EPEL 8 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2026-5a2ca8d4f7 (playonlinux-4.4-19.fc43) has been pushed to the Fedora 43 stable repository. If problem still persists, please make note of it in this bug report. |
Playonlinux aborts at start Reproducible: Always Steps to Reproduce: 1. Run playonlinux Actual Results: Output: $ playonlinux Looking for python3... 3.14.0 - selected /usr/share/playonlinux/python/mainwindow.py:710: SyntaxWarning: "\|" is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\|"? A raw string is also an option. \|XPM (*.xpm)|*.xpm;*.XPM\ 1.0 Traceback (most recent call last): File "/usr/share/playonlinux/python/mainwindow.py", line 45, in <module> from setupwindow import gui_server File "/usr/share/playonlinux/python/setupwindow/gui_server.py", line 27, in <module> from .POL_SetupFrame import POL_SetupFrame File "/usr/share/playonlinux/python/setupwindow/POL_SetupFrame.py", line 36, in <module> urllib.request.URLopener.version = Variables.userAgent # Arg ... ^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'urllib.request' has no attribute 'URLopener' Additional Information: Commenting out this line: urllib.request.URLopener.version = Variables.userAgent # Arg ... in /usr/share/playonlinux/python/setupwindow/POL_SetupFrame.py allows playonlinux to start. I'm not sure of the further implications.