¡Hola Andreas!

El 2016-10-21 a las 09:36 +0200, Andreas Tille escribió:
the former maintainer of pylibtiff inside Debian Med team Mathieu Malaterre does not care for the package any more and thus I tried my luck to salvage it. I have no personal interest in this package nor does it have any rdepends. There is no direct connection to the Debian Med topic but since there are some users according to popcon[1] it might be worth saving.

I won't be able to work on this in the foreseeable future, but I can probably help with the mentioned errors.

File "/usr/lib/python2.7/dist-packages/libtiff/libtiff_ctypes.py", line 36 print 'You should add %r to PATH environment variable and reboot.' % (os.path.dirname (lib)) ^ SyntaxError: invalid syntax

This looks valid, but probably fails if using:
from __future__ import print_function
you can probably fix this by adding the parenthesis needed for the function invocation:
print('You should add %r to PATH environment variable and reboot.' % 
(os.path.dirname (lib)))

File "/usr/lib/python2.7/dist-packages/libtiff/optparse_gui.py", line 201 print(msg, file=sys.stderr) ^ SyntaxError: invalid syntax

This is probably failing because of a missing:
from __future__ import print_function
at the beginning of the file (it needs to be added before any other import).

In python2 print is a statement that you use as print "Hi", in python3 it's a
function that you use as print("Hi"), using the __future__ snippet you can use (in python 2.7) print as a function, this is generally a good idea as it eases the migration to python3 process.

Happy hacking,
--
"If you have too many special cases, you are doing it wrong." -- Craig Zarouni
Saludos /\/\ /\ >< `/

Attachment: signature.asc
Description: PGP signature

Reply via email to