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

I got a problem when using python3.8 to run flask #1669

Closed
somewheve opened this issue Nov 23, 2019 · 3 comments
Closed

I got a problem when using python3.8 to run flask #1669

somewheve opened this issue Nov 23, 2019 · 3 comments
Assignees

Comments

@somewheve
Copy link

I try to use the virtual environment based on python 3.8 to running
a flask program in Arch Linux.

But I got an error

TypeError: required field "type_ignores" missing from Module'

So I search it by google and find a way to solve it.

link

and I change the code to the next version and it works

werkzeug/routing.py line:950-952

module = ast.fix_missing_locations(ast.Module([func_ast],[]))
code = compile(module, "<werkzeug routing>", "exec")
return self._get_func_code(code, func_ast.name)

Hope for your reply and fix

@aenglander
Copy link
Contributor

Can you add a code sample to reproduce as well as a Pipenv.lock file or the results of a pip freeze for me to reproduce the issue? I have been running Flask/Werkzeug in Python 3.8 for a bit and don't have the same issue.

@aenglander aenglander self-assigned this Dec 16, 2019
@davidism
Copy link
Member

This should have been fixed a while ago, are you using the latest version?

@davidism
Copy link
Member

Duplicate of #1551

@davidism davidism marked this as a duplicate of #1551 Dec 16, 2019
@pallets pallets deleted a comment from ankitmaisuriya1997 Mar 28, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 13, 2020
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

3 participants