Bug#695015: Warning: 'with' will become a reserved keyword in Python 2.6

2013-01-20 Thread Mathieu Malaterre
tags 695015 patch
thanks

On Tue, Jan 15, 2013 at 11:37 AM, Florent Fourcot web...@flo.fourcot.fr wrote:
 Actually, Weboob does not support python 2.5. This is why the packet
 depends on python (= 2.6.6-7~), it should not be possible to use Weboob
 with python 2.5 (I'm not a packaging specialist, but I did not see
 everything wrong on http://packages.debian.org/wheezy/weboob)

So the solution is at:
http://www.debian.org/doc/packaging-manuals/python-policy/ch-module_packages.html#s-specifying_versions

Simply specify

X-Python-Version: = 2.6

2cts


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#695015: Warning: 'with' will become a reserved keyword in Python 2.6

2013-01-15 Thread Florent Fourcot
Hi,

 Maybe a dependencies to python 2.6 is missing ?

Actually, Weboob does not support python 2.5. This is why the packet
depends on python (= 2.6.6-7~), it should not be possible to use Weboob
with python 2.5 (I'm not a packaging specialist, but I did not see
everything wrong on http://packages.debian.org/wheezy/weboob)


 Not sure if this is related but I am getting:
 
 $ qflatboob
 TypeError: object of type 'QListWidget' has no len()

It will be helpful to know your version of PyQt. Maybe we are missing a
dependencies to forbid old versions.

Regards,

-- 
Florent Fourcot.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#695015: Warning: 'with' will become a reserved keyword in Python 2.6

2013-01-15 Thread Mathieu Malaterre
Hi,

On Tue, Jan 15, 2013 at 11:37 AM, Florent Fourcot web...@flo.fourcot.fr wrote:
 Maybe a dependencies to python 2.6 is missing ?

 Actually, Weboob does not support python 2.5. This is why the packet
 depends on python (= 2.6.6-7~), it should not be possible to use Weboob
 with python 2.5 (I'm not a packaging specialist, but I did not see
 everything wrong on http://packages.debian.org/wheezy/weboob)

Technically the B-D line does not say so:

  apt-get source weboob
  cd weboob-0.c
  cat debian/control
[...]
Build-Depends: python-setuptools (= 0.6b3), debhelper (= 9~),
pyqt4-dev-tools, python-all (= 2.6.6-3~)

  On debian/squeeze, python-all imply python 2.5 + python 2.6. I am
not a python debian package expert, but I am guessing your python-all
B-D is too weak...


 Not sure if this is related but I am getting:

 $ qflatboob
 TypeError: object of type 'QListWidget' has no len()

 It will be helpful to know your version of PyQt. Maybe we are missing a
 dependencies to forbid old versions.


$ apt-cache policy python-qt4-phonon
python-qt4-phonon:
  Installed: 4.7.3-1+b1
  Candidate: 4.7.3-1+b1
  Version table:
 4.9.6-1 0
 -1 http://ftp.fr.debian.org/debian/ experimental/main amd64 Packages
 4.9.3-4 0
200 http://ftp.fr.debian.org/debian/ testing/main amd64 Packages
100 http://ftp.fr.debian.org/debian/ unstable/main amd64 Packages
 *** 4.7.3-1+b1 0
500 http://ftp.fr.debian.org/debian/ squeeze/main amd64 Packages
100 /var/lib/dpkg/status


This is a rather minor bug, it only make backporting harder when you
have weak dependencies. So this should not be considered as blocking,
but a nice to have.

Thanks !


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#695015: Warning: 'with' will become a reserved keyword in Python 2.6

2012-12-03 Thread Mathieu Malaterre
Package: weboob
Version: 0.c-4.1
Severity: normal

When installing weboob on my squeeze system I am getting:

Setting up weboob (0.c-4.1) ...
/usr/lib/python2.5/site-packages/weboob/applications/boobill/boobill.py:163: 
Warning: 'with' will become a reserved keyword in Python 2.6
  File 
/usr/lib/python2.5/site-packages/weboob/applications/boobill/boobill.py, line 
163
with open(dest, 'w') as f:
^
SyntaxError: invalid syntax

/usr/lib/python2.5/site-packages/weboob/applications/translaboob/translaboob.py:115:
 Warning: 'as' will become a reserved keyword in Python 2.6
  File 
/usr/lib/python2.5/site-packages/weboob/applications/translaboob/translaboob.py,
 line 115
except (TranslationFail, LanguageNotSupported) as error:
^
SyntaxError: invalid syntax



Maybe a dependencies to python 2.6 is missing ?

Thanks !

-- System Information:
Debian Release: 6.0.6
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable'), (200, 'testing'), (100, 
'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-0.bpo.3-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages weboob depends on:
ii  python  2.6.6-3+squeeze7 interactive high-level object-orie
ii  python-html2text2.3.7-1  Python module for converting HTML 
ii  python-prettytable  0.5-1library to represent tabular data 
ii  python-weboob-core  0.c-4.1  Weboob, Web Out Of Browsers - core
ii  python2.5   2.5.5-11 An interactive high-level object-o
ii  python2.6   2.6.6-8+b1   An interactive high-level object-o

weboob recommends no packages.

weboob suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org