[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#908087: marked as done (reportbug: Fails with: TypeError: fixer() missing 1 required positional argument: 'check_hostname')



Your message dated Sat, 15 Sep 2018 13:04:25 -0400
with message-id <20180915170425.GA5520@curie.anarc.at>
and subject line Re: Bug#908087: reportbug: Fails with: TypeError: fixer() missing 1 required positional argument: 'check_hostname'
has caused the Debian Bug report #908087,
regarding reportbug: Fails with: TypeError: fixer() missing 1 required positional argument: 'check_hostname'
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
908087: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=908087
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: reportbug
Version: 7.5.0
Severity: grave
Justification: renders package unusable

Dear Maintainer,

reportbug fails on fully upgraded sid because of #906127
"Incorrect check of httplib2 version":
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=906127

#906127 has normal severity, but its impact on reportbug is grave. This report
is Google fodder to help fellow victims of this bug.


Workaround is to download the patch for pysimplesoap and apply it locally:
https://bugs.debian.org/cgi-bin/bugreport.cgi?att=2;bug=906127;filename=fix-
httplib2-version-check.patch;msg=5

cd /usr/lib/python3/dist-packages/pysimplesoap
patch -p2 < /path/to/fix-httplib2-version-check.patch

After applying this patch, I was able to use reportbug to submit this report.


This example with ui gtk2 in ~/.reportbugrc, failure after entering package
name):


$ reportbug
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/reportbug/ui/gtk2_ui.py", line 1049, in
sync_pre_operation
    http_proxy=http_proxy, archived=archived, source=source)
  File "/usr/lib/python3/dist-packages/reportbug/debbugs.py", line 1072, in
get_reports
    bugs = debianbts.get_bugs(pkg_filter, package)
  File "/usr/lib/python3/dist-packages/debianbts/debianbts.py", line 410, in
get_bugs
    reply = soap_client.call('get_bugs', method_el)
  File "/usr/lib/python3/dist-packages/pysimplesoap/client.py", line 260, in
call
    self.xml_response = self.send(method, self.xml_request)
  File "/usr/lib/python3/dist-packages/pysimplesoap/client.py", line 313, in
send
    location, http_method, body=xml, headers=headers)
  File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1395, in
request
    self.disable_ssl_certificate_validation)
  File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 978, in
__init__
    timeout=timeout, context=context)
TypeError: fixer() missing 1 required positional argument: 'check_hostname'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/reportbug", line 2266, in <module>
    main()
  File "/usr/bin/reportbug", line 1109, in main
    return iface.user_interface()
  File "/usr/bin/reportbug", line 1722, in user_interface
    latest_first=self.options.latest_first)
  File "/usr/lib/python3/dist-packages/reportbug/ui/gtk2_ui.py", line 1763, in
func
    args, kwargs = op.sync_pre_operation(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/reportbug/ui/gtk2_ui.py", line 1051, in
sync_pre_operation
    error_dialog("Unable to connect to %s BTS." % sysinfo['name'])
  File "/usr/lib/python3/dist-packages/reportbug/ui/gtk2_ui.py", line 137, in
error_dialog
    _assert_context(ui_context)
  File "/usr/lib/python3/dist-packages/reportbug/ui/gtk2_ui.py", line 92, in
_assert_context
    (_describe_context(really), _describe_context(expected)))
AssertionError: Function should be called in <MainContext of reportbug thread>
but was called in <MainContext of UI thread>


Without ui option in ~/.reportbugrc:

$ reportbug
Please enter the name of the package in which you have found a problem, or type
'other' to report a more general problem. If you don't know what package the
bug is in, please contact
debian-user@lists.debian.org for assistance.
> reportbug
Detected character set: UTF-8
Please change your locale if this is incorrect.

Using 'Ben Caradoc-Davies <ben@transient.nz>' as your from address.
Getting status for reportbug...
Checking for newer versions at madison...
Will send report to Debian (per lsb_release).
Querying Debian BTS for reports on reportbug (source)...
Unable to connect to Debian BTS (error: "TypeError("fixer() missing 1 required
positional argument: 'check_hostname'",)"); continue [y|N|?]?


Kind regards,
Ben.



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

** /home/ben/.reportbugrc:
mode standard
ui gtk2
email "ben@transient.nz"
realname "Ben Caradoc-Davies"
no-cc
header "X-Debbugs-CC: ben@transient.nz"
smtphost "skyhawk.mysecure.co.nz:587"
smtptls
smtpuser "ben@transient.nz"
smtppasswd <omitted>

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

Kernel: Linux 4.17.0-3-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8), LANGUAGE=en_GB: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.6.4
ii  python3            3.6.6-1
ii  python3-reportbug  7.5.0
ii  sensible-utils     0.0.12

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  exim4-daemon-light [mail-transport-agent]  4.91-7
ii  file                                       1:5.34-2
ii  gnupg                                      2.2.10-1
pn  python3-urwid                              <none>
ii  reportbug-gtk                              7.5.0
ii  xdg-utils                                  1.1.3-1

Versions of packages python3-reportbug depends on:
ii  apt                1.6.4
ii  file               1:5.34-2
ii  python3            3.6.6-1
ii  python3-apt        1.6.2
ii  python3-debian     0.1.33
ii  python3-debianbts  2.7.2
ii  python3-requests   2.18.4-2

python3-reportbug suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
I'm not sure how to handle this, administratively, but this is now fixed
in unstable and buster. I just upgraded and things are back to normal.
The upgrade to python3-pysimplesoap 1.16-2.1 fixed the bug.

Since the bug is filed against reportbug, there are no fixed versions,
I'll just close this - there's already #906127 to track the bug on the
other side anyways.

A.

-- 
The steel horse fills a gap in modern life, it is an answer not only to
its needs, but also to its aspirations.  It's quite certainly here to
stay.
                         - Le Vélocipède Illustré, 1869

Attachment: signature.asc
Description: PGP signature


--- End Message ---

Reply to: