CCI-MIT / POGS

The Platform for Online Group Studies (POGS) is a tool to study collective learning.
GNU General Public License v2.0
16 stars 11 forks source link

Fail to install #11

Open mojuha opened 1 year ago

mojuha commented 1 year ago

We get the following message (testing various versions of Ubuntu and Debian): => ERROR [pythonserver 5/8] RUN pip install fabric 4.0s => [nodeserver 1/15] FROM docker.io/library/node:lts-slim@sha256:7c9f2200d17af63837575055fe8d054f3df08c2875dbb5725ce5559852da2b20 0.0s => [nodeserver internal] load build context 0.0s => => transferring context: 176B 0.0s => CACHED [nodeserver 2/15] RUN groupadd --system --gid "0" --non-unique etherpad && useradd --system --uid "5001" --non-unique --gid etherpad --create-home etherpad 0.0s => CACHED [nodeserver 3/15] RUN apt-get update; apt-get install curl -y 0.0s => CACHED [nodeserver 4/15] RUN echo "Getting version: develop" && curl --location --fail --silent --show-error --output /opt/etherpad-lite.tar.gz https://github.com/ether/etherpad-lite/archive/"develop".ta 0.0s => CACHED [nodeserver 5/15] RUN chown etherpad:etherpad "/opt/etherpad-lite" 0.0s => CACHED [nodeserver 6/15] WORKDIR /opt/etherpad-lite 0.0s => CANCELED [nodeserver 7/15] RUN { [ -z "ep_disable_chat" ] || npm install --no-save --legacy-peer-deps ep_disable_chat; } && src/bin/installDeps.sh && rm -rf ~/.npm 4.2s

[pythonserver 5/8] RUN pip install fabric:

0 1.472 DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support

0 2.019 Collecting fabric

0 2.290 Downloading fabric-3.1.0.tar.gz (177 kB)

0 3.365 ERROR: Could not find a version that satisfies the requirement invoke>=2.0 (from fabric) (from versions: 0.2.0, 0.3.0, 0.4.0, 0.5.0, 0.5.1, 0.6.0, 0.6.1, 0.7.0, 0.8.0, 0.8.1, 0.8.2, 0.9.0, 0.10.0, 0.10.1, 0.11.0, 0.11.1, 0.12.0, 0.12.1, 0.12.2, 0.13.0, 0.14.0, 0.15.0, 0.16.0, 0.16.1, 0.16.2, 0.16.3, 0.17.0, 0.18.0, 0.18.1, 0.19.0, 0.20.0, 0.20.1, 0.20.2, 0.20.3, 0.20.4, 0.21.0, 0.22.0, 0.22.1, 0.23.0, 1.0.0, 1.0.1, 1.0.2, 1.1.0, 1.1.1, 1.2.0, 1.3.0, 1.3.1, 1.4.0, 1.4.1, 1.5.0, 1.5.1, 1.6.0, 1.7.0, 1.7.1, 1.7.2, 1.7.3)

0 3.374 ERROR: No matching distribution found for invoke>=2.0 (from fabric)

0 3.799 WARNING: You are using pip version 20.0.2; however, version 20.3.4 is available.

0 3.799 You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.


failed to solve: process "/bin/sh -c pip install fabric" did not complete successfully: exit code: 1

Additional/related thought: When reviewing the "docker-compose.yml" file, one of us suspects that the problem may lie in the fact that the components/packages are not tagged with version numbers. By default, Docker will download the latest version, and there is a certain possibility that the problem may lie here?

Thank you and best regards, Morten and team

yigit-8 commented 12 months ago

Dear Morten and the Team,

I encountered the same issue, and I followed these steps to resolve it. I'm just someone who is curious about this project and not involved in the development.

I'm using Ubuntu 22.04.

At the repository's root directory, I ran the following commands:

cd .docker/pythonserver

(sudo apt-get install vim), optional sudo vim Dockerfile

In the Dockerfile, I changed the Python version from 2.7 to 3.11. FROM python:3.11

Press Esc and type :wq to save changes.

Afterward, I updated the package list. sudo apt-get update

Finally, I brought up the Docker compose:

sudo docker-compose up

If it still doesn't work, you may want to check for any internet connection limitations. I hope these steps work for you as well.

Best,