Closed sibblegp closed 8 years ago
When I try to run under 3.X:
Traceback (most recent call last):
File "app.py", line 7, in
Having some error: Mac OSX
Same error Windows 8.1
Set from datetime import timezone TO from datetime import datetime
on OSX run pip3 install datetime
Concerning the NoneType loader issue. This is happening because you are running python3.40, there seems to be a bug with that version and flask. I ran into this problem.
If you change the python version to 3.43+ it should work. Here is the github thread for reference: https://github.com/pallets/flask/issues/1011
Set from datetime import timezone TO from datetime import datetime
This worked. Thanks!
python app.py
import api
File "/apps/tinder-detective/api.py", line 7, in
from datetime import timezone
ImportError: cannot import name timezone
Traceback (most recent call last): File "app.py", line 5, in
I don't think Python 2.7 has timezone but 3.X won't run Flask. What am I missing here?