Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: fixer() missing 1 required positional argument: 'check_hostname' #162

Open
nschloe opened this issue Apr 6, 2018 · 5 comments

Comments

@nschloe
Copy link

nschloe commented Apr 6, 2018

From httplib2/httplib2#102:

I'm getting a funny exception when using Debian's reportbug that traces back to pysimplesoap/httplib2:

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 1073, in get_reports
    bugs = debianbts.get_bugs(pkg_filter, package)
  File "/home/nschloe/.local/lib/python3.6/site-packages/debianbts/debianbts.py", line 410, in get_bugs
    reply = soap_client.call('get_bugs', method_el)
  File "/home/nschloe/.local/lib/python3.6/site-packages/pysimplesoap/client.py", line 256, in call
    self.xml_response = self.send(method, self.xml_request)
  File "/home/nschloe/.local/lib/python3.6/site-packages/pysimplesoap/client.py", line 318, in send
    location, http_method, body=xml, headers=headers)
  File "/home/nschloe/.local/lib/python3.6/site-packages/httplib2/__init__.py", line 1396, in request
    self.disable_ssl_certificate_validation)
  File "/home/nschloe/.local/lib/python3.6/site-packages/httplib2/__init__.py", line 979, in __init__
    timeout=timeout, context=context)
TypeError: fixer() missing 1 required positional argument: 'check_hostname'

The exception is triggered in https://github.com/pysimplesoap/pysimplesoap/blob/master/pysimplesoap/transport.py#L72.

The documentation says

The check_hostname parameter is also deprecated; the ssl.SSLContext.check_hostname attribute of
context should be used instead.

@oldium
Copy link

oldium commented Jun 10, 2018

I faced the same bug, the problem is fixed by applying #150.

@mariamMazen
Copy link

Does this fix the issue and if so will it be merged soon ?

@oldium
Copy link

oldium commented Sep 10, 2018

Yes, it fixes the issue - actually there is updated version of the fix in #170.

@id8216
Copy link

id8216 commented Dec 27, 2018

Please fix this issue. I had same problem with fixer() when I change python version from 3.5 to 3.6 in my project
httplib2/httplib2#126

id8216 added a commit to id8216/pysimplesoap that referenced this issue Jan 13, 2019
@gabn88
Copy link

gabn88 commented Feb 1, 2019

When does this get merged? It bites me every so often, which is annoying and unnecessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants