brunoamaral / gregory-ai

Artificial Intelligence and Machine Learning to help find scientific research and filter relevant content
https://gregory-ai.com/
Other
47 stars 7 forks source link

upgrade python to v3.11 #297

Closed brunoamaral closed 1 year ago

brunoamaral commented 1 year ago

currently blocked by pytorch and libpq (psycopg2):

django.db.utils.OperationalError: SCRAM authentication requires libpq version 10 or above
brunoamaral commented 1 year ago

Dockerfile with postgres fixes the libpq error:

RUN apt-get update && apt-get install -y postgresql postgresql-contrib
brunoamaral commented 1 year ago

Predictor fails under python 3.11

/usr/local/lib/python3.11/site-packages/sklearn/base.py:288: UserWarning: Trying to unpickle estimator MultinomialNB from version 1.0.2 when using version 1.2.0. This might lead to breaking code or invalid results. Use at your own risk. For more info please refer to:
https://scikit-learn.org/stable/model_persistence.html#security-maintainability-limitations
brunoamaral commented 1 year ago

predictor is working as of 31c998178def1eb1b9bb794b5ee992d01974807e

brunoamaral commented 1 year ago

as of 3b8698d0dc550290a21cb5c4e4d550b3b0ca6788, the only thing left is to upgrade pytorch