proper versions of pip dependencies ?
I'm trying to package this as a deb, for simpler maintenance.
The app throws errors then I'm using Ubuntu's python3- versions of the python libraries.
Mar 13 09:59:02 hidden-master gunicorn[722652]: [2024-03-13 09:59:02,175] INFO: User 'pettai' logged in
Mar 13 09:59:02 hidden-master gunicorn[722652]: [2024-03-13 09:59:02,646] ERROR: Exception on /zones [GET]
Mar 13 09:59:02 hidden-master gunicorn[722652]: Traceback (most recent call last):
Mar 13 09:59:02 hidden-master gunicorn[722652]: File "/usr/lib/python3/dist-packages/flask/app.py", line 2070, in wsgi_app
Mar 13 09:59:02 hidden-master gunicorn[722652]: response = self.full_dispatch_request()
Mar 13 09:59:02 hidden-master gunicorn[722652]: File "/usr/lib/python3/dist-packages/flask/app.py", line 1516, in full_dispatch_request
Mar 13 09:59:02 hidden-master gunicorn[722652]: return self.finalize_request(rv)
Mar 13 09:59:02 hidden-master gunicorn[722652]: File "/usr/lib/python3/dist-packages/flask/app.py", line 1535, in finalize_request
Mar 13 09:59:02 hidden-master gunicorn[722652]: response = self.make_response(rv)
Mar 13 09:59:02 hidden-master gunicorn[722652]: File "/usr/lib/python3/dist-packages/flask/app.py", line 1727, in make_response
Mar 13 09:59:02 hidden-master gunicorn[722652]: raise TypeError(
Mar 13 09:59:02 hidden-master gunicorn[722652]: TypeError: The view function did not return a valid response. The return type must be a string, dict, tuple, Response instance, or WSGI callable, but it was a list.
Perhaps there are python3 packages that needs to be more modern / knot rest could compensate for older versions?
The python3- packages (knot-rest app gives the error above):
ii python3-click 8.0.3-1 all Wrapper around optparse for command line utilities - Python 3.x
ii python3-dotenv 0.19.2-1 all Get and set values in the .env file in local and production servers
ii python3-flask 2.0.1-2ubuntu1.1 all micro web framework based on Werkzeug and Jinja2 - Python 3.x
ii python3-flask-httpauth 4.5.0-4 all Basic and Digest HTTP authentication for Flask (Python 3)
ii python3-flask-sqlalchemy 2.5.1-1 all adds SQLAlchemy support to your Python 3 Flask application
ii python3-greenlet 1.1.2-3build1 amd64 Lightweight in-process concurrent programming (python3)
ii python3-gunicorn 20.1.0-2 all Event-based HTTP/WSGI server (Python 3 libraries)
ii python3-itsdangerous 2.1.0-1 all Various helpers to pass trusted data to untrusted environment - Python 3.x
ii python3-jinja2 3.0.3-1ubuntu0.1 all small but fast and easy to use stand-alone template engine
ii python3-jwt 2.3.0-1ubuntu0.2 all Python 3 implementation of JSON Web Token
ii python3-libknot 3.3.5-cznic.1~jammy all Python bindings for libknot
ii python3-schema 0.6.7-3 all simple data validation library (Python 3)
ii python3-sqlalchemy 1.4.31+ds1-1build1 all SQL toolkit and Object Relational Mapper for Python 3
ii python3-yaml 5.4.1-1ubuntu1 amd64 YAML parser and emitter for Python3
ii python3-waitress 1.4.4-1.1ubuntu1 all production-quality pure-Python WSGI server (Python 3)
ii python3-werkzeug 2.0.2+dfsg1-1ubuntu0.22.04.1 all collection of utilities for WSGI applications (Python 3.x)
The Pip-packages (knot-rest works):
Package Version Editable project location
---------------- ------- --------------------------
click 8.1.3
contextlib2 21.6.0
Flask 2.2.2
Flask-Admin 1.6.0
Flask-HTTPAuth 4.7.0
Flask-SQLAlchemy 3.0.2
greenlet 2.0.1
itsdangerous 2.1.2
Jinja2 3.1.2
knot-rest 0.0.1 /opt/knot-dns-rest
libknot 3.2.4
MarkupSafe 2.1.1
pip 22.0.2
PyJWT 2.6.0
python-dotenv 0.21.0
PyYAML 6.0
schema 0.7.5
setuptools 59.6.0
SQLAlchemy 1.4.46
waitress 2.1.2
Werkzeug 2.2.2
WTForms 3.0.1