ImportError:无法导入名称“x”

2024-09-24 22:30:30 发布

您现在位置:Python中文网/ 问答频道 /正文

很多这样的线索,但我还是很困惑。我有急事,我不知道我做错了什么。。。在

错误信息如下:

  File "/app/src/pptxbuilder/app.py", line 85, in <module>
    __web_setup()
  File "/app/src/pptxbuilder/app.py", line 35, in __web_setup
    from pptxbuilder.views.home import home_bp
  File "/app/src/pptxbuilder/views/__init__.py", line 2, in <module>
    from .builder import builder_bp
  File "/app/src/pptxbuilder/views/builder.py", line 30, in <module>
    from pptxbuilder.app import app
  File "/app/src/pptxbuilder/app.py", line 85, in <module>
    __web_setup()
  File "/app/src/pptxbuilder/app.py", line 36, in __web_setup
    from pptxbuilder.views.builder import builder_bp
ImportError: cannot import name 'builder_bp'

以下是我的路径:

^{pr2}$

在'生成器.py“我有这个变量

builder_bp = Blueprint('builder', __name__)

在'主页.py“我有这个变量

home_bp = Blueprint('home', __name__)

我在下面排队应用程序副本'

'from pptxbuilder.views.builder import builder_bp' 

Tags: infrompyimportsrcwebappbuilder