|
I get this error when I run the script
- Traceback (most recent call last):
- File "webioOP.py", line 3, in <module>
- from flask import Flask, render_template, request
- File "/usr/local/lib/python2.7/dist-packages/flask/__init__.py", line 21, in <module>
- from .app import Flask, Request, Response
- File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 27, in <module>
- from . import json, cli
- File "/usr/local/lib/python2.7/dist-packages/flask/json.py", line 23, in <module>
- from itsdangerous import simplejson as _json
- File "/usr/local/lib/python2.7/dist-packages/itsdangerous.py", line 40, in <module>
- import json
- File "/usr/local/lib/python2.7/dist-packages/flask/json.py", line 14, in <module>
- from .globals import current_app, request
- ValueError: Attempted relative import in non-package
Copy code
What am I doing wrong? |
|