ccomkhj opened a new issue, #25510:
URL: https://github.com/apache/airflow/issues/25510
### Apache Airflow version
2.3.3 (latest released)
### What happened
airflow db check TypeError: __init__() got an unexpected keyword argument
'encoding' happens when pip install pyblink is included in dockerfile.
If I exclude pyblink, it works.
### What you think should happen instead
_No response_
### How to reproduce
FROM apache/airflow:2.3.3
USER root
ARG AIRFLOW_HOME=/opt/airflow
ENV AIRFLOW_HOME=${AIRFLOW_HOME}
# Install dependencies and tools
RUN apt-get update -y && \
apt-get -y install sudo && \
apt-get upgrade -yqq && \
apt-get install -yqq --no-install-recommends \
python3-dev \
wget \
libczmq-dev \
curl \
libssl-dev \
git \
inetutils-telnet \
bind9utils freetds-dev \
libkrb5-dev \
libsasl2-dev \
libffi-dev libpq-dev \
freetds-bin build-essential \
default-libmysqlclient-dev \
apt-utils \
rsync \
zip \
unzip \
gcc \
vim \
netcat \
ssh \
sshpass \
&& apt-get autoremove -yqq --purge && apt-get clean
# For Admin,
RUN useradd -m docker && echo "docker:docker" | chpasswd && adduser docker
sudo
USER airflow
RUN pip install --upgrade "pip==22.1.2" && \
pip install apache-airflow-providers-slack==4.2.3 && \
pip install apache-airflow-providers-http==2.1.2 && \
pip install apache-airflow-providers-docker==2.7.0 && \
pip install apache-airflow-providers-samba==4.0.0 && \
pip install matplotlib fpdf confuse pyblink
RUN chown -R airflow: ${AIRFLOW_HOME}
COPY ./start-airflow.sh ./start-airflow.sh
USER root
RUN chmod +x ./start-airflow.sh
EXPOSE 8080
CMD [ "./start-airflow.sh" ]
### Operating System
Ubuntu 20.04.3 LTS
### Versions of Apache Airflow Providers
_No response_
### Deployment
Docker-Compose
### Deployment details
_No response_
### Anything else
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]