Skip to content

Bpython crashes on MethodNotFound exception #536

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

Closed
kramer65 opened this issue May 15, 2015 · 0 comments
Closed

Bpython crashes on MethodNotFound exception #536

kramer65 opened this issue May 15, 2015 · 0 comments

Comments

@kramer65
Copy link

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__'
$
sebastinas added a commit that referenced this issue May 16, 2015
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

1 participant