Docker-airflow: libmysqlclient-dev

Created on 3 Jun 2018  路  5Comments  路  Source: puckel/docker-airflow

This is a stopping point always. ubuntu 14 or 16

E: Package 'libmysqlclient-dev' has no installation candidate

Most helpful comment

I also face the same issue when I rebuilt my image recently. Below is my solution and hope it works for you:

In your docker file, change line 46 from

    libmysqlclient-dev \

to

    default-libmysqlclient-dev  \

A possible reason is image python:3.6-slim recently upgraded from Debian 8 (Jessie) to Debian 9 (stretch), so some of the packages in newer version cannot be found.
Details: https://github.com/brianmario/mysql2/issues/964

All 5 comments

I also face the same issue when I rebuilt my image recently. Below is my solution and hope it works for you:

In your docker file, change line 46 from

    libmysqlclient-dev \

to

    default-libmysqlclient-dev  \

A possible reason is image python:3.6-slim recently upgraded from Debian 8 (Jessie) to Debian 9 (stretch), so some of the packages in newer version cannot be found.
Details: https://github.com/brianmario/mysql2/issues/964

Odd. I am using the default ami Ubuntu from AWS as a build server. I have been using your master branch for 2 weeks with no problem. I decided to clean and start over after some testing. Building a new server ami for build this thing started to download the mariadb ? instead of the normal mysql.
I just happened to look up and the logging was flying by. I put in the package name as libmariadbclient-dev and all works as it should. Odd this was working without issue, all generic command line and now it switched. Perhaps it was something I did.

I install ami Ubuntu Server 16.04 LTS (HVM), SSD Volume Type - ami-6a003c0f

install docker per the page: https://docs.docker.com/install/linux/docker-ce/ubuntu/
Test hello world docker image

Install your master:

git clone https://github.com/puckel/docker-airflow.git

sudo docker build -t airflow .

The above worked last couple of weeks out of the box. Now the ubuntu is grabbing mariadb instead of I guess the normal one.

Not that I care to much on the client stuff as long and it can connect to a RDS mysql but any thoughts on this ?

Made the change above and the docker container is exiting after run. It intially was failing to build before the change but after it builds but just exits instead of persisting with docker build -d -p 8080:8080 <>

I replaced "FROM python:3.6-slim" with "FROM python:3.6-slim-jessie".

The docker image was created successfully with above change but while running the airflow instance I faced an error "AttributeError: async" which was resolved by upgrading celery from 4.0.2 to 4.1.1.

@puckel ... The docker is running successfully for me with the above changes. I think we need to have this changes incorporated once we get some more confirmations.

Fixed in 1.9.0-4

Was this page helpful?
0 / 5 - 0 ratings