Comments (14)
Hi Aaron, I'm not sure how pudb factors into any of this. Wrong bug tracker? :) If I missed something, feel free to reopen. Also, happy new year! Andreas
from pudb.
Sorry if it wasn't clear. I got this using pudb ("if I type ! to go to IPython..."). Or do you think it's an IPython bug?
I don't have the permissions to reopen issues.
from pudb.
Ah, never mind. Still sleepy apparently. Can you check if 14c076b fixes this? (Just adds a catch-and-ignore for this specific error.)
from pudb.
Well, yeah, it fixes the problem. I'm not so sure that it's the correct way, though...
Perhaps we should ask the @ipython guys to take a look.
from pudb.
Agree.d
from pudb.
I asked about it on their mailing list: http://mail.scipy.org/pipermail/ipython-dev/2012-January/008530.html.
from pudb.
See that discussion for the solution.
from pudb.
I'm not sure I fully understand what a solution might be. The following questions remain:
- What about backward compatibility? Can we detect at what version this changed, and transparently work with both the pre- and post-change versions? If so, how?
- Do they really want a module in
user_module
? I.e.
>>> from types import ModuleType >>> x = ModuleType("yo") >>> x.__dict__["zzz"] = 1 >>> ipy_thing.user_module = x
from pudb.
Hi, I made the change in IPython - apologies for breaking the API. We did try to see what projects might have been affected, but I didn't know about PuDB.
- Detecting the change: It changed only for version 0.12. Three options spring to mind: 1) catch the error setting user_global_ns and set user_module instead, 2) check if the shell object has the user_module attribute, and 3) check the IPython version number.
- AFAIK, it doesn't strictly have to be a module - in certain situations, we set it to a custom object. Its
__dict__
attribute is taken as the global namespace. Have a look at the code that initialises it: https://github.com/ipython/ipython/blob/master/IPython/core/interactiveshell.py#L973
from pudb.
Hi Thomas,
thanks for your input. I've implemented what I think is a fix in 07bfee0. Does that look reasonable to you? Aaron, can you please try this? Looking forward to hearing from both of you. Thanks.
Andreas
from pudb.
I think that will work (though I haven't tried it).
from pudb.
Yes, it fixes it.
By the way, for some reason, pudb has gotten painfully slow all of a sudden. Every operation, from starting up to stepping one line, takes several seconds to several minutes to complete. It's nothing from PuDB, as the same commit in the git history that used to work fine has the problem. Any idea what could be going on? I don't think it's urwid related, as just moving around with the arrow keys works fine.
from pudb.
I'm closing the issue.
from pudb.
No idea about the slowness. If it persists, please open a new bug.
from pudb.
Related Issues (20)
- "Falling back to custom shell" message printed in internal shell console HOT 2
- default urwid bright-is-bold false HOT 1
- Adding a Watch expression using AutoKey (documentation suggestion) HOT 1
- remote debugging - Cannot disable application log message from garbling up the PuDB UI screen HOT 3
- Pudb UI Exception Encountered: Object 'A' appears to be a sequence, but does not behave like one: iteration over a 0-d tensor HOT 1
- Disable "view output" in remote debug HOT 1
- βI/O operation on closed fileβ when try with "Debugging from a separate terminal" HOT 12
- Error reported when exiting iPython and returning to UI on Mac OS X HOT 3
- Please make this marvel run well on a-Shell app for iPad HOT 1
- "Debugger instance already exists" when used in pytest HOT 5
- Greyscale Theme HOT 4
- New Release HOT 1
- Unable to use `--pdb --pdbcls=pudb.debugger:Debugger` with latest versions of urwid HOT 2
- telnetlib (used for remote debugger) is deprecated in Python 3.12 HOT 4
- Run to line in the same frame HOT 1
- Allow setting term size via env var HOT 1
- PUDB freezes at welcome screen HOT 2
- export PUDB_TTY=... not working HOT 1
- how can i see or get the current debugged file path?
- Ipython StartUp Script for pudb python shell. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pudb.