Skip to content
This repository was archived by the owner on Dec 3, 2025. It is now read-only.
This repository was archived by the owner on Dec 3, 2025. It is now read-only.

运行时出现错误, '_compile_builder' it contains a nested function with free variables? #139

Description

@songcap

CentOS 7.5
错误内容如下:试了很多机子都不行
Traceback (most recent call last):
File "wsgi.py", line 28, in
from rrd import app
File "/dashboard/dashboard/rrd/init.py", line 19, in
from flask import Flask, request
File "/dashboard/dashboard/env/lib/python2.7/site-packages/flask/init.py", line 21, in
from .app import Flask, Request, Response
File "/dashboard/dashboard/env/lib/python2.7/site-packages/flask/app.py", line 23, in
from werkzeug.routing import BuildError, Map, RequestRedirect, Rule
File "/dashboard/dashboard/env/lib/python2.7/site-packages/werkzeug/routing.py", line 948
exec(code, globs, locs)
SyntaxError: unqualified exec is not allowed in function '_compile_builder' it contains a nested function with free variables

这个该如何解决,试了两天没找到解决方法

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions