mljar / mercury

Convert Jupyter Notebooks to Web Apps

Home Page:https://RunMercury.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Errors while using the Dockerfile

tdehaeze opened this issue · comments

Hi,

I wanted to test Mercury using Docker.
I just followed the instructions here: https://runmercury.com/docs/docker-compose/

git clone https://github.com/mljar/mercury-deploy-demo.git
git clone https://github.com/mljar/mercury.git
cd mercury
sudo docker-compose build

I tried this both on my main machine (Archlinux), and on my server (Ubuntu). Both are failing with the same error at "step 8":

Step 8/17 : RUN mamba install --yes python=3.8 --file mercury/requirements.txt -c conda-forge
 ---> Running in fc7a92096509

Looking for: ['django==4.2.2', 'djangorestframework==3.14.0', 'django-filter==21.1', 'markdown==3.3.6', "celery[version='>=5.1.2']", 'sqlalchemy==1.4.27', 'gevent', "nbconvert[version='>=7.8.0']", 'ipython_genutils', 'pyyaml==6.0', 'django-cors-headers==3.10.1', "ipython[version='>=7.30.1']", "ipykernel[version='>=6.6.0']", "psutil[version='>=5.8.0']", "whitenoise[version='>=5.3.0']", "python-dotenv[version='>=0.19.2']", 'django-drf-filepond==0.4.1', "croniter[version='>=1.3.5']", 'pyppeteer==1.0.2', "channels[version='>=4.0.0']", "websocket-client[version='>=1.4.2']", 'execnb', 'ipywidgets==8.0.3', 'dj-rest-auth==3.0.0', 'boto3==1.26.83', 'cryptography', "pyopenssl[version='>=23.1.1']", "bleach[version='>=6.0.0']", 'python=3.8']

Could not solve for environment specs
The following packages are incompatible
├─ python 3.8**  is requested and can be installed;
└─ truststore is not installable because there are no viable options
   ├─ truststore 0.8.0 would require
   │  └─ python >=3.11,<3.12.0a0 , which conflicts with any installable versions previously reported;
   ├─ truststore [0.7.0|0.8.0] would require
   │  └─ python >=3.10  but there are no viable options
   │     ├─ python [3.11.0|3.11.1|...|3.11.6] conflicts with any installable versions previously reported;
   │     ├─ python [3.10.0|3.10.1|...|3.10.9] conflicts with any installable versions previously reported;
   │     ├─ python 3.12.0 conflicts with any installable versions previously reported;
   │     └─ python 3.12.0rc3 would require
   │        └─ _python_rc, which does not exist (perhaps a missing channel);
   └─ truststore 0.8.0 would require
      └─ python >=3.10,<3.11.0a0 , which conflicts with any installable versions previously reported.
ERROR: Service 'mercury' failed to build : The command '/bin/sh -c mamba install --yes python=3.8 --file mercury/requirements.txt -c conda-forge' returned a non-zero code: 1

I tried to find a python version that could work for all the requirements, but I could not. I am not so familiar with Python.
I also tried with older Mercury version, and I got similar issues.

Could you have a look at it?
Thanks a lot

Hi @tdehaeze,

Your error is similar to #385

Please try change to:

RUN mamba install --yes python=3.10 --file mercury/requirements.txt -c conda-forge

Thanks, it works now.