Skip to content

cannot import name 'resolve_types' from 'attr' #12924

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

Closed
sephethus opened this issue Dec 8, 2020 · 3 comments
Closed

cannot import name 'resolve_types' from 'attr' #12924

sephethus opened this issue Dec 8, 2020 · 3 comments
Labels
kind:bug This is a clearly a bug

Comments

@sephethus
Copy link

Apache Airflow version: 1.10.12

Kubernetes version (if you are using kubernetes) (use kubectl version):

Environment:

What happened:

Webserver will not start due to airflow error: ImportError: cannot import name 'resolve_types' from 'attr' (/usr/local/lib/python3.7/site-packages/attr/init.py)

What you expected to happen:

Webserver start to test dags locally

How to reproduce it:

Use the docker-compose container above https://github.com/puckel/docker-airflow.git
Ubuntu 20.04
Run docker-compose up

Error occurs every single time.

Things already tried:

Modified dockerfile to include constraints for Python 3.7 container: --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-1.10.12/constraints-3.7.txt"

Added cattrs==1.0.0

Downgraded pip==20.2.4

Added attrs

None of the above suggestions are working. Anyone able to reproduce this and help solve?

@sephethus sephethus added the kind:bug This is a clearly a bug label Dec 8, 2020
@boring-cyborg
Copy link

boring-cyborg bot commented Dec 8, 2020

Thanks for opening your first issue here! Be sure to follow the issue template!

@turbaszek
Copy link
Member

Duplicate of #11965

@turbaszek turbaszek marked this as a duplicate of #11965 Dec 8, 2020
@turbaszek
Copy link
Member

Also I would suggest to consider using community supported docker:

docker pull apache/airflow:1.10.12-python3.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug This is a clearly a bug
Projects
None yet
Development

No branches or pull requests

2 participants