hipdnsproxy syntax error

Bug #1740550 reported by Nathan Dehnel on 2017-12-29
This bug affects 1 person
Affects Status Importance Assigned to Milestone

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

Pupu Toivonen (scolphoy) wrote :

hipdnsproxy has not been updated for Python 3.

Changed in hipl:
status: New → Confirmed
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

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  Edit
Everyone can see this information.

Other bug subscribers