michael-lazar / flask-gopher

A Flask extension to support the Gopher protocol
GNU General Public License v3.0
77 stars 6 forks source link

pkg_resources error caused by outdated setuptools #16

Open jblang opened 1 month ago

jblang commented 1 month ago

The figlet dependency in flask-gopher is throwing the following error:

./run_server.py
Traceback (most recent call last):
  File "/home/jblang/flask-gopher/demo/./run_server.py", line 23, in <module>
    from pyfiglet import FigletFont
  File "/home/jblang/flask-gopher/venv/lib/python3.12/site-packages/pyfiglet/__init__.py", line 11, in <module>
    import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'

This can be fixed by installing the latest version of setuptools:

pip install --upgrade setuptools

You may want to include a note in your readme or see if you can add a dependency so that the latest setuptools is automatically installed.