Closed thagoober closed 1 year ago
Hi, one more thing, although I am not sure this is directly related to your work, would you happen to have any insight on why I would be getting this error, as well?
Command: flask run --host=0.0.0.0 --port=8080 ImportError: cannot import name 'Mapping' from 'collections' (/usr/lib/python3.10/collections/init.py)
Thank you so much for your help on this.
Hi,
I am building a subway clock using your MTA API code, and using the tutorial from https://github.com/boscacci/Arduino-Subway-Clock. I'm setting up the code for my AWS server, but keep running into this particular issue that I can't resolve.
Specifically getting this error from my SSH:
ubuntu@ip-xxx-xx-x-xxx:~/MTAPI$ python3 app.py Traceback (most recent call last): File "/home/ubuntu/MTAPI/app.py", line 57, in
app.config['MTA_KEY'],
KeyError: 'MTA_KEY'
I get the same error after running the command:
flask run --host=0.0.0.0 --port=8080
Do you have any advice for this? THANKS!