[Reportbug-maint] Bug#869936: reportbug: ImportError: No module named 'requests.packages.urllib3'

John David Anglin dave.anglin at bell.net
Thu Jul 27 20:20:52 UTC 2017


Package: reportbug
Version: 7.1.7
Severity: normal

Dear Maintainer,

On a different system, reportbug fails as follows:

dave at mx3210:~$ reportbug
Traceback (most recent call last):
  File "/usr/bin/reportbug", line 43, in <module>
    from reportbug import utils
  File "/usr/lib/python3/dist-packages/reportbug/utils.py", line 43, in <module>
    from .urlutils import open_url
  File "/usr/lib/python3/dist-packages/reportbug/urlutils.py", line 34, in <module>
    import requests
  File "/usr/lib/python3/dist-packages/requests/__init__.py", line 60, in <module>
    from .packages.urllib3.exceptions import DependencyWarning
ImportError: No module named 'requests.packages.urllib3'

Have tried reinstalling reportbug, python3-urllib3 and python3-requests but
that didn't reolve the issue.  For some reason, the urllib3 module isn't found.

Regards,
Dave Anglin


-- Package-specific info:
** Environment settings:
INTERFACE="text"

** /home/dave/.reportbugrc:
reportbug_version "5.0"
mode standard
ui text
realname "John David Anglin"
email "dave.anglin at bell.net"

-- System Information:
Debian Release: buster/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'buildd-unstable'), (500, 'unstable')
Architecture: hppa (parisc64)

Kernel: Linux 4.11.0-2-parisc64-smp (SMP w/1 CPU core)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), LANGUAGE=en_CA:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages reportbug depends on:
ii  apt                1.5~beta1
ii  python3            3.5.3-3
ii  python3-reportbug  7.1.7

reportbug recommends no packages.

Versions of packages reportbug suggests:
pn  claws-mail                               <none>
pn  debconf-utils                            <none>
pn  debsums                                  <none>
pn  dlocate                                  <none>
pn  emacs24-bin-common | emacs25-bin-common  <none>
ii  file                                     1:5.30-1
ii  gir1.2-gtk-3.0                           3.22.17-1
pn  gir1.2-vte-2.91                          <none>
ii  gnupg                                    2.1.18-8
ii  postfix [mail-transport-agent]           3.2.2-1
ii  python3-gi                               3.22.0-2+b1
pn  python3-gi-cairo                         <none>
pn  python3-gtkspellcheck                    <none>
pn  python3-urwid                            <none>
ii  xdg-utils                                1.1.1-1

Versions of packages python3-reportbug depends on:
ii  apt                1.5~beta1
ii  file               1:5.30-1
ii  python3            3.5.3-3
ii  python3-debian     0.1.30
ii  python3-debianbts  2.6.1
ii  python3-requests   2.12.4-1

python3-reportbug suggests no packages.

-- no debconf information



More information about the Reportbug-maint mailing list