-
Notifications
You must be signed in to change notification settings - Fork 353
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
boltons.ecoutils
23.0.0
breaks pdb
interactive prompt in pytest
debug sessions
#334
Comments
boltons.ecoutils
23.0.0 breaks pdb
interactive prompt in pytest
debug sessionsboltons.ecoutils
v23.0.0
breaks pdb
interactive prompt in pytest
debug sessions
boltons.ecoutils
v23.0.0
breaks pdb
interactive prompt in pytest
debug sessionsboltons.ecoutils
23.0.0
breaks pdb
interactive prompt in pytest
debug sessions
OK, I think I found the root cause. A fix is proposed at: #335 |
Forget about my patch proposed in #335. The real culprit is So, to sum it up, this patch fix the issue described here: diff --git boltons/ecoutils.py boltons/ecoutils.py
index c5ff16a..6bf3367 100644
--- boltons/ecoutils.py
+++ boltons/ecoutils.py
@@ -180,7 +180,7 @@ HAVE_UCS4 = getattr(sys, 'maxunicode', 0) > 65536
HAVE_READLINE = True
try:
- import readline
+ pass
except Exception:
HAVE_READLINE = False
Of course this is not an acceptable change to push as-is to upstream, as we loose the I'll try to dig for a root cause in that direction. In the mean time, here is the system I'm running:
|
Veeeerry interesting. |
I've got a really strange issue.
Tl;Dr: when I import
from boltons.ecoutils import get_profile
fromboltons 23.0.0
, the interactivepdb
prompt from mypytest --pdb
calls disappears.Before the upgrade to
23.0.0
, I had:After the upgrade to
23.0.0
, I get a blocking prompt:See above the blocking
pdb
session without any prompt. It is not responding to anypdb
command and have to exits with^D
.And in the configuration above, as soon as I remove the
from boltons.ecoutils import get_profile
statement from my code, while keeping the23.0.0
version ofboltons
installed, then the problem disappear and I get back my interactivepdb
prompt.I confirm this issue to be completely absent from the
21.0.0
release ofboltons
.For reference, the issue appeared in my project with commit: kdeldycke/click-extra@1f7c6de
As for the potential fix, there something wrong with the changes in
boltons/ecoutils.py
between 21.0.0 and 23.0.0: 21.0.0...23.0.0#diff-71d9829db55b3d86e1aefcc41e09ab86f3de1d42db1d9859f9976413f0315c86 . Probably with the waypprint._safe_repr
is monkey-patched.The text was updated successfully, but these errors were encountered: