Re: Salvaging pylibtiff to Debian Python team or removing it from Debian?

2016-10-21 Thread Maximiliano Curia

¡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 /\/\ /\ >< `/


signature.asc
Description: PGP signature


Request to join the python-modules team

2010-04-18 Thread Maximiliano Curia
Hi,

I'd like join the python-modules team, I'm packaging pymodbus [1], and I would
like to add this package to the team. Also, I'm planning to be working in a
few other python related projects, so I'll probably be adding a few other
modules as well.

My alioth login is "maxy".

The pymodbus package I'm preparing can be fetched here:
http://maxy.com.ar/debian/pymodbus_0.5.1-1.dsc

Thanks,
[1]: http://code.google.com/p/pymodbus/
-- 
Se necesitan voluntarios para dominar el mundo.
Saludos /\/\ /\ >< `/


-- 
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20100418152847.gg28...@maxy.com.ar