The graphical diff tool Diffuse was not opening - running it from the terminal gave the error message
diffuse
File "/usr/bin/diffuse", line 74
print codecs.encode(unicode(s, 'utf_8'), sys.getfilesystemencoding())
^
SyntaxError: invalid syntax
Apparently this is because diffuse is written for python2.
So, edited the hashbang for /usr/bin/diffuse to use /usr/bin/env python2 instead of /usr/bin/env/ python, works now.
#!/usr/bin/env python2
No comments:
Post a Comment