Closed
Description
Today I was trying to use the python suds lib to explore a SOAP endpoint in bpython. When I type the last line in the paste below, bpython simply crashes. This may of course be the fault of the exception in the suds library, but I think nevertheless bpython shouldn't crash.
Of course this is not a showstopper. I simply used the regular python interpreter for this single instance, but I guess this might help uncover some kind of hidden bug in bpython, which is why I post this here.
I'm running bpython version 0.14.1 on top of Python 2.7.6 on Mac OSX 10.10.3
Thanks for creating bpython!
$ bpython
bpython version 0.14.1 on top of Python 2.7.6 /usr/bin/python
>>> from suds.client import Client
>>> client = Client('http://www1.kadaster.nl/1/schemas/kik-inzage/20141101/verzoekTotInformatie-2.1.wsdl')
>>> client.service
Traceback (most recent call last):
File "/usr/local/bin/bpython", line 11, in <module>
sys.exit(main())
File "/Library/Python/2.7/site-packages/bpython/curtsies.py", line 79, in main
interactive=(not exec_args))
File "/Library/Python/2.7/site-packages/bpython/curtsies.py", line 177, in mainloop
process_event(e)
File "/Library/Python/2.7/site-packages/bpython/curtsies.py", line 135, in process_event
repl.process_event(e)
File "/Library/Python/2.7/site-packages/bpython/curtsiesfrontend/repl.py", line 488, in process_event
return self.process_key_event(e)
File "/Library/Python/2.7/site-packages/bpython/curtsiesfrontend/repl.py", line 629, in process_key_event
self.add_normal_character(e)
File "/Library/Python/2.7/site-packages/bpython/curtsiesfrontend/repl.py", line 848, in add_normal_character
self.cursor_offset += 1
File "/Library/Python/2.7/site-packages/bpython/curtsiesfrontend/repl.py", line 1345, in _set_cursor_offset
self.update_completion()
File "/Library/Python/2.7/site-packages/bpython/curtsiesfrontend/repl.py", line 878, in update_completion
self.list_win_visible = BpythonRepl.complete(self, tab)
File "/Library/Python/2.7/site-packages/bpython/repl.py", line 599, in complete
history=self.history)
File "/Library/Python/2.7/site-packages/bpython/autocomplete.py", line 466, in get_completer_bpython
return get_completer(BPYTHON_COMPLETER, cursor_offset, line, **kwargs)
File "/Library/Python/2.7/site-packages/bpython/autocomplete.py", line 446, in get_completer
cursor_offset, line, **kwargs)
File "/Library/Python/2.7/site-packages/bpython/autocomplete.py", line 131, in matches
**kwargs)
File "/Library/Python/2.7/site-packages/bpython/autocomplete.py", line 216, in matches
for m in attr_matches(methodtext, locals_))
File "/Library/Python/2.7/site-packages/bpython/autocomplete.py", line 507, in attr_matches
matches = attr_lookup(obj, expr, attr)
File "/Library/Python/2.7/site-packages/bpython/autocomplete.py", line 515, in attr_lookup
words = dir(obj)
File "/Library/Python/2.7/site-packages/suds/client.py", line 299, in __getattr__
return getattr(port, name)
File "/Library/Python/2.7/site-packages/suds/client.py", line 403, in __getattr__
return getattr(m, name)
File "/Library/Python/2.7/site-packages/suds/client.py", line 494, in __getattr__
return self[name]
File "/Library/Python/2.7/site-packages/suds/client.py", line 507, in __getitem__
raise MethodNotFound, qn
suds.MethodNotFound: Method not found: 'VerzoekTotInformatieService.VerzoekTotInformatieSOAP.__dir__'
$
Metadata
Metadata
Assignees
Labels
No labels