Docker-compose on Torizon

Hello,

The docker command works well for our single container application. We’re trying to run multi container app with docker-compose. However, docker-compose repose with the error below. How can this be fixed?
Tnx, Dov

apalis-imx6-10492181:~$ docker-compose
Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 583, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 900, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 791, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (requests 2.21.0 (/usr/lib/python3.7/site-packages), Requirement.parse('requests!=2.11.0,!=2.12.2,!=2.18.0,<2.21,>=2.6.1'), {'docker-compose'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/docker-compose", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3191, in <module>
    @_call_aside
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3175, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3204, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 585, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 598, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 786, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'requests!=2.11.0,!=2.12.2,!=2.18.0,<2.21,>=2.6.1' distribution was not found and is required by docker-compose
apalis-imx6-10492181:~$

Greetings @dovz11,

This is a known issue that has been resolved in the latest TorizonCore release which has just been recently made public. Please use the Toradex Easy Installer to flash the latest TorizonCore.

Best Regards,
Jeremias

Hi @jeremias.tx

Thank you. I have used the Toradex easy installer to install the existing Torizon OS. Can you please point me to the instructions for relaunching the installer as the system now boots directly to Torizon?

Thanks,
Dov

Hi @dovz11,

Please refer to: Downloads & Installers | Toradex Developer Center

This page will show you how to put your module into recovery mode then load the easy installer.

Hi @jeremias.tx

Thanks. I went through the [non trivial…] process, upgraded the os and got docker-compose to work.

Perfect. Thanks for the feedback.