Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
robertmarkbram opened this issue May 18, 2019 · 2 comments
Open

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

robertmarkbram opened this issue May 18, 2019 · 2 comments
Labels

Comments

@robertmarkbram
Copy link

robertmarkbram commented May 18, 2019

I have tried uninstalling and re-installing grip. I believe this may be to do with a bug in Python 3.8, but I don't see a way to change what version of Python grip will use (and I have the latest version of Python that Cygwin can give me - python3.8 --version: Python 3.8.0a3. Default python: python --version: Python 2.7.16

$ grip temp.md --export temp.html
Exporting to temp.html
Traceback (most recent call last):
  File "/usr/bin/grip", line 10, in <module>
    sys.exit(main())
  File "/usr/lib/python3.8/site-packages/grip/command.py", line 107, in main
    export(args['<path>'], args['--user-content'], args['--context'],
  File "/usr/lib/python3.8/site-packages/grip/api.py", line 116, in export
    page = render_page(path, user_content, context, username, password,
  File "/usr/lib/python3.8/site-packages/grip/api.py", line 80, in render_page
    return create_app(path, user_content, context, username, password,
  File "/usr/lib/python3.8/site-packages/grip/api.py", line 45, in create_app
    return grip_class(source, auth, renderer, None, render_wide,
  File "/usr/lib/python3.8/site-packages/grip/app.py", line 70, in __init__
    super(Grip, self).__init__(
  File "/usr/lib/python3.8/site-packages/flask/app.py", line 558, in __init__
    self.add_url_rule(
  File "/usr/lib/python3.8/site-packages/flask/app.py", line 66, in wrapper_func
    return f(self, *args, **kwargs)
  File "/usr/lib/python3.8/site-packages/flask/app.py", line 1216, in add_url_rule
    self.url_map.add(rule)
  File "/usr/lib/python3.8/site-packages/werkzeug/routing.py", line 1388, in add
    rule.bind(self)
  File "/usr/lib/python3.8/site-packages/werkzeug/routing.py", line 730, in bind
    self.compile()
  File "/usr/lib/python3.8/site-packages/werkzeug/routing.py", line 794, in compile
    self._build = self._compile_builder(False).__get__(self, None)
  File "/usr/lib/python3.8/site-packages/werkzeug/routing.py", line 951, in _compile_builder
    code = compile(module, "<werkzeug routing>", "exec")
TypeError: required field "type_ignores" missing from Module
@joeyespo
Copy link
Owner

Nice catch, @robertmarkbram!

I added Python 3.8-dev to Travis in #301 to track this. Thanks for opening the issue!

@joeyespo joeyespo added bug and removed help-wanted labels Jun 17, 2019
@harrywhite4
Copy link

Was going to look into fixing this, but ran the test and an export with python 3.8 and both worked fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants