Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.rc > #189675
| From | Maximiliano Curia <maxy@gnuservers.com.ar> |
|---|---|
| Newsgroups | linux.debian.bugs.rc |
| Subject | Bug#838266: Salvaging pylibtiff to Debian Python team or removing it from Debian? |
| Date | 2016-10-22 07:50 +0200 |
| Message-ID | <suXlU-7Iy-5@gated-at.bofh.it> (permalink) |
| References | <suCAO-2qN-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
¡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 /\/\ /\ >< `/
Back to linux.debian.bugs.rc | Previous | Next — Previous in thread | Find similar | Unroll thread
Bug#838266: Salvaging pylibtiff to Debian Python team or removing it from Debian? Andreas Tille <andreas@an3as.eu> - 2016-10-21 09:40 +0200 Bug#838266: Salvaging pylibtiff to Debian Python team or removing it from Debian? Maximiliano Curia <maxy@gnuservers.com.ar> - 2016-10-22 07:50 +0200
csiph-web