sgain becomes None
A feature packed DJ console and internet radio client for Linux users
Status: Beta
Brought to you by:
s-fairchild
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.
Can you make one of those mp3 files avaliable to me for testing?
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
I have reproduced the bug after installing the latest version of mutagen.
It appears to be fixed now.
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
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:
Related
Support Requests:
#73