Comments (6)
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.
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.
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.
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.
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.
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)
- No package matching php7.0-apcu HOT 3
- Issue at end of build with php. HOT 3
- Add cron job configuration HOT 1
- what am i doing wrong here? I can't get this to work at all HOT 6
- Create a branch for Docker-based Drupal Pi HOT 10
- New year, new picture needed for README
- Add ability to enable proxy caching
- multiple instances and sites folders HOT 3
- Fix issue with drupal files dir owner and group
- docker-compose commands failing with "No module named shutil_get_terminal_size" HOT 6
- Updates for latest version of Raspbian on Pi 4 HOT 1
- Setup corrupts ssh settings HOT 3
- Test Performance and Functionality on Raspberry Pi OS 64-bit HOT 21
- Update build.pull value for 'Build Drupal for Kubernetes Docker image.' HOT 1
- Change default database image from hypriot/rpi-mysql:5.5 HOT 2
- Ubuntu 20.04.2 LTS error with "python-backports.ssl-match-hostname" package HOT 8
- Bring up the Docker containers fails
- Switch from Travis CI to GitHub Actions
- Link in Readme.md leads to 404 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from drupal-pi.