On Sat, Dec 07, 2019 at 09:23:16PM +0100, Andreas Tille wrote:
> I tried to port consensuscore to Python3 in Git[1].  Unfortunately 2to3
> was not completely successfully since I get:
This isn't 2to3's fault.

>    dh_auto_build -O--buildsystem=pybuild
> I: pybuild base:217: /usr/bin/python3.8 setup.py build.
> WARNING: '' not a valid package name; please use only .-separated package 
> names in setup.py
> running build
> Traceback (most recent call last):
>   File "tools/find_boost", line 56, in <module>
>     boost = find_boost()
>   File "tools/find_boost", line 44, in find_boost
>     best_boost = max(boosts_found, key=lambda t: t[1])[0]
> TypeError: '>' not supported between instances of 'NoneType' and 'tuple'
Such meaningless comparisons are indeed not supported in Python3. You need
to filter out the items where version is None.

-- 
WBR, wRAR

Attachment: signature.asc
Description: PGP signature

Reply via email to