sys.excepthook and pudb #549
Replies: 4 comments 2 replies
-
You could try to match the pudb version from the old venv in the new one, to see if it's a change in pudb that makes the difference. |
Beta Was this translation helpful? Give feedback.
-
@inducer excellent tip Following your advice, I spun up a new ubuntu22 virt-server just to rule out anything weird on my system created 2 venv environments
next
observed pudb-2022.1.2 is installed, along with dependancies
./pudb_test.py (script from my original post) dumps stack trace, no pudb interface is presented
edited requirements.txt $ cat requirements.txt change venv
when I run ./pudb_test.py, the exception raised by oh_no() causes script to pause and pudb interface is presented I confirmed this is a reproducible experience on a fresh system standardized system. What I don't know if this is expected behavior and I simply don't understand, or if this is indeed a bug. I hope this is helpful. I can continue using pudb-2019.1 in python3.10 so this is not a show-stopper for me Thanks very much for the suggestion. |
Beta Was this translation helpful? Give feedback.
-
Quick note on github markdown- you need triple backticks to define a multiline code block. See https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#quoting-code |
Beta Was this translation helpful? Give feedback.
-
Thanks for cleaning that up! I was able to replicate the behaviour you're seeing, so I bisected. The commit which changed this behaviour was f77332c |
Beta Was this translation helpful? Give feedback.
-
Below is an example test script that I've used a lot. I started a new python venv with python3.10 and suddenly it no longer works.
I tested this with a new
python3.10 -m venv py310_test
source py310_test/bin/activate
pip install requirements
# see list belowunder my old venv (python3.7) pudb would auto launch when oh_no() is executed, allowing me to inspect the stack
under the new venv it simply dumps the stack and terminates the script and i lose all the variables
please advise how to troubleshoot. i still have my old venv if there's anything in there worth looking at
requirements below generated by pip-chill
aenum autopep8 black ciscoconfparse dos2unix flake8 humanize ipcalc ipython junos-eznc neovim netmiko npyscreen pandas password-strength pip-chill protobuf ptpython pudb pycrypto pymysql requests rich setproctitle si-prefix sshtunnel tabulate termcolor terminal tqdm upass urwidtrees xml2dict xmltodict yarp
Beta Was this translation helpful? Give feedback.
All reactions