soap - Exception: Cannot import python-ntlm module -


i using suds 0.4 , running below error,i read on web above issue fixed since 0.3.8..so wondering wrong here?

  file "script.py", line 532, in <module>     prism = prism('http://prism:8000/searchservice.svc?wsdl')   file "script.py", line 31, in __init__     self.cr_soapclient = client(self.cr_url, transport=windowshttpauthenticated(username=user, password=passwd))   file "/usr/local/lib/python2.7/dist-packages/suds-0.4-py2.7.egg/suds/client.py", line 112, in __init__     self.wsdl = reader.open(url)   file "/usr/local/lib/python2.7/dist-packages/suds-0.4-py2.7.egg/suds/reader.py", line 152, in open     d = self.fn(url, self.options)   file "/usr/local/lib/python2.7/dist-packages/suds-0.4-py2.7.egg/suds/wsdl.py", line 136, in __init__     d = reader.open(url)   file "/usr/local/lib/python2.7/dist-packages/suds-0.4-py2.7.egg/suds/reader.py", line 79, in open     d = self.download(url)   file "/usr/local/lib/python2.7/dist-packages/suds-0.4-py2.7.egg/suds/reader.py", line 95, in download     fp = self.options.transport.open(request(url))   file "/usr/local/lib/python2.7/dist-packages/suds-0.4-py2.7.egg/suds/transport/https.py", line 60, in open     return  httptransport.open(self, request)   file "/usr/local/lib/python2.7/dist-packages/suds-0.4-py2.7.egg/suds/transport/http.py", line 62, in open     return self.u2open(u2request)   file "/usr/local/lib/python2.7/dist-packages/suds-0.4-py2.7.egg/suds/transport/http.py", line 113, in u2open     url = self.u2opener()   file "/usr/local/lib/python2.7/dist-packages/suds-0.4-py2.7.egg/suds/transport/http.py", line 127, in u2opener     return u2.build_opener(*self.u2handlers())   file "/usr/local/lib/python2.7/dist-packages/suds-0.4-py2.7.egg/suds/transport/https.py", line 95, in u2handlers     raise exception("cannot import python-ntlm module") exception: cannot import python-ntlm module 

suds version

>>> import suds >>> print suds.__version__ 0.4 

as @pauloalmeida suggested in comment, python-ntlm missing. install using pip type os shell:

pip install python-ntlm 

on linux might need sudo before command.

you can download package https://pypi.python.org/pypi/python-ntlm.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -