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('<div class=\'title\'><a href=\'(/artist/[^\.]*\.html)\'>', 
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('<div class=\'title\'><a href=\'(/artist/[^\.]*\.html)\'>', 
result)

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to rhythmbox in 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


-- 
desktop-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to