hipdnsproxy syntax error

Bug #1740550 reported by Nathan Dehnel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HIPL
Confirmed
Undecided
Unassigned

Bug Description

gentoolaptop ~ # hipdnsproxy
Traceback (most recent call last):
  File "/usr/local/sbin/hipdnsproxy", line 11, in <module>
    import dnsproxy
  File "/usr/local/lib64/python2.7/site-packages/hipdnsproxy/dnsproxy.py", line 305
    except IOError, ioe:
                  ^
SyntaxError: invalid syntax

Revision history for this message
Pupu Toivonen (scolphoy) wrote :

hipdnsproxy has not been updated for Python 3.

Changed in hipl:
status: New → Confirmed
Revision history for this message
Pupu Toivonen (scolphoy) wrote :

To elaborate, the "except IOError, ioe:" syntax is obsolete in python3 and we should use "except IOError as ioe:" instead. This, however, is not the only issue and simply changing this syntax will not make it work.

hipdnsproxy seems to work still on Python 2.7.12

Revision history for this message
Nathan Dehnel (ncdehnel) wrote :

Should #! /usr/bin/env python2.7 be added so it knows which interpreter to use?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.