Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Picard: rsgain fails with error code -6 #146

Open
admiral-Guck opened this issue Jan 26, 2025 · 5 comments
Open

Picard: rsgain fails with error code -6 #146

admiral-Guck opened this issue Jan 26, 2025 · 5 comments

Comments

@admiral-Guck
Copy link

Trying to calculate ReplayGain on albums or single tracks fails with the below traceback. Directly executing rsgain on the folders or files via the command line works fine.

plugin 1.7.1
rsgain 3.5.3

E: 03:33:42,596 util/thread.run:69: Traceback (most recent call last):
  File "/usr/lib/python3.12/site-packages/picard/util/thread.py", line 66, in run
    result = self.func()
             ^^^^^^^^^^^
  File "/home/douglas/.config/MusicBrainz/Picard/plugins/replaygain2.zip/replaygain2/__init__.py", line 231, in calculate_replaygain
    raise Exception(f'ReplayGain 2.0: rsgain returned non-zero code ({rc})')
Exception: ReplayGain 2.0: rsgain returned non-zero code (-6)
@complexlogic
Copy link
Owner

rsgain only returns 0 and 1, so we can conclude that rsgain is not being executed by the fact that the return code is -6. Is the path set correctly in the plugin settings? What happens when you type the path setting verbatim into your terminal?

@admiral-Guck
Copy link
Author

admiral-Guck commented Feb 4, 2025

which rsgain tells me /usr/bin/rsgain, which I put in the "Path to rsgain" setting. The same error persists.

rsgain works as expected from the terminal, with the full path or not.

Edit: turns out it's specific to one machine, so I suppose something's wonky with system python there.

@phw
Copy link

phw commented Feb 5, 2025

@admiral-Guck how did you install Picard? And on what OS exactly?

@admiral-Guck
Copy link
Author

Both machines are running manjaro and I installed Picard from the official repos using pamac.

@phw
Copy link

phw commented Feb 7, 2025

Ok, thanks. Just wanted to make sure it is not installed with Snap or Flatpak and sandboxing getting into the way. Because there /usr/bin/ would be not your system location. Otherwise I have currently no good idea what might be happening on your machine, though. But it doesn't seem to be a rsgain issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants