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

IPython crashes when enabled with %pudb #84

Open
asmeurer opened this issue Aug 13, 2013 · 1 comment
Open

IPython crashes when enabled with %pudb #84

asmeurer opened this issue Aug 13, 2013 · 1 comment

Comments

@asmeurer
Copy link
Collaborator

If you use %pudb and then use ! to enable IPython, it crashes (this is with IPython 1.0). The API has changed, I think. See #83.

@asmeurer
Copy link
Collaborator Author

This is the traceback

Traceback (most recent call last):
  File "./pudb/__init__.py", line 73, in runscript
    dbg._runscript(mainpyfile)
  File "./pudb/debugger.py", line 341, in _runscript
    self.run(statement, globals=globals_, locals=locals_)
  File "/Users/aaronmeurer/anaconda3/envs/ipython0.13/lib/python3.3/bdb.py", line 405, in run
    exec(cmd, globals, locals)
  File "<string>", line 1, in <module>
  File "/Users/aaronmeurer/Documents/pudb/test.py", line 1, in <module>
    import time
  File "/Users/aaronmeurer/Documents/pudb/test.py", line 1, in <module>
    import time
  File "/Users/aaronmeurer/anaconda3/envs/ipython0.13/lib/python3.3/bdb.py", line 47, in trace_dispatch
    return self.dispatch_line(frame)
  File "/Users/aaronmeurer/anaconda3/envs/ipython0.13/lib/python3.3/bdb.py", line 65, in dispatch_line
    self.user_line(frame)
  File "./pudb/debugger.py", line 293, in user_line
    self.interaction(frame)
  File "./pudb/debugger.py", line 261, in interaction
    show_exc_dialog=show_exc_dialog)
  File "./pudb/debugger.py", line 1392, in call_with_ui
    return f(*args, **kwargs)
  File "./pudb/debugger.py", line 1558, in interaction
    self.event_loop()
  File "./pudb/debugger.py", line 1524, in event_loop
    toplevel.keypress(self.size, k)
  File "./pudb/ui_tools.py", line 87, in keypress
    return handler(self, size, key)
  File "./pudb/debugger.py", line 1094, in run_shell
    first_shell_run)
  File "./pudb/shell.py", line 121, in run_ipython_shell_v11
    banner2=banner)
  File "/Users/aaronmeurer/anaconda3/envs/ipython0.13/lib/python3.3/site-packages/IPython/config/configurable.py", line 360, in instance
    '%s are being created.' % cls.__name__
IPython.config.configurable.MultipleInstanceError: Multiple incompatible subclass instances of TerminalInteractiveShell are being created.

I don't know how to use the API correctly. We will need to get help from the IPython guys on this probably.

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