-
Notifications
You must be signed in to change notification settings - Fork 541
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ModuleNotFoundError: No module named 'wtforms.compat' #649
Comments
I ran into the same issue. What worked for me was pulling the original docker-airflow image and running it. Once inside the container, you can export the list of packages via pip freeze and then run pip install on that exported file inside your dockerfile. The issue had something to do with the version of WTForms. |
You can change the version of wtforms before building the docker image with the example in docker compose yaml syntax: version: '3'
services:
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 wtforms==2.3.3
... Source: |
Ran into the same issue yet again. Have downgraded the version of wtforms==2.3.3 and added to the dependencies in the yml file and yet ModuleNotFoundError: No module named 'wtforms.compat' message persists. |
Pinning the version worked for me as well. |
What exactly did you pin @ednarb29 ? |
When i run the dcoker-compose file i am getting this error and i tried to do pip isntall wtforms in dockerfile, but still its same. Please help me to slove this
ModuleNotFoundError: No module named 'wtforms.compat'
The text was updated successfully, but these errors were encountered: