Menu

#73 sgain becomes None

v1.0 (example)
closed
nobody
None
5
2023-09-22
2015-11-09
Hugo G.
No

Recently (after an upgrade, I use Manjaro which is based on aArch) I' ve starte to get this error in IDJC:

Traceback (most recent call last):
  File "/usr/lib/idjc/site-packages/idjc/playergui.py", line 2711, in cb_toggle
    self.handle_play_button(widget, widget.get_active())
  File "/usr/lib/idjc/site-packages/idjc/playergui.py", line 1547, in handle_play_button
    if self.player_startup():
  File "/usr/lib/idjc/site-packages/idjc/playergui.py", line 1653, in player_startup
    self.gain = float(sgain)
ValueError: could not convert string to float: None

This happens whenever I select an MP3 file to play from the playlist or when a new file has to play in any playlist. The player stops and I cannot start it, however, I can seek to +1 seconds and everythin plays normally.

I' ve done a workaround changing the code to

        try:
                self.gain = float(sgain)
        except ValueError:
                self.gain = 0.0;

But I have no idea what's going on. I asume this has to do with applying ReplayGain when playing a file. Any ideas where I should start troubleshooting? I' m on 0.8.14

Thanks,

Hugo G.

Related

Support Requests: #73

Discussion

  • Stephen Fairchild

    Can you make one of those mp3 files avaliable to me for testing?

     
  • Magnus Holmgren

    Magnus Holmgren - 2015-11-22

    I have the same problem. It happens with all MP3 files. The code where the exception occurs was introduced in commit 7b713e ("Loudness metadata now migrates properly from 0.8.8."), but that was 2½ years ago and I had been using newer versions for a long time before this bug appeared. I suspect something has changed in the library used to read MP3 metadata. I'm using Debian testing (Stretch). If you aren't yourself, you can see which version of other packages idjc uses on https://packages.debian.org/stretch/idjc

     
  • Stephen Fairchild

    I have reproduced the bug after installing the latest version of mutagen.

     
  • Stephen Fairchild

    It appears to be fixed now.

     
  • zoschel

    zoschel - 2016-01-01

    Same Problem

    Kernel Linux 4.3.3-2-ARCH x86_64
    Version 64-bit
    MATE 1.12.1
    Traceback (most recent call last):
    File "/usr/lib/idjc/site-packages/idjc/playergui.py", line 2779, in cb_toggle
    self.handle_play_button(widget, widget.get_active())
    File "/usr/lib/idjc/site-packages/idjc/playergui.py", line 1605, in handle_play_button
    if self.player_startup():
    File "/usr/lib/idjc/site-packages/idjc/playergui.py", line 1711, in player_startup
    self.gain = float(sgain)
    ValueError: could not convert string to float: None
    Toggle OFF recieved for signal: Play
    Toggle ON recieved for signal: Play

     
    • Hugo G.

      Hugo G. - 2016-01-01

      If it's already fixed upstream, the AUR package idjc-git should contain the
      fix. It's the new version of Mutagen that's causing the problem for people
      in rolling distros or in Unstable.

      On Fri, Jan 1, 2016 at 6:52 AM, zoschel zoschel71@users.sf.net wrote:

      Same Problem

      Kernel Linux 4.3.3-2-ARCH x86_64
      Version 64-bit
      MATE 1.12.1
      Traceback (most recent call last):
      File "/usr/lib/idjc/site-packages/idjc/playergui.py", line 2779, in
      cb_toggle
      self.handle_play_button(widget, widget.get_active())
      File "/usr/lib/idjc/site-packages/idjc/playergui.py", line 1605, in
      handle_play_button
      if self.player_startup():
      File "/usr/lib/idjc/site-packages/idjc/playergui.py", line 1711, in
      player_startup
      self.gain = float(sgain)
      ValueError: could not convert string to float: None
      Toggle OFF recieved for signal: Play
      Toggle ON recieved for signal: Play


      Status: open
      Group: v1.0 (example)
      Created: Mon Nov 09, 2015 07:24 AM UTC by Hugo G.
      Last Updated: Mon Nov 23, 2015 06:08 PM UTC
      Owner: nobody

      Recently (after an upgrade, I use Manjaro which is based on aArch) I' ve
      starte to get this error in IDJC:

      Traceback (most recent call last):
      File "/usr/lib/idjc/site-packages/idjc/playergui.py", line 2711, in cb_toggle
      self.handle_play_button(widget, widget.get_active())
      File "/usr/lib/idjc/site-packages/idjc/playergui.py", line 1547, in handle_play_button
      if self.player_startup():
      File "/usr/lib/idjc/site-packages/idjc/playergui.py", line 1653, in player_startup
      self.gain = float(sgain)
      ValueError: could not convert string to float: None

      This happens whenever I select an MP3 file to play from the playlist or
      when a new file has to play in any playlist. The player stops and I cannot
      start it, however, I can seek to +1 seconds and everythin plays normally.

      I' ve done a workaround changing the code to
      try:
      self.gain = float(sgain)
      except ValueError:
      self.gain = 0.0;

      But I have no idea what's going on. I asume this has to do with applying
      ReplayGain when playing a file. Any ideas where I should start
      troubleshooting? I' m on 0.8.14

      Thanks,

      Hugo G.

      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/idjc/support-requests/73/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Support Requests: #73

  • Stephen Fairchild

    • status: open --> closed
     

Log in to post a comment.