-
Notifications
You must be signed in to change notification settings - Fork 412
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
Don't import pretty_errors
#2543
Conversation
Thank you for sharing your opinion; how/why do you install |
I just installed lightning, yesterday: $ python -m venv venv
$ . venv/bin/activate
$ pip install torchmetrics==1.4.0
...
$ pip freeze | grep pretty
pretty-errors==1.2.25 It's good that |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2543 +/- ##
======================================
Coverage 69% 69%
======================================
Files 313 313
Lines 17617 17615 -2
======================================
- Hits 12162 12161 -1
+ Misses 5455 5454 -1 |
* fix: don't import `pretty_errors` * fix: remove `pretty_errors` as a debug requirement (cherry picked from commit 4c2a143)
* fix: don't import `pretty_errors` * fix: remove `pretty_errors` as a debug requirement (cherry picked from commit 4c2a143)
It's really inappropriate for a low-level library like this to be making global changes to the way stack traces are rendered. Especially since the "pretty" stack traces don't include file names or line numbers!
This is just crazy. All I wanted to do was import
lightning
, and I had to spend a couple hours tracking down why my stack traces were suddenly useless. If users want this behavior, they should knowingly opt-in themselves. They shouldn't be forced in by some dependency of a dependency of a dependency.📚 Documentation preview 📚: https://torchmetrics--2543.org.readthedocs.build/en/2543/