Skip to content
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

Chapter 14 citibike_api and nyc_transportation #60

Open
AlyElashram opened this issue May 20, 2022 · 1 comment
Open

Chapter 14 citibike_api and nyc_transportation #60

AlyElashram opened this issue May 20, 2022 · 1 comment

Comments

@AlyElashram
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant