Hi,
Frank Elsner wrote:
on my Fedora 31 system wifi-radar doesn't work but gives
$ wifi-radar
File "/usr/sbin/wifi-radar", line 179
except OSError, exception:
^
SyntaxError: invalid syntax
Why this? Python problem?
The wifi-radar code needs to be fixed to work with python3.
It's got a lot of code which needs to be updated. In the
case above, "except OSError, exception:" should be changed
to "except OSError as exception:". But there are a bunch of
other similar issues, where the code clearly has not been
tested with python3, as basic things like print lacking
parenthesis should be caught by any basic testing.
You'll probably need to file a ticket in bugzilla or the
upstream wifi-radar project's tracker (assuming the project
is still active).
The python 2to3 tool might be a good start for fixing the
issues, though it seems the app uses pygtk but the pygtk2
requires was removed from the package as a way to get it to
build (likely in rawhide where python2 is being actively
removed).
After spending a few minutes poking, I don't think this app
has been tested with Fedora 31 and it needs some care and
feeding if it's going to be fixed.
--
Todd