[Debian-med-packaging] Upgrading htseq failed
Diane Trout
diane at ghic.org
Mon Jan 18 20:00:57 GMT 2021
raise ValueError, "unsupported typecode"
That code seems really archaic.
It really looks like old Python 2 sytax. I think string exceptions were
deprecated a long time ago, and python 3 removed the comma separated
list of exceptions.
On Sun, 2021-01-17 at 15:41 +0100, Andreas Tille wrote:
> Hi Diane and others,
>
> we should try hard to upgrade all our software before the freeze.
> I tried htseq in Git[1] but the build time test fails:
>
> ...
> dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:232: cd /build/htseq-
> 0.13.5/.pybuild/cpython3_3.9_htseq/build; python3.9 -m unittest
> discover -v
> HTSeq (unittest.loader._FailedTest) ... ERROR
>
> =====================================================================
> =
> ERROR: HTSeq (unittest.loader._FailedTest)
> ---------------------------------------------------------------------
> -
> ImportError: Failed to import test module: HTSeq
> Traceback (most recent call last):
> File "/usr/lib/python3.9/unittest/loader.py", line 470, in
> _find_test_path
> package = self._get_module_from_name(name)
> File "/usr/lib/python3.9/unittest/loader.py", line 377, in
> _get_module_from_name
> __import__(name)
> File "/build/htseq-
> 0.13.5/.pybuild/cpython3_3.9_htseq/build/HTSeq/__init__.py", line 13,
> in <module>
> from HTSeq._HTSeq import *
> File "src/HTSeq/_HTSeq.pyx", line 17, in init HTSeq._HTSeq
> File "/build/htseq-
> 0.13.5/.pybuild/cpython3_3.9_htseq/build/HTSeq/StepVector.py", line
> 347
> raise ValueError, "unsupported typecode"
> ^
> SyntaxError: invalid syntax
>
>
> ---------------------------------------------------------------------
> -
> Ran 1 test in 0.000s
>
> FAILED (errors=1)
> E: pybuild pybuild:353: test: plugin distutils failed with: exit
> code=1: cd /build/htseq-0.13.5/.pybuild/cpython3_3.9_htseq/build;
> python3.9 -m unittest discover -v
>
>
> Any help would be welcome
>
> Andreas.
>
> [1] https://salsa.debian.org/med-team/htseq
>
More information about the Debian-med-packaging
mailing list