ude-soco / RIMA

https://rima.soco.inko.cloud
9 stars 14 forks source link

Lower python version needed #369

Open shoebjoarder opened 11 months ago

shoebjoarder commented 11 months ago

The current version of the Python used in the Dockerfile is 3.7.17. This is not recommended because in order to make the SIFRank algorithm work, both backend-api and backend-worker must be downgraded to 3.7.2. This is causing the backend-worker service to get stuck, e.g., [2023-08-07 13:24:13,226: WARNING/ForkPoolWorker-1] compute papers' keywords, and the stuck loading screen in the frontend.

shoebjoarder commented 11 months ago

Tried by building docker container python 3.7.1 from source

FROM debian:buster
RUN apt-get update && apt-get install -y \
 wget \
 build-essential \
 libffi-dev \
 libssl-dev \
 zlib1g-dev \
 sqlite3 \
 libsqlite3-dev \
 libbz2-dev

RUN wget https://www.python.org/ftp/python/3.7.1/Python-3.7.1.tgz \
 && tar -xvf Python-3.7.1.tgz \
 && cd Python-3.7.1 \
 && ./configure --enable-optimizations \
 && make altinstall

# Set the Python version
ENV PYTHON_VERSION python3.7
...
# RUN python -m venv $VIRTUAL_ENV
RUN $PYTHON_VERSION -m venv $VIRTUAL_ENV

Unfortunately, it didn't help. Expecting an issue with the downloaded StanfordCoreNLP.

ralf-berger commented 11 months ago

RIMA-Backend runs on Python 3.9.x.

shoebjoarder commented 11 months ago

But In the Dockerfile it is mentioned 3.7...

https://github.com/ude-soco/RIMA/blob/15760fa640b732fd1d5f8599b154f6cc002327a7/RIMA-Backend/Dockerfile#L2

ralf-berger commented 11 months ago

But In the Dockerfile it is mentioned 3.7...

The commit you're quoting is not in the history of master. Maybe you're on one of the following branches: