Reputation: 21
I am trying to convert a python 2 library to python 3. I managed to convert a good part thanks to the python traceback error messages displayed in the terminal. But part of this library, which is a web server serving as IDE, does not display error messages making conversion difficult.
Why are python traceback messages not displayed? Is there a way to display them?
I found that we could set 'sys.tracebacklimit = 0' to hide the traceback but it didn't have an effect in my case setting it to 1000.
Upvotes: 2
Views: 82
Reputation: 1704
As the veteran of a large Python 3 conversion, a few thoughts:
python setup.py check
). That should be your guide as to the correctness of your conversion, not the absence of errors in manual use.TLDR: Don't get hung up on trying to surface errors from the server right now. Use the tests to find the stuff you need to fix. Use Futurize.
(I recently gave a "Porting 100,000 lines of Python 2 to Python 3" talk if you're interested.)
Upvotes: 2