[Bug 2056595] Re: Lot of SyntaxWarning messages for rhythmbox
Still happening during install of Ubuntu 25.10 Questing:
Desempaquetando librhythmbox-core10:arm64 (3.4.8-1ubuntu2) sobre
(3.4.8-1ubuntu1) ...
/usr/lib/rhythmbox/plugins/alternative-toolbar/alttoolbar_plugins.py:171:
SyntaxWarning: invalid escape sequence '\('
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2056595
Title:
Lot of SyntaxWarning messages for rhythmbox
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rhythmbox/+bug/2056595/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2056595] Re: Lot of SyntaxWarning messages for rhythmbox
** Bug watch added: Debian Bug tracker #1074390 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1074390 ** Also affects: rhythmbox (Debian) via https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1074390 Importance: Unknown Status: Unknown -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2056595 Title: Lot of SyntaxWarning messages for rhythmbox To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/rhythmbox/+bug/2056595/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2056595] Re: Lot of SyntaxWarning messages for rhythmbox
** Changed in: rhythmbox (Debian) Status: Unknown => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2056595 Title: Lot of SyntaxWarning messages for rhythmbox To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/rhythmbox/+bug/2056595/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2056595] Re: Lot of SyntaxWarning messages for rhythmbox
The rhythmbox issue should be fixed in the current version, the remaining warning is from the alternative toolbar plugin and reported as bug #2071679 ** Changed in: rhythmbox (Ubuntu) Status: Triaged => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2056595 Title: Lot of SyntaxWarning messages for rhythmbox To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/rhythmbox/+bug/2056595/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2056595] Re: Lot of SyntaxWarning messages for rhythmbox
** Changed in: rhythmbox (Ubuntu) Status: Confirmed => Triaged ** Changed in: rhythmbox (Ubuntu) Importance: Undecided => Low ** Tags added: dcr-freezer -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2056595 Title: Lot of SyntaxWarning messages for rhythmbox To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/rhythmbox/+bug/2056595/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2056595] Re: Lot of SyntaxWarning messages for rhythmbox
I confirm seeing the same errors in Rhythmbox version 3.4.7 that comes
with Ubuntu 24.04.2 when the Python Console and Song Lyrics plugins are
enabled..
$ rhythmbox
do_connect: could not connect to socket
connect: No such file or directory
/usr/lib/rhythmbox/plugins/alternative-toolbar/alttoolbar_plugins.py:171:
SyntaxWarning: invalid escape sequence '\('
translation = re.sub('\(..\)', '', translation, flags=re.DOTALL)
(rhythmbox:94333): Gtk-WARNING **: 12:03:23.973: actionhelper: action
app.play-repeat can't be activated due to parameter type mismatch
(parameter type b, target type NULL)
(rhythmbox:94333): Gtk-WARNING **: 12:03:23.973: actionhelper: action
app.play-shuffle can't be activated due to parameter type mismatch
(parameter type b, target type NULL)
** (rhythmbox:94333): WARNING **: 12:03:24.075: Could not open device
/dev/radio0
/usr/lib/x86_64-linux-gnu/rhythmbox/plugins/lyrics/lyrics.py:44: SyntaxWarning:
invalid escape sequence '\('
LYRIC_TITLE_STRIP=["\(live[^\)]*\)", "\(acoustic[^\)]*\)", "\([^\)]*mix\)",
"\([^\)]*version\)", "\([^\)]*edit\)", "\(feat[^\)]*\)"]
/usr/lib/x86_64-linux-gnu/rhythmbox/plugins/lyrics/lyrics.py:44: SyntaxWarning:
invalid escape sequence '\('
LYRIC_TITLE_STRIP=["\(live[^\)]*\)", "\(acoustic[^\)]*\)", "\([^\)]*mix\)",
"\([^\)]*version\)", "\([^\)]*edit\)", "\(feat[^\)]*\)"]
/usr/lib/x86_64-linux-gnu/rhythmbox/plugins/lyrics/lyrics.py:44: SyntaxWarning:
invalid escape sequence '\('
LYRIC_TITLE_STRIP=["\(live[^\)]*\)", "\(acoustic[^\)]*\)", "\([^\)]*mix\)",
"\([^\)]*version\)", "\([^\)]*edit\)", "\(feat[^\)]*\)"]
/usr/lib/x86_64-linux-gnu/rhythmbox/plugins/lyrics/lyrics.py:44: SyntaxWarning:
invalid escape sequence '\('
LYRIC_TITLE_STRIP=["\(live[^\)]*\)", "\(acoustic[^\)]*\)", "\([^\)]*mix\)",
"\([^\)]*version\)", "\([^\)]*edit\)", "\(feat[^\)]*\)"]
/usr/lib/x86_64-linux-gnu/rhythmbox/plugins/lyrics/lyrics.py:44: SyntaxWarning:
invalid escape sequence '\('
LYRIC_TITLE_STRIP=["\(live[^\)]*\)", "\(acoustic[^\)]*\)", "\([^\)]*mix\)",
"\([^\)]*version\)", "\([^\)]*edit\)", "\(feat[^\)]*\)"]
/usr/lib/x86_64-linux-gnu/rhythmbox/plugins/lyrics/lyrics.py:44: SyntaxWarning:
invalid escape sequence '\('
LYRIC_TITLE_STRIP=["\(live[^\)]*\)", "\(acoustic[^\)]*\)", "\([^\)]*mix\)",
"\([^\)]*version\)", "\([^\)]*edit\)", "\(feat[^\)]*\)"]
/usr/lib/x86_64-linux-gnu/rhythmbox/plugins/lyrics/TerraParser.py:39:
SyntaxWarning: invalid escape sequence '\w'
pattern = re.compile("&(#?\w+?);")
/usr/lib/x86_64-linux-gnu/rhythmbox/plugins/lyrics/JlyricParser.py:49:
SyntaxWarning: invalid escape sequence '\.'
m = re.search('',
result)
Thank you @whitemousegary for your solution.
I like to add the solution for the Song Lyric Plugin. I did
$ sudo nano /usr/lib/x86_64-linux-gnu/rhythmbox/plugins/lyrics/lyrics.py
Goto line 44 to change:
LYRIC_TITLE_STRIP=["\(live[^\)]*\)", "\(acoustic[^\)]*\)",
"\([^\)]*mix\)", "\([^\)]*version\)", "\([^\)]*edit\)",
"\(feat[^\)]*\)"]
to
LYRIC_TITLE_STRIP=["\\(live[^\\)]*\\)", "\\(acoustic[^\\)]*\\)",
"\\([^\\)]*mix\\)", "\\([^\\)]*version\\)", "\\([^\\)]*edit\\)",
"\\(feat[^\\)]*\\)"]
So now when Rhythmbox is started, I see these other issues. Have not solved
them yet.
$ rhythmbox
do_connect: could not connect to socket
connect: No such file or directory
(rhythmbox:108303): Gtk-WARNING **: 12:32:52.918: actionhelper: action
app.play-repeat can't be activated due to parameter type mismatch
(parameter type b, target type NULL)
(rhythmbox:108303): Gtk-WARNING **: 12:32:52.918: actionhelper: action
app.play-shuffle can't be activated due to parameter type mismatch
(parameter type b, target type NULL)
** (rhythmbox:108303): WARNING **: 12:32:52.995: Could not open device
/dev/radio0
/usr/lib/x86_64-linux-gnu/rhythmbox/plugins/lyrics/TerraParser.py:39:
SyntaxWarning: invalid escape sequence '\w'
pattern = re.compile("&(#?\w+?);")
/usr/lib/x86_64-linux-gnu/rhythmbox/plugins/lyrics/JlyricParser.py:49:
SyntaxWarning: invalid escape sequence '\.'
m = re.search('',
result)
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2056595
Title:
Lot of SyntaxWarning messages for rhythmbox
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rhythmbox/+bug/2056595/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2056595] Re: Lot of SyntaxWarning messages for rhythmbox
The "SyntaxWarning" is complaining about the incorrectly escaped string
literal. Backslash followed by a bracket char, i.e. "\(", is not a
valid to python string literal escape sequence.
It was the regular expression library needed to escape the bracket char.
To do it correctly, change line#171 from
translation = re.sub('\(..\)', '', translation, flags=re.DOTALL)
to
translation = re.sub('\\(..\\)', '', translation, flags=re.DOTALL)
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2056595
Title:
Lot of SyntaxWarning messages for rhythmbox
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rhythmbox/+bug/2056595/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2056595] Re: Lot of SyntaxWarning messages for rhythmbox
Same here:
Setting up rhythmbox-plugins (3.4.7-2ubuntu2) ...
/usr/lib/x86_64-linux-gnu/rhythmbox/plugins/lyrics/AstrawebParser.py:64:
SyntaxWarning: invalid escape sequence '\/'
url = re.split('(\/display[^"]*)', entry)[1]
/usr/lib/x86_64-linux-gnu/rhythmbox/plugins/lyrics/AstrawebParser.py:66:
SyntaxWarning: invalid escape sequence '\/'
title = re.split('(\/display[^>]*)([^<]*)', entry)[2][1:].strip()
[...]
** Tags added: noble
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2056595
Title:
Lot of SyntaxWarning messages for rhythmbox
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rhythmbox/+bug/2056595/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2056595] Re: Lot of SyntaxWarning messages for rhythmbox
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: rhythmbox (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2056595 Title: Lot of SyntaxWarning messages for rhythmbox To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/rhythmbox/+bug/2056595/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
