sanic-org / tracerite Goto Github PK
View Code? Open in Web Editor NEWTracebacks for Humans (in Jupyter notebooks)
License: The Unlicense
Tracebacks for Humans (in Jupyter notebooks)
License: The Unlicense
Seeing this error:
.venv/lib/python3.11/site-packages/sanic/errorpages.py:26: in <module>
from sanic.pages.error import ErrorPage
.venv/lib/python3.11/site-packages/sanic/pages/error.py:3: in <module>
import tracerite.html
.venv/lib/python3.11/site-packages/tracerite/__init__.py:1: in <module>
from .html import html_traceback
.venv/lib/python3.11/site-packages/tracerite/html.py:1: in <module>
import pkg_resources
E ModuleNotFoundError: No module named 'pkg_resources'
Installing setuptools
resolves this
The library was previously installed but when I did a poetry update
it got uninstalled
There are some pretty clever tricks in there, worth copying to Niceback:
https://github.com/ipython/ipython/blob/master/IPython/core/ultratb.py
When having an exception, the call to vars(value).items()
fails with an exception in inspector.py at line 42:
Traceback (most recent call last):
File "/home/cx42/www/getfernand.com/api/env/lib64/python3.10/site-packages/tracerite/inspector.py", line 42, in extract_variables
for n, v in vars(value).items():
TypeError: vars() argument must have dict attribute
Hello,
I guess tracerite gets installed by default by sanic.
In any case, it causes a chain of deprecation warnings in my code, the first one being
tracerite/init.py:1: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
import pkg_resources
We can migrate setup.py
to pyproject.toml
.
For unknown reasons, the scroll function gets broken at times. Scrolling the page around a bit seems to fix it. Sideways scroll (if available on user device) can also be used to browse frames.
Need to look into the Javascript function and why it does nothing.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.