Guys, I am having a problem getting the minimal flask app running on the latest beta, iOS11.2.1.
The code below. It works under py 2.7 in the beta. I remember an error I had before was with the debug param. But this is correct now. I did a pip install of fllask(full restart etc) to see if that would help. But the same error.
I always seem to have problems getting started with flask :(
Any help appreciated
from flask import Flask
app = Flask(__name__)
@app.route('/')
def entry_point():
return 'Hello World!'
if __name__ == '__main__':
app.run(debug=False)
Traceback -
Traceback (most recent call last):
File "/private/var/mobile/Library/Mobile Documents/iCloud~com~omz-software~Pythonista3/Documents/FlaskTesting/flask__testing.py", line 1, in
from flask import Flask
File "/var/containers/Bundle/Application/F132DFB7-BD77-4096-ADA6-D8CA8F4468F2/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/flask/init.py", line 19, in
from jinja2 import Markup, escape
File "/private/var/mobile/Containers/Shared/AppGroup/3533032E-E336-4C25-BBC4-112A6BF2AF75/Pythonista3/Documents/site-packages/jinja2/init.py", line 37, in
from jinja2.environment import Environment, Template
File "/private/var/mobile/Containers/Shared/AppGroup/3533032E-E336-4C25-BBC4-112A6BF2AF75/Pythonista3/Documents/site-packages/jinja2/environment.py", line 575
info.external_attr = 0755 << 16L
^
SyntaxError: invalid token