Bug#922452: sopel: Missing dependency to python3-dnspython

2019-02-16 Thread Antoine Beaupré
Control: clone 922452 -1 -2
Control: reassign -2 dh-python

On 2019-02-16 10:23:23, Adrien CLERC wrote:
> Hi,
>
> After starting sopel, I got the following errors:
>
> pkg_resources.DistributionNotFound: The 'dnspython<3.0' distribution was
> not found and is required by sopel
>
> It was removed for an unkown reason on my system 6 days ago. Maybe a
> transitive dependency was removed?
>
> Reinstalling python3-dnspython manually fixed the issue

Hi!

Thank you for your bug report. This should be fixed in the next upload
of sopel, but i think it hilights a problem with the underlying Python
build tools. Those *should* have noticed the dnspython dependency, as
it's specified in `requirements.txt`:

https://salsa.debian.org/debian/sopel/raw/debian/requirements.txt

In setup.py, the requirements list is read from the file:

   requires = read_reqs('requirements.txt')
   [...]
   setup([...], install_requires=requires, [...])

Other dependencies *are* picked up form there (and not specified in the
control file):

 Depends: python3-geoip2, python3-praw, python3-requests, python3-tz, 
python3-xmltodict, python3:any, adduser, lsb-base (>= 3.0-6)

It might be that the extra comparitive logic in the file confuses the
parse:

dnspython<2.0; python_version >= '2.7' and python_version < '3.0'
dnspython<1.16.0; python_version == '3.3'
dnspython<3.0; python_version >= '3.4'

... but I don't have time to investigate this further, unfortunately.

A.

-- 
A riot is the language of the unheard.
 - Martin Luther King, Jr.



Bug#922452: sopel: Missing dependency to python3-dnspython

2019-02-16 Thread Adrien CLERC
Package: sopel
Version: 6.6.2-1
Severity: important

Hi,

After starting sopel, I got the following errors:

pkg_resources.DistributionNotFound: The 'dnspython<3.0' distribution was
not found and is required by sopel

It was removed for an unkown reason on my system 6 days ago. Maybe a
transitive dependency was removed?

Reinstalling python3-dnspython manually fixed the issue

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-4-grsec-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_WARN
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8),
LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages sopel depends on:
ii  adduser    3.118
ii  lsb-base   10.2018112800
ii  python3    3.7.2-1
ii  python3-geoip2 2.9.0+dfsg1-1
ii  python3-praw   6.1.1-1
ii  python3-requests   2.20.0-2
ii  python3-tz 2018.9-1
ii  python3-xmltodict  0.11.0-2

Versions of packages sopel recommends:
pn  ipython3    
ii  python3-enchant 2.0.0-1
pn  python3-feedparser  
ii  python3-lxml    4.3.0-1

sopel suggests no packages.