airflow-tutorial icon indicating copy to clipboard operation
airflow-tutorial copied to clipboard

ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/usr/local/lib/python3.7/site-packages/markupsafe/__init__.py)

Open busranurorhan opened this issue 3 years ago • 2 comments

I have the following:

Docker version 20.10.17 docker-compose version v2.6.1, build 5becea4c Airflow 2.4.2

my docker-compose.yml file like below

version: '3' services: postgres: image: postgres:9.6 environment: - POSTGRES_USER=airflow - POSTGRES_PASSWORD=airflow - POSTGRES_DB=airflow ports: - "5432:5432"

webserver: image: puckel/docker-airflow:1.10.9 build: context: https://github.com/puckel/docker-airflow.git#1.10.9 dockerfile: Dockerfile args: AIRFLOW_DEPS: gcp_api,s3 PYTHON_DEPS: sqlalchemy==1.3.0 restart: always depends_on: - postgres environment: - LOAD_EX=n - EXECUTOR=Local - FERNET_KEY=jsDPRErfv8Z_eVTnGfF8ywd19j4pyqE3NpdUBA_oRTo= volumes: - ./examples/intro-example/dags:/usr/local/airflow/dags # Uncomment to include custom plugins # - ./plugins:/usr/local/airflow/plugins ports: - "8080:8080" command: webserver healthcheck: test: ["CMD-SHELL", "[ -f /usr/local/airflow/airflow-webserver.pid ]"] interval: 30s timeout: 30s retries: 3

Ekran görüntüsü 2022-11-07 220826

busranurorhan avatar Nov 07 '22 19:11 busranurorhan

link you can follow this answer that is basically adding MarkupSafe==2.0.1 in your PYTHON_DEPS: in the docker.yaml file

gd1m3y avatar Nov 12 '22 13:11 gd1m3y

link you can follow this answer that is basically adding MarkupSafe==2.0.1 in your PYTHON_DEPS: in the docker.yaml file and also an update you will require the library wtforms==2.3.3

gd1m3y avatar Nov 12 '22 14:11 gd1m3y