Re: Help needed for broken clean target of python module

2015-06-23 Thread Julien Puydt

Hi,

Le 22/06/2015 21:20, Andreas Tille a écrit :

   File 
/home/andreas/debian-maintain/alioth/debian-med_git/build-area/python-dendropy-4.0.2/dendropy/utility/textprocessing.py,
 line 44, in bytes_to_text
 s = codecs.decode(s, ENCODING)
TypeError: must be string, not None


 codecs.decode(None, 'UTF8')
TypeError: must be string or buffer, not None
 codecs.decode('string', None)
TypeError: must be string, not None

I'm sure ENCODING isn't set!

Snark on #debian-python


--
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/5589013f.2080...@laposte.net



Help needed for broken clean target of python module

2015-06-22 Thread Andreas Tille
Hi,

I have commited some initial packaging attempt for python-dendropy

  Vcs-Git: git://anonscm.debian.org/debian-med/python-dendropy.git

but the clean target fails and I have no idea why:

...
   dh_auto_clean -O--buildsystem=pybuild
I: pybuild base:170: python2.7 setup.py clean 
Traceback (most recent call last):
  File setup.py, line 30, in module
sys.stderr.write(-setup.py: {}\n.format(description()))
  File 
/home/andreas/debian-maintain/alioth/debian-med_git/build-area/python-dendropy-4.0.2/dendropy/__init__.py,
 line 145, in description
fields[DendroPy version] = name()
  File 
/home/andreas/debian-maintain/alioth/debian-med_git/build-area/python-dendropy-4.0.2/dendropy/__init__.py,
 line 122, in name
return {} {}{}.format(__project__, __version__, revision_description())
  File 
/home/andreas/debian-maintain/alioth/debian-med_git/build-area/python-dendropy-4.0.2/dendropy/__init__.py,
 line 115, in revision_description
if __revision__.is_available:
  File 
/home/andreas/debian-maintain/alioth/debian-med_git/build-area/python-dendropy-4.0.2/dendropy/utility/vcsinfo.py,
 line 122, in is_available
self.update()
  File 
/home/andreas/debian-maintain/alioth/debian-med_git/build-area/python-dendropy-4.0.2/dendropy/utility/vcsinfo.py,
 line 128, in update
if not self.repo_path or not self._vcs_available():
  File 
/home/andreas/debian-maintain/alioth/debian-med_git/build-area/python-dendropy-4.0.2/dendropy/utility/vcsinfo.py,
 line 164, in _vcs_available
retcode, stdout, stderr = self._run_vcs(--version)
  File 
/home/andreas/debian-maintain/alioth/debian-med_git/build-area/python-dendropy-4.0.2/dendropy/utility/vcsinfo.py,
 line 157, in _run_vcs
stdout, stderr = processio.communicate(p)
  File 
/home/andreas/debian-maintain/alioth/debian-med_git/build-area/python-dendropy-4.0.2/dendropy/utility/processio.py,
 line 46, in communicate
stdout = textprocessing.bytes_to_text(stdout)
  File 
/home/andreas/debian-maintain/alioth/debian-med_git/build-area/python-dendropy-4.0.2/dendropy/utility/textprocessing.py,
 line 44, in bytes_to_text
s = codecs.decode(s, ENCODING)
TypeError: must be string, not None
E: pybuild pybuild:256: clean: plugin distutils failed with: exit code=1: 
python2.7 setup.py clean 
dh_auto_clean: pybuild --clean -i python{version} -p 2.7 --dir . returned exit 
code 13
debian/rules:13: recipe for target 'clean' failed
make: *** [clean] Error 13


Any hint?

Kind regards

Andreas.

-- 
http://fam-tille.de


-- 
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20150622192050.gf26...@an3as.eu



Re: Help needed for broken clean target of python module

2015-06-22 Thread Thomas Kluyver
On Mon, Jun 22, 2015, at 12:20 PM, Andreas Tille wrote:
   
 /home/andreas/debian-maintain/alioth/debian-med_git/build-area/python-dendropy-4.0.2/dendropy/utility/textprocessing.py,
   line 44, in bytes_to_text
 s = codecs.decode(s, ENCODING)
 TypeError: must be string, not None

Looks like it's been fixed upstream since the release:
https://github.com/jeetsukumaran/DendroPy/pull/20

Hopefully the author will release a new version soon, since it can break
installation, but if not, it's a pretty small patch, so you could copy
it.

Thomas


-- 
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/1435001911.2473805.304841553.219c2...@webmail.messagingengine.com