You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I setup rich as described in https://rich.readthedocs.io/en/latest/traceback.html but receive the standard python Traceback. I executed all files via python /tmp/rich-test.py after source ~/.venv/rich/bin/activate.
I don't know which pieces you need, so I included everything I found worth mentioning
/usr/lib/python3.10/sitecustomize.py
Traceback (most recent call last):
File "/tmp/rich-test.py", line 5, in <module>
print(1/a)
ZeroDivisionError: division by zero
and output of cat /usr/lib/python3.10/sitecustomize.py:
# install the apport exception handler if availabletry:
importapport_python_hookexceptImportError:
passelse:
apport_python_hook.install()
Using rich directly
~/.venv/rich/lib/python3.10/site-packages/sitecustomize.py from above unchanged. cat /tmp/rich-test.py:
Hey guys,
I setup rich as described in https://rich.readthedocs.io/en/latest/traceback.html but receive the standard python Traceback. I executed all files via
python /tmp/rich-test.py
aftersource ~/.venv/rich/bin/activate
.I don't know which pieces you need, so I included everything I found worth mentioning
cat ~/.venv/rich/lib/python3.10/site-packages/sitecustomize.py
:Python code to run:
Output:
Further examples and information
importing
sitecustomize
cat /tmp/rich-test.py
Output:
and output of
cat /usr/lib/python3.10/sitecustomize.py
:Using rich directly
~/.venv/rich/lib/python3.10/site-packages/sitecustomize.py
from above unchanged.cat /tmp/rich-test.py
:Output: Rich traceback's output.
Any help and hints are welcome! 👐 I'll provide you with whatever information you wish. 😊
The text was updated successfully, but these errors were encountered: