So whenever I import dropbox in my flask project, I get this error.
For example, even in the sample project,
I suspect that the error is due to this line:
12 DEBUG = true
But I do not know why. I get this error from running the sample project without any modification.
/ download / dropbox-master / example / flask_ app $ Python running on simple_dropbox_app.py * http://127.0.0.1: 5000 / (Press CTRL + C to skip) * Restart with state traceback (most recent call final): file "simple_dropbox_app.py", line 167, & lt; Module & gt; The main () file "simple_dropbox_app.py", line 163, in the main app.run () file "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 772, run run_simple (Host, port, self, ** option), file "/usr/local/lib/python2.7/dist-packages/werkzeug/serving.py", line 622 in run_simple reloader_type) "/ usr / local / lib /python2.7/dist-packages/werkzeug/_reloader.py ", line 269, in run_with_reloader reloader.run () file" /usr/local/lib/python2.7/dist-packages/werkzeug/_reloader.py ", Line 159, run in file (_iter_module_files (), self.extra_files) for the file name: "/usr/local/lib/python2.7/dist-packages/werkzeug/_reloader.py" file in _iter_module_files for package_path, Line 70, getatt In the r (module, '__path__', ()): file "/usr/lib/python2.7/dist-packages/six.py", line 116, __getattr__ _module = self._resolve () file "/ usr / Lib / python2.7 / district-package / six.py ", line 105, _resolve return_import_module (self.mod) file" /usr/lib/python2.7/dist-packages/six.pY ", line 76 , Import_module __import __ (name) import error: a module named _winreg
import: a _winreg name module
bus Sudo PIP install flask - upgrade
. Latest version fix this bug!
No comments:
Post a Comment