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
Attachment:
signature.asc
Description: PGP signature
_______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx