sanic-org / tracerite

Tracebacks for Humans (in Jupyter notebooks)
The Unlicense
12 stars 4 forks source link

setuptools dependency #9

Open JamesHutchison opened 10 months ago

JamesHutchison commented 10 months ago

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

JamesHutchison commented 10 months ago

Looks like this was incomplete:

https://github.com/sanic-org/tracerite/commit/4417b7018d61987293c1d4604654dfb4223489de

Existing reference:

https://github.com/sanic-org/tracerite/blob/main/tracerite/html.py#L1