Bug 1773000

Summary: pulseaudio-equalizer-gtk crashes immediately on invocation
Product: [Fedora] Fedora Reporter: Donald O'Dona <thomas.paulsen>
Component: pulseaudio-equalizerAssignee: Shawn Starr <shawn.starr>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 31CC: cdennett, jaromir.capik, shawn.starr
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-17 22:58:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Donald O'Dona 2019-11-15 19:34:38 UTC
Description of problem:
pulseaudio-equalizer-gtk crashes immediately on invocation

Version-Release number of selected component (if applicable):
PulseAudio Equalizer/LADSPA Processor 2.7 (05/02/2010)


How reproducible:
invoke it

Steps to Reproduce:
1.invoke
2.crashes
3.

Actual results:
$ pulseaudio-equalizer-gtk 
  File "/usr/share/pulseaudio-equalizer/pulseaudio-equalizer.py", line 42
    print "Getting settings..."
                              ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Getting settings...")?


Expected results:
working

Additional info:

Comment 1 Charles Dennett 2019-11-15 23:52:02 UTC
I got the same error.  I tried adding the parenthesis to line 42 in that file.  Upon rerunning it, I get the following error:

[charlie@redwood ~]$ pulseaudio-equalizer-gtk
  File "/usr/share/pulseaudio-equalizer/pulseaudio-equalizer.py", line 79
    print "Match!"
                 ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Match!")?


That's as far as I went as I figured there are a lot more similar errors.

Comment 2 Charles Dennett 2019-11-16 16:30:57 UTC
Found a workaround.  When Fedora was upgraded to 31, /usr/bin/python changed from being a link to /usr/bin/python2 to a link to /usr/bin/python3.  The pulseaudio equalizer works with python2 but not python3.  /usr/bin/pulseaudio-equalizer-gtk is a very simple script.  All it is is:

-----------------------------------------------------------------
#!/bin/bash

# PulseAudio LADSPA Equalizer - wrapper script
# Author: Conn O'Griofa <connogriofa AT gmail DOT com>
# Version: (see '/usr/pulseaudio-equalizer' script)

python /usr/share/pulseaudio-equalizer/pulseaudio-equalizer.py

-----------------------------------------------------------------

All you need to do force it to use python2 by changing that last line to be:

python2 /usr/share/pulseaudio-equalizer/pulseaudio-equalizer.py


Worked for me.

Comment 3 Donald O'Dona 2019-11-16 18:05:46 UTC
works for me too. Thanks a lot!

Nevertheless the RH people have to find a general solution!