Bug 2403290 - Playonlinux aborts at start, error includes mainwindow.py:710: SyntaxWarning
Summary: Playonlinux aborts at start, error includes mainwindow.py:710: SyntaxWarning
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: playonlinux
Version: 43
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: ---
Assignee: Robert Scheck
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2411936 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-10-11 15:08 UTC by Sean Carlos
Modified: 2026-06-21 01:10 UTC (History)
4 users (show)

Fixed In Version: playonlinux-4.4-19.el9 playonlinux-4.4-19.fc44 playonlinux-4.4-19.el8 playonlinux-4.4-19.fc43
Clone Of:
Environment:
Last Closed: 2026-06-21 00:42:53 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Sean Carlos 2025-10-11 15:08:42 UTC
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.

Comment 1 Cyril DELBEGUE 2025-10-31 22:27:39 UTC
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.

Comment 2 Davide Repetto 2025-12-06 21:28:25 UTC
FYI the fix gently provided by Cyril up here, works for me.

Comment 3 Robert Scheck 2026-06-12 22:19:55 UTC
*** Bug 2411936 has been marked as a duplicate of this bug. ***

Comment 4 Fedora Update System 2026-06-12 22:52:35 UTC
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

Comment 5 Fedora Update System 2026-06-12 22:52:35 UTC
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

Comment 6 Fedora Update System 2026-06-13 01:32:38 UTC
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.

Comment 7 Fedora Update System 2026-06-13 01:43:59 UTC
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.

Comment 8 Fedora Update System 2026-06-13 01:53:44 UTC
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.

Comment 9 Fedora Update System 2026-06-13 01:56:30 UTC
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.

Comment 10 Fedora Update System 2026-06-21 00:42:53 UTC
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.

Comment 11 Fedora Update System 2026-06-21 01:01:10 UTC
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.

Comment 12 Fedora Update System 2026-06-21 01:03:19 UTC
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.

Comment 13 Fedora Update System 2026-06-21 01:10:50 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.