Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

TypeError: required field "type_ignores" missing from Module #1

Open
JPomichael opened this issue Jun 19, 2019 · 0 comments
Open

TypeError: required field "type_ignores" missing from Module #1

JPomichael opened this issue Jun 19, 2019 · 0 comments

Comments

@JPomichael
Copy link

参照 README.MD 所示键入下面命令后出错

python -m flask run --host 127.0.0.1
 * Environment: production
   WARNING: Do not use the development server in a production environment.
   Use a production WSGI server instead.
 * Debug mode: off
Traceback (most recent call last):
  File "C:\Users\lenovo\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 192, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\lenovo\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\lenovo\AppData\Local\Programs\Python\Python38\lib\site-packages\flask\__main__.py", line 14, in <module>
    main(as_module=True)
  File "C:\Users\lenovo\AppData\Local\Programs\Python\Python38\lib\site-packages\flask\cli.py", line 894, in main
    cli.main(args=args, prog_name=name)
  File "C:\Users\lenovo\AppData\Local\Programs\Python\Python38\lib\site-packages\flask\cli.py", line 557, in main
    return super(FlaskGroup, self).main(*args, **kwargs)
  File "C:\Users\lenovo\AppData\Local\Programs\Python\Python38\lib\site-packages\click\core.py", line 717, in main
    rv = self.invoke(ctx)
  File "C:\Users\lenovo\AppData\Local\Programs\Python\Python38\lib\site-packages\click\core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "C:\Users\lenovo\AppData\Local\Programs\Python\Python38\lib\site-packages\click\core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "C:\Users\lenovo\AppData\Local\Programs\Python\Python38\lib\site-packages\click\core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "C:\Users\lenovo\AppData\Local\Programs\Python\Python38\lib\site-packages\click\decorators.py", line 64, in new_func
    return ctx.invoke(f, obj, *args, **kwargs)
  File "C:\Users\lenovo\AppData\Local\Programs\Python\Python38\lib\site-packages\click\core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "C:\Users\lenovo\AppData\Local\Programs\Python\Python38\lib\site-packages\flask\cli.py", line 767, in run_command
    app = DispatchingApp(info.load_app, use_eager_loading=eager_loading)
  File "C:\Users\lenovo\AppData\Local\Programs\Python\Python38\lib\site-packages\flask\cli.py", line 293, in __init__
    self._load_unlocked()
  File "C:\Users\lenovo\AppData\Local\Programs\Python\Python38\lib\site-packages\flask\cli.py", line 317, in _load_unlocked
    self._app = rv = self.loader()
  File "C:\Users\lenovo\AppData\Local\Programs\Python\Python38\lib\site-packages\flask\cli.py", line 376, in load_app
    app = locate_app(self, import_name, None,
  File "C:\Users\lenovo\AppData\Local\Programs\Python\Python38\lib\site-packages\flask\cli.py", line 235, in locate_app
    __import__(module_name)
  File "D:\Projects\EXIF\app.py", line 109, in <module>
    app = Flask(__name__)
  File "C:\Users\lenovo\AppData\Local\Programs\Python\Python38\lib\site-packages\flask\app.py", line 558, in __init__
    self.add_url_rule(
  File "C:\Users\lenovo\AppData\Local\Programs\Python\Python38\lib\site-packages\flask\app.py", line 66, in wrapper_func
    return f(self, *args, **kwargs)
  File "C:\Users\lenovo\AppData\Local\Programs\Python\Python38\lib\site-packages\flask\app.py", line 1216, in add_url_rule
    self.url_map.add(rule)
  File "C:\Users\lenovo\AppData\Local\Programs\Python\Python38\lib\site-packages\werkzeug\routing.py", line 1388, in add
    rule.bind(self)
  File "C:\Users\lenovo\AppData\Local\Programs\Python\Python38\lib\site-packages\werkzeug\routing.py", line 730, in bind
    self.compile()
  File "C:\Users\lenovo\AppData\Local\Programs\Python\Python38\lib\site-packages\werkzeug\routing.py", line 794, in compile
    self._build = self._compile_builder(False).__get__(self, None)
  File "C:\Users\lenovo\AppData\Local\Programs\Python\Python38\lib\site-packages\werkzeug\routing.py", line 951, in _compile_builder
    code = compile(module, "<werkzeug routing>", "exec")
TypeError: required field "type_ignores" missing from Module
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant