data-pipelines-with-apache-airflow icon indicating copy to clipboard operation
data-pipelines-with-apache-airflow copied to clipboard

Chapter 14 citibike_api and nyc_transportation

Open AlyElashram opened this issue 3 years ago • 1 comments

The citibike_api_1 fails to run , showing an error ` File "app.py", line 6, in

from flask import Flask, jsonify, Response

File "/usr/local/lib/python3.7/site-packages/flask/init.py", line 14, in

from jinja2 import escape`

Same thing goes for the nyc_transportation api. Also After running and opening the web servers the DAGs do not show up even though they are visible and could be opened inside the file structure

AlyElashram avatar May 20 '22 21:05 AlyElashram

Just solved it. The solution that worked for me was to change the versions of flask in the requirements.txt for both files , and also add some extra requirements. Here is my requirements.txt file for the citibike fileFlask-HTTPAuth==4.1.0 Flask==2.1.2 psycopg2==2.8.5 Werkzeug==2.0.0 jinja2==3.0.3

and here is the other requirements.txt file Flask==2.1.2 psycopg2==2.8.5

AlyElashram avatar May 20 '22 22:05 AlyElashram