Problems moving to dh_python2

2011-04-06 Thread Johannes Ring
Hi,

I'm in the process of moving some of my packages from python-central
to dh_python2 and I have run into a problem with one of them (ufc).
This package is CMake based and uses SWIG to build an extension module
for Python, and I was earlier using the following to handle this in
debian/rules:

binary-install/python-ufc::
dh_pycentral -p$(cdbs_curpkg)

I replaced dh_pycentral with dh_python2 but that results in the
following error when I try to build the package:

dh_python2 --verbose -ppython-ufc
D: dh_python2:506: argv: ['/usr/bin/dh_python2', '--verbose', '-ppython-ufc']
D: dh_python2:507: options: {'recommends': None, 'verbose': True,
'package': ['python-ufc'], 'regexpr': None, 'guess_deps': True,
'skip_private': False, 'O': None, 'guess_versions': True, 'suggests':
None, 'depends': None, 'vrange': None, 'no_package': None, 'arch':
None}
D: dh_python2:508: args: []
D: dh_python2:518: processing package python-ufc...
D: dh_python2:418: package python-ufc details = {'public_ext':
set([(2, 6)]), 'requires.txt': set([]), 'public_vers': set([(2, 6)]),
'compile': True, 'shebangs': set([]), 'private_dirs': {}}
D: dh_python2:141: guessing files for Python 2.5
Traceback (most recent call last):
  File "/usr/lib/python2.6/logging/__init__.py", line 776, in emit
msg = self.format(record)
  File "/usr/lib/python2.6/logging/__init__.py", line 654, in format
return fmt.format(record)
  File "/usr/lib/python2.6/logging/__init__.py", line 436, in format
record.message = record.getMessage()
  File "/usr/lib/python2.6/logging/__init__.py", line 306, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
make: *** [binary-install/python-ufc] Error 3
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2

Any idea what went wrong?

Regards,

Johannes


-- 
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/BANLkTi=4zd7xoipw5vv4lvvczzhwmvx...@mail.gmail.com



Re: Problems moving to dh_python2

2011-04-06 Thread Piotr Ożarowski
You're not building exceptions for all supported Python versions, I made
a small mistake in last upload (/usr/bin/dh_python2:145 - remove comma
at the end of line). After next python-defaults upload you'll get this
error message:

| extension for pythonX.Y is missing. Build extensions for all supported
| Python versions (`pyversions -vr`) or adjust X-Python-Version field
| or pass --no-guessing-versions to dh_python2

where X.Y is version of the missing extension
-- 
Piotr Ożarowski Debian GNU/Linux Developer
www.ozarowski.pl  www.griffith.cc   www.debian.org
GPG Fingerprint: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645


-- 
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/20110406131656.ga27...@piotro.eu



Re: Problems moving to dh_python2

2011-04-06 Thread Johannes Ring
On Wed, Apr 6, 2011 at 3:16 PM, Piotr Ożarowski  wrote:
> You're not building exceptions for all supported Python versions, I made
> a small mistake in last upload (/usr/bin/dh_python2:145 - remove comma
> at the end of line). After next python-defaults upload you'll get this
> error message:
>
> | extension for pythonX.Y is missing. Build extensions for all supported
> | Python versions (`pyversions -vr`) or adjust X-Python-Version field
> | or pass --no-guessing-versions to dh_python2
>
> where X.Y is version of the missing extension

Thanks, that makes sense.

Johannes


--
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/BANLkTimiCHvO3TL=odbts+prqw1csen...@mail.gmail.com