Giter Club home page Giter Club logo

Comments (6)

geerlingguy avatar geerlingguy commented on June 12, 2024

Most things work fine... but when Ansible tries running docker-compose stop, it returns:

    Traceback (most recent call last):
      File "/usr/local/bin/docker-compose", line 6, in <module>
        from compose.cli.main import main
      File "/usr/local/lib/python2.7/dist-packages/compose/cli/main.py", line 17, in <module>
        import docker
...
      File "/usr/local/lib/python2.7/dist-packages/docker/transport/__init__.py", line 3, in <module>
        from .ssladapter import SSLHTTPAdapter
      File "/usr/local/lib/python2.7/dist-packages/docker/transport/ssladapter.py", line 23, in <module>
        from backports.ssl_match_hostname import match_hostname
    ImportError: No module named ssl_match_hostname

There's an old open issue docker/docker-py#1502 for this... going to dig a little. Have not seen this anywhere else.

from drupal-pi.

geerlingguy avatar geerlingguy commented on June 12, 2024

Hmm... I ran:

sudo pip install --upgrade docker

And during the upgrade I saw:

docker-compose 1.24.1 has requirement docker[ssh]<4.0,>=3.7.0, but you'll have docker 4.0.2 which is incompatible.
Installing collected packages: docker
  Found existing installation: docker 3.7.3
    Uninstalling docker-3.7.3:
      Successfully uninstalled docker-3.7.3
Successfully installed docker-4.0.2

I wonder if it's an issue with the current version of docker-compose's dependency list :/

from drupal-pi.

geerlingguy avatar geerlingguy commented on June 12, 2024

That was interesting... I found this comment (docker/docker-py#1502 (comment)) on the issue I linked earlier, which mentioned there was a Debian package which could be causing this mayhem... and that was the problem.

The fix:

$ sudo apt-get remove python-configparser

And now:

$ docker-compose --version
docker-compose version 1.24.1, build 4667896

Going to have to figure out the best way to make sure this is fixed in automation :/

from drupal-pi.

geerlingguy avatar geerlingguy commented on June 12, 2024

Checking on a vanilla buster install, python-configparser is not present. So something in this playbook seems to be installing it, maybe via some dependency... i.e. when Pip is getting installed?

from drupal-pi.

geerlingguy avatar geerlingguy commented on June 12, 2024

So, I ran watch "dpkg -l | grep configparser" while running the initial setup playbook, and lo and behold, when I reached the task geerlingguy.pip : Ensure Pip is installed., up popped python-configparser. So it's installed at that point.

I will have to see if maybe I should add a 'no-install-recommends' or something to the Pip install step.

$ apt-cache depends python-pip
python-pip
  Depends: ca-certificates
  Depends: python-pip-whl
  Depends: <python:any>
    python
  Depends: <python:any>
    python
  Recommends: build-essential
  Recommends: python-all-dev
  Recommends: python-setuptools
  Recommends: python-wheel

And:

$ apt-cache rdepends python-configparser
python-configparser
Reverse Depends:
  elastalert
  sagemath
  python-yapsy
  python-nipype
  python-metaconfig
  python-future
  python-flake8
  python-entrypoints
  python-custodia
  pylint
  nagios2mantis
  ibus-braille
  hinge
  eyes17

Strangely, I'm not sure what is getting configparser into the mix :/

from drupal-pi.

geerlingguy avatar geerlingguy commented on June 12, 2024

Simply installing python-backports.ssl-match-hostname in the required dependencies prior to installing Pip seems to set things straight. Final test now, and then I'm going to tag a new happy release that seems to work great with Raspbian Buster!

from drupal-pi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.