Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #8955 > unrolled thread

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

Started byAndreas Tille <andreas@an3as.eu>
First post2016-10-25 09:10 +0200
Last post2016-10-25 09:10 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.debian.maint.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Salvaging pylibtiff to Debian Python team or removing it from  Debian? Andreas Tille <andreas@an3as.eu> - 2016-10-25 09:10 +0200

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

FromAndreas Tille <andreas@an3as.eu>
Date2016-10-25 09:10 +0200
SubjectRe: Salvaging pylibtiff to Debian Python team or removing it from Debian?
Message-ID<sw41X-2lL-5@gated-at.bofh.it>
Uploaded with the fixes below as Maintainer Debian QA Group <packages@qa.debian.org>

On Sat, Oct 22, 2016 at 07:44:37AM +0200, Maximiliano Curia wrote:
> ¡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 /\/\ /\ >< `/



-- 
http://fam-tille.de

[toc] | [standalone]


Back to top | Article view | linux.debian.maint.python


csiph-web