multiscale / muscle3

The third major version of the MUltiScale Coupling Library and Environment
Apache License 2.0
25 stars 13 forks source link

Make in Python example throws ResolutionImpossible error #85

Closed sverhoeven closed 2 years ago

sverhoeven commented 3 years ago

I wanted to run the Python example. I cloned the repo, checkout develop branch and ran make in docs/source/examples/python then I got the following error:

make
make -C build all
make[1]: Entering directory '/home/verhoes/git/sss/muscle3/docs/source/examples/python/build'
python3 -m venv venv
. venv/bin/activate && pip3 install -U pip setuptools wheel && pip3 install -r  ../requirements.txt && pip3 install /home/verhoes/git/sss/muscle3/docs/source/examples/python/build/../../../../../
Collecting pip
  Using cached pip-21.0.1-py3-none-any.whl (1.5 MB)
Collecting setuptools
  Using cached setuptools-52.0.0-py3-none-any.whl (784 kB)
Collecting wheel
  Using cached wheel-0.36.2-py2.py3-none-any.whl (35 kB)
Installing collected packages: pip, setuptools, wheel
  Attempting uninstall: pip
    Found existing installation: pip 20.0.2
    Uninstalling pip-20.0.2:
      Successfully uninstalled pip-20.0.2
  Attempting uninstall: setuptools
    Found existing installation: setuptools 44.0.0
    Uninstalling setuptools-44.0.0:
      Successfully uninstalled setuptools-44.0.0
Successfully installed pip-21.0.1 setuptools-52.0.0 wheel-0.36.2
Collecting git+https://github.com/yatiml/yatiml.git@develop (from -r ../requirements.txt (line 4))
  Cloning https://github.com/yatiml/yatiml.git (to revision develop) to /tmp/pip-req-build-71vljr9f
  Running command git clone -q https://github.com/yatiml/yatiml.git /tmp/pip-req-build-71vljr9f
Collecting git+https://github.com/multiscale/ymmsl-python.git@develop (from -r ../requirements.txt (line 5))
  Cloning https://github.com/multiscale/ymmsl-python.git (to revision develop) to /tmp/pip-req-build-no5fxapx
  Running command git clone -q https://github.com/multiscale/ymmsl-python.git /tmp/pip-req-build-no5fxapx
Collecting git+https://github.com/vecma-project/qcg-pilotjob.git@develop (from -r ../requirements.txt (line 6))
  Cloning https://github.com/vecma-project/qcg-pilotjob.git (to revision develop) to /tmp/pip-req-build-t7tqe52f
  Running command git clone -q https://github.com/vecma-project/qcg-pilotjob.git /tmp/pip-req-build-t7tqe52f
  Running command git checkout -b develop --track origin/develop
  Switched to a new branch 'develop'
  Branch 'develop' set up to track remote branch 'develop' from 'origin'.
  Running command git submodule update --init --recursive -q
Collecting matplotlib
  Using cached matplotlib-3.3.4-cp38-cp38-manylinux1_x86_64.whl (11.6 MB)
Collecting numpy
  Downloading numpy-1.20.0-cp38-cp38-manylinux2010_x86_64.whl (15.4 MB)
     |████████████████████████████████| 15.4 MB 3.6 MB/s
Collecting sobol_seq
  Downloading sobol_seq-0.2.0-py3-none-any.whl (9.2 kB)
Collecting zmq
  Downloading zmq-0.0.0.zip (2.2 kB)
Collecting click
  Using cached click-7.1.2-py2.py3-none-any.whl (82 kB)
Collecting prompt_toolkit
  Using cached prompt_toolkit-3.0.14-py3-none-any.whl (359 kB)
Collecting psutil
  Downloading psutil-5.8.0-cp38-cp38-manylinux2010_x86_64.whl (296 kB)
     |████████████████████████████████| 296 kB 45.7 MB/s
Collecting ruamel.yaml<=0.16.12,>=0.15.71
  Using cached ruamel.yaml-0.16.12-py2.py3-none-any.whl (111 kB)
Collecting typing_extensions
  Using cached typing_extensions-3.7.4.3-py3-none-any.whl (22 kB)
INFO: pip is looking at multiple versions of yatiml to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of qcg-pilotjob to determine which version is compatible with other requirements. This could take a while.
ERROR: Cannot install -r ../requirements.txt (line 5) and yatiml 0.6.2.dev0 (from git+https://github.com/yatiml/yatiml.git@develop) because these package versions have conflicting dependencies.

The conflict is caused by:
    The user requested yatiml 0.6.2.dev0 (from git+https://github.com/yatiml/yatiml.git@develop)
    ymmsl 0.10.2.dev0 depends on yatiml>=0.7.0

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies
make[1]: *** [Makefile:16: venv] Error 1
make[1]: Leaving directory '/home/verhoes/git/sss/muscle3/docs/source/examples/python/build'
make: *** [Makefile:3: all] Error 2
LourensVeen commented 3 years ago

Hi Stefan,

The development branch is in the midst of development and currently broken. Please try master instead for the latest release, that should work.

LourensVeen commented 3 years ago

I should probably explicitly specify using the master branch in the documentation, and/or make master the default branch in git. Thanks for reporting!

LourensVeen commented 2 years ago

The documentation now says to use master explicitly. We should rename it actually, but that's a different issue.

LourensVeen commented 2 years ago

Released in 0.5.0.