Kivy: Kivy 1.9.1,导入 kivy.app.App 时出现导入错误

创建于 2016-01-04  ·  26评论  ·  资料来源: kivy/kivy

在 Windows7 64 位上安装了新的 Python2.7.10、Kivy1.9.1(按照 kivy.org 网站的说明)。
运行此代码时出现 ImportError:

from kivy.app import App
from kivy.uix.button import Button


class ButtonApp(App):

    def build(self):
        return Button(text='TEST')


ButtonApp().run()

控制台输出:

E:\Python27\python.exe E:/workspace/TEST/test_kivy_1.9.1/main.py
[INFO              ] [Logger      ] Record log in C:\Users\Skerleton\.kivy\logs\kivy_16-01-04_38.txt
[INFO              ] [Kivy        ] v1.9.1
[INFO              ] [Python      ] v2.7.10 (default, May 23 2015, 09:40:32) [MSC v.1500 32 bit (Intel)]
[INFO              ] [Factory     ] 179 symbols loaded
[DEBUG             ] [Cache       ] register <kv.lang> with limit=None, timeout=None
 Traceback (most recent call last):
   File "E:/workspace/TEST/test_kivy_1.9.1/main.py", line 1, in <module>
     from kivy.app import App
   File "E:\Python27\lib\site-packages\kivy\app.py", line 327, in <module>
     from kivy.uix.widget import Widget
   File "E:\Python27\lib\site-packages\kivy\uix\widget.py", line 219, in <module>
     from kivy.graphics import (
   File "E:\Python27\lib\site-packages\kivy\graphics\__init__.py", line 89, in <module>
     from kivy.graphics.instructions import Callback, Canvas, CanvasBase, \
 ImportError: DLL load failed: The specified module could not be found.

Process finished with exit code 1

Kivy 安装没有问题,除了 Gstreamer。
此错误是由kivy google group上的另一位开发人员报告的

Windows

最有用的评论

gstreamer 问题已得到修复。 我还更新了所有依赖项,因此我建议您使用python -m pip install --upgrade docutils pygments pypiwin32 kivy.deps.sdl2 kivy.deps.glew kivy.deps.gstreamer --extra-index-url https://kivy.org/downloads/packages/simple/再次下载它们,因为这可能会解决您的问题。 让我们知道。

所有26条评论

这种问题在这里很难调试。 如果你在#kivy 的 IRC 上加入我们会更容易。

gstreamer 问题已得到修复。 我还更新了所有依赖项,因此我建议您使用python -m pip install --upgrade docutils pygments pypiwin32 kivy.deps.sdl2 kivy.deps.glew kivy.deps.gstreamer --extra-index-url https://kivy.org/downloads/packages/simple/再次下载它们,因为这可能会解决您的问题。 让我们知道。

升级依赖项后,出现新问题:

E:\Python27\python.exe E:/workspace/TEST/test_kivy_1.9.1/main.py
[INFO              ] [Logger      ] Record log in C:\Users\Skerleton\.kivy\logs\kivy_16-01-05_4.txt
[INFO              ] [Kivy        ] v1.9.1
[INFO              ] [Python      ] v2.7.10 (default, May 23 2015, 09:40:32) [MSC v.1500 32 bit (Intel)]
[INFO              ] [Factory     ] 179 symbols loaded
[DEBUG             ] [Cache       ] register <kv.lang> with limit=None, timeout=None
[DEBUG             ] [Cache       ] register <kv.image> with limit=None, timeout=60
[DEBUG             ] [Cache       ] register <kv.atlas> with limit=None, timeout=None
[INFO              ] [Image       ] Providers: img_tex, img_dds, img_gif, img_sdl2 (img_pil, img_ffpyplayer ignored)
[DEBUG             ] [Cache       ] register <kv.texture> with limit=1000, timeout=60
[DEBUG             ] [Cache       ] register <kv.shader> with limit=1000, timeout=3600
[DEBUG             ] [Text        ] Ignored <sdl2> (import error)
[DEBUG             ] [Text        ] Ignored <pil> (import error)
[CRITICAL          ] [Text        ] Unable to find any valuable Text provider at all!
sdl2 - ImportError: DLL load failed: The specified procedure could not be found.
  File "E:\Python27\lib\site-packages\kivy\core\__init__.py", line 59, in core_select_lib
    fromlist=[modulename], level=0)
  File "E:\Python27\lib\site-packages\kivy\core\text\text_sdl2.py", line 12, in <module>
    from kivy.core.text._text_sdl2 import (_SurfaceContainer, _get_extents,

pil - ImportError: No module named PIL
  File "E:\Python27\lib\site-packages\kivy\core\__init__.py", line 59, in core_select_lib
    fromlist=[modulename], level=0)
  File "E:\Python27\lib\site-packages\kivy\core\text\text_pil.py", line 8, in <module>
    from PIL import Image, ImageFont, ImageDraw

[CRITICAL          ] [App         ] Unable to get a Text provider, abort.

Process finished with exit code 1

我安装了枕头,以便 kivy 可以将其用作文本提供程序,但随后出现异常:

E:\Python27\python.exe E:/workspace/TEST/test_kivy_1.9.1/main.py
[INFO              ] [Logger      ] Record log in C:\Users\Skerleton\.kivy\logs\kivy_16-01-05_9.txt
[INFO              ] [Kivy        ] v1.9.1
[INFO              ] [Python      ] v2.7.10 (default, May 23 2015, 09:40:32) [MSC v.1500 32 bit (Intel)]
[INFO              ] [Factory     ] 179 symbols loaded
[DEBUG             ] [Cache       ] register <kv.lang> with limit=None, timeout=None
[DEBUG             ] [Cache       ] register <kv.image> with limit=None, timeout=60
[DEBUG             ] [Cache       ] register <kv.atlas> with limit=None, timeout=None
[INFO              ] [Image       ] Providers: img_tex, img_dds, img_gif, img_sdl2, img_pil (img_ffpyplayer ignored)
[DEBUG             ] [Cache       ] register <kv.texture> with limit=1000, timeout=60
[DEBUG             ] [Cache       ] register <kv.shader> with limit=1000, timeout=3600
[DEBUG             ] [Text        ] Ignored <sdl2> (import error)
[INFO              ] [Text        ] Provider: pil(['text_sdl2'] ignored)
[DEBUG             ] [App         ] Loading kv <E:/workspace/TEST/test_kivy_1.9.1\button.kv>
[DEBUG             ] [App         ] kv <E:/workspace/TEST/test_kivy_1.9.1\button.kv> not found
[INFO              ] [OSC         ] using <thread> for socket
[INFO              ] [Window      ] Provider: sdl2
[INFO              ] [GL          ] GLEW initialization succeeded
[INFO              ] [GL          ] OpenGL version <4.5.0 NVIDIA 347.88>
[INFO              ] [GL          ] OpenGL vendor <NVIDIA Corporation>
[INFO              ] [GL          ] OpenGL renderer <GeForce GTX 560 SE/PCIe/SSE2>
[INFO              ] [GL          ] OpenGL parsed version: 4, 5
[INFO              ] [GL          ] Shading version <4.50 NVIDIA>
[INFO              ] [GL          ] Texture max size <16384>
[INFO              ] [GL          ] Texture max units <32>
[DEBUG             ] [Shader      ] Fragment compiled successfully
[DEBUG             ] [Shader      ] Vertex compiled successfully
[DEBUG             ] [ImageSDL2   ] Load <E:\Python27\lib\site-packages\kivy\data\glsl\default.png>
[INFO              ] [Window      ] auto add sdl2 input provider
[INFO              ] [Window      ] virtual keyboard not allowed, single mode, not docked
[DEBUG             ] [Resource    ] add <C:\Windows\Fonts> in path list
[DEBUG             ] [Resource    ] add <E:\Python27\lib\site-packages\kivy\data\fonts> in path list
[DEBUG             ] [Base        ] Create provider from mouse,disable_multitouch
[DEBUG             ] [Base        ] Create provider from wm_touch
[DEBUG             ] [Base        ] Create provider from wm_pen
[INFO              ] [Base        ] Start application main loop
[INFO              ] [GL          ] NPOT texture support is available
[DEBUG             ] [Atlas       ] Load <E:\Python27\lib\site-packages\kivy\data\..\data\images\defaulttheme.atlas>
[DEBUG             ] [Atlas       ] Need to load 1 images
[DEBUG             ] [Atlas       ] Load <E:\Python27\lib\site-packages\kivy\data\..\data\images\defaulttheme-0.png>
[DEBUG             ] [ImageSDL2   ] Load <E:\Python27\lib\site-packages\kivy\data\..\data\images\defaulttheme-0.png>
 Exception Exception: Exception('tostring() has been removed. Please call tobytes() instead.',) in 'kivy.graphics.instructions.RenderContext.set_texture' ignored

并且按钮文本显示不正确:
screenshot_20

如果你有问题,我加入了 IRC #kivy,昵称“pythonic64”。

我在 Windows 上运行时遇到了同样的问题,我通过安装旧版本的 SDL2 包来解决它,从这里https://kivy.org/downloads/appveyor/deps/sdl2/

@SamZapata ,SDL2 对我来说不再是问题,Gstreamer 是。 在 Python27 和 Python34 32bit上安装最新的 gstreamer (kivy.deps.gstreamer-0.1.5) 会导致上述文本提供程序错误。
此外,Gstreamer 安装不会在文件夹 Python27\share\gstreamer 中生成“registry.bin”文件。

@matham发现发生这个错误是因为 SDL2 和 Gstreamer dll 文件之间存在冲突。 从 gstreamer\bin 中删除“libfreetype-6.dll”解决了文本问题,但 ..kivy-examples\widgetsvideoplayer.py 中的视频无法播放(http://pastebin.com/LwR1cGA7)。

在 Python34 64 位上,一切都按预期工作。

我已将新的 gstreamer 上传到https://drive.google.com/drive/folders/0B1_HB9J8mZepNzZ5aW91Q0tJU2s。 但是,我还没有测试这个,因为我目前没有一个干净的系统可以尝试。 但是该版本可能与当前的 sdl2 配合得更好。

安装了新的 Gstreamer 轮 kivy.deps.gstreamer-0.1.6-cp27-none-win32。
和之前一样的错误:

e:\Python27\share\kivy-examples\widgets>python label_mipmap.py
[INFO              ] [Kivy        ] v1.9.1
[INFO              ] [Python      ] v2.7.9 (default, Dec 10 2014, 12:24:55) [MSC v.1500 32 bit (Intel)]
[INFO              ] [Factory     ] 179 symbols loaded
[INFO              ] [Image       ] Providers: img_tex, img_dds, img_gif, img_sdl2 (img_pil, img_ffpyplayer ignored)
[CRITICAL          ] [Text        ] Unable to find any valuable Text provider at all!
sdl2 - ImportError: DLL load failed: The specified procedure could not be found.
  File "E:\Python27\lib\site-packages\kivy\core\__init__.py", line 59, in core_select_lib
    fromlist=[modulename], level=0)
  File "E:\Python27\lib\site-packages\kivy\core\text\text_sdl2.py", line 12, in <module>
    from kivy.core.text._text_sdl2 import (_SurfaceContainer, _get_extents,

pil - ImportError: No module named PIL
  File "E:\Python27\lib\site-packages\kivy\core\__init__.py", line 59, in core_select_lib
    fromlist=[modulename], level=0)
  File "E:\Python27\lib\site-packages\kivy\core\text\text_pil.py", line 8, in <module>
    from PIL import Image, ImageFont, ImageDraw

[CRITICAL          ] [App         ] Unable to get a Text provider, abort.

嗯。。好。 我希望从 2013 版本更新可以解决它。 我不知道如何永久解决这个问题。 我们不能只是从 gstreamer 中删除“坏”dll 并依赖它的 sdl2 版本,因为如果没有安装 sdl2 怎么办? 然后 gstreamer 将不再工作,因为该 dll 将丢失。

如何在 Python 32 位上发布与 sdl2 安装一起使用的 gstreamer 版本?
然后用户可以选择安装哪个版本。

您不能上传多个版本的 gstreamer 并让 pip 找到它。 我认为你只能做一个版本。 因此,该版本必须使用和不使用 sdl2。 我必须对确切的问题进行更深入的调查,因为当我测试时,我认为 gst 与 sdl2 dll 一起工作。 但是你说这对你不起作用。 所以我必须在干净的系统上进行测试才能确定。

我已经追查到这一点,我相信这是由于 sdl2_ttf dll 的问题。 我用 sdl2 为它打开了一个问题: https ://bugzilla.libsdl.org/show_bug.cgi = 3241

我最终在 msys2 上自己构建了 sdl2_ttf,我相信这应该可以解决问题,直到 sdl2 本身发布更新。 用pip install --upgrade kivy.deps.sdl2试试。

[INFO ] [Text ] Provider: pil(['text_sdl2'] ignored)

我根本没有安装 gstreamer,但它仍然退回到 pil,与kivy.deps.sdl2==0.1.8 kivy.deps.sdl2_dev==0.1.8

kivy.deps.sdl2==0.1.11kivy.deps.gstreamer==0.1.6 sdl2 被选为文本提供者,但 gstreamer 不作为视频提供者。 与kivy.deps.gstreamer==0.1.5

[INFO ] [Video ] Provider: null(['video_pygst', 'video_ffmpeg', 'video_ffpyplayer', 'video_pyglet'] ignored)

对我来说,gstreamer 和 sdl2 文本都可以正常工作。 Dessant 可以试试最新的包吗?

我用kivy.deps.sdl2==0.1.12kivy.deps.gstreamer==0.1.6重新安装了 Python 和 Kivy。
有用!

e:\Python27>python share\kivy-examples\widgets\videoplayer.py
[INFO              ] [Logger      ] Record log in C:\Users\Skerleton\.kivy\logs\kivy_16-01-18_60.txt
[INFO              ] [Kivy        ] v1.9.1
[INFO              ] [Python      ] v2.7.9 (default, Dec 10 2014, 12:24:55) [MSC v.1500 32 bit (Intel)]
[INFO              ] [Factory     ] 179 symbols loaded
[INFO              ] [Image       ] Providers: img_tex, img_dds, img_gif, img_sdl2 (img_pil, img_ffpyplayer ignored)
[INFO              ] [Text        ] Provider: sdl2
[INFO              ] [VideoGstplayer] Using Gstreamer 1.7.1.0
[INFO              ] [Video       ] Provider: gstplayer
[INFO              ] [OSC         ] using <thread> for socket
[INFO              ] [Window      ] Provider: sdl2
[INFO              ] [GL          ] GLEW initialization succeeded
[INFO              ] [GL          ] OpenGL version <4.5.0 NVIDIA 347.88>
[INFO              ] [GL          ] OpenGL vendor <NVIDIA Corporation>
[INFO              ] [GL          ] OpenGL renderer <GeForce GTX 560 SE/PCIe/SSE2>
[INFO              ] [GL          ] OpenGL parsed version: 4, 5
[INFO              ] [GL          ] Shading version <4.50 NVIDIA>
[INFO              ] [GL          ] Texture max size <16384>
[INFO              ] [GL          ] Texture max units <32>
[INFO              ] [Window      ] auto add sdl2 input provider
[INFO              ] [Window      ] virtual keyboard not allowed, single mode, not docked
[INFO              ] [GL          ] NPOT texture support is available
[INFO              ] [Base        ] Start application main loop

C:\Python34>python sharekivy-examples\demo\showcase\main.py
[INFO] [Logger] 在 C:\Users\Anubhav.kivylogskivy_18-03-09_54.txt 记录日志
[信息] [Kivy] v1.10.0
[信息] [Python ] v3.4.4(v3.4.4:737efcadf5a6,2015 年 12 月 20 日,20:20:57)[MSC v.1600 64 位 (AMD64)]
[信息] [工厂] 194 个符号已加载
[INFO] [Image] Providers: img_tex, img_dds, img_pil, img_gif (img_sdl2, img_ffpyplayer 被忽略)
[关键] [窗口] 无法找到任何有价值的窗口提供程序。
sdl2 - 导入错误:DLL 加载失败:找不到指定的模块。
文件“C:\Python34lib\site-packageskivy\core__init__.py”,第 59 行,在 core_select_lib 中
fromlist=[modulename], level=0)
文件“C:\Python34lib\site-packageskivy\core\window\window_sdl2.py”,第 26 行,在
从 kivy.core.window._window_sdl2 导入 _WindowSDL2Storage

[关键] [应用程序] 无法获取窗口,中止。

我有这个错误请帮帮我

您是否从安装页面安装了所有 Kivy 依赖项?

我尝试在 Windows 10 上安装最新的 kivy 版本,包括 sdl2 (0.1.18) 和 gstreamer (0.1.13),但我不断收到此错误:

"C:\PycharmProjects\HelloWorld\venv\Scripts\python.exe" "C:/PycharmProjects/HelloWorld/main.py"
[INFO   ] [Logger      ] Record log in C:\.kivy\logs\kivy_18-11-20_44.txt
[INFO   ] [Kivy        ] v1.10.1
[INFO   ] [Python      ] v3.7.1 (v3.7.1:260ec2c36a, Oct 20 2018, 14:57:15) [MSC v.1915 64 bit (AMD64)]
[INFO   ] [Factory     ] 194 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_gif (img_sdl2, img_pil, img_ffpyplayer ignored)
[CRITICAL] [Text        ] Unable to find any valuable Text provider.
sdl2 - ImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden.
  File "C:\PycharmProjects\HelloWorld\venv\lib\site-packages\kivy\core\__init__.py", line 59, in core_select_lib
    fromlist=[modulename], level=0)
  File "C:\PycharmProjects\HelloWorld\venv\lib\site-packages\kivy\core\text\text_sdl2.py", line 12, in <module>
    from kivy.core.text._text_sdl2 import (_SurfaceContainer, _get_extents,

pil - ModuleNotFoundError: No module named 'PIL'
  File "C:\PycharmProjects\HelloWorld\venv\lib\site-packages\kivy\core\__init__.py", line 59, in core_select_lib
    fromlist=[modulename], level=0)
  File "C:\PycharmProjects\HelloWorld\venv\lib\site-packages\kivy\core\text\text_pil.py", line 7, in <module>
    from PIL import Image, ImageFont, ImageDraw

[CRITICAL] [App         ] Unable to get a Text provider, abort.

Process finished with exit code 1

我安装了所有依赖项(根据控制台成功)。

C:\WINDOWS\system32>python -m pip install kivy.deps.sdl2
Collecting kivy.deps.sdl2
  Using cached https://files.pythonhosted.org/packages/93/84/a0dc274d993db6f9ebdf41eb4d55b032de005dbf47e4d54602cf83708b08/kivy.deps.sdl2-0.1.18-cp37-cp37m-win_amd64.whl
Installing collected packages: kivy.deps.sdl2
Successfully installed kivy.deps.sdl2-0.1.18

请帮帮我

安装依赖项(如果不需要,请跳过 gstreamer (~120MB),参见 Kivy 的依赖项):

python -m pip install docutils pygments pypiwin32 kivy.deps.sdl2
kivy.deps.glew; python -m pip install kivy.deps.gstreamer

我在 PyCharm 2018.3.6 和 Python 版本 3.7.2 Windows10 上遇到此错误。
我也安装了所有依赖项,但仍然出现错误。

sdl2 - 导入错误:DLL 加载失败:找不到指定的模块。
文件“C:\Users\Austin\AppData\Local\Programs\Python\Python37-32lib\site-packageskivy\core__init__.py”,第 59 行,在 core_select_lib
fromlist=[modulename], level=0)
文件“C:\Users\Austin\AppData\Local\Programs\Python\Python37-32lib\site-packageskivy\core\text\text_sdl2.py”,第 12 行,在
从 kivy.core.text._text_sdl2 导入 (_SurfaceContainer, _get_extents,

pil - ModuleNotFoundError: 没有名为“PIL”的模块
文件“C:\Users\Austin\AppData\Local\Programs\Python\Python37-32lib\site-packageskivy\core__init__.py”,第 59 行,在 core_select_lib
fromlist=[modulename], level=0)
文件“C:\Users\Austin\AppData\Local\Programs\Python\Python37-32lib\site-packageskivy\core\text\text_pil.py”,第 7 行,在
从 PIL 导入 Image、ImageFont、ImageDraw

[关键] [应用程序] 无法获取文本提供程序,中止。

我也遇到了与@VipinDubeyCB相同的问题,
操作系统:Windows10
IDE:PyCharm 2018.3.6,
Python 版本 3.7.2

错误消息:
[关键] [文本] 无法找到任何有价值的文本提供程序。 请启用调试日志记录(例如,如果从命令行运行,则添加 -d,或更改配置中的日志级别)并重新运行您的应用程序以找出潜在原因
sdl2 - 导入错误:DLL 加载失败:找不到指定的模块。
文件“C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64lib\site-packageskivy\core__init__.py”,第 63 行,在 core_select_lib
fromlist=[modulename], level=0)
文件“C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64lib\site-packageskivy\core\text\text_sdl2.py”,第 13 行,在
从 kivy.core.text._text_sdl2 导入 (_SurfaceContainer, _get_extents,

pil - ModuleNotFoundError: 没有名为“PIL”的模块
文件“C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64lib\site-packageskivy\core__init__.py”,第 63 行,在 core_select_lib
fromlist=[modulename], level=0)
文件“C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64lib\site-packageskivy\core\text\text_pil.py”,第 7 行,在
从 PIL 导入 Image、ImageFont、ImageDraw

[关键] [应用程序] 无法获取文本提供程序,中止。

对于使用pycharm的情况,如果你使用的是virtualenv,你必须在pycharm终端中安装kivy,这似乎是pycharm项目中的默认设置。

或者您必须在 Windows 终端中激活您的项目正在采购的虚拟环境,然后安装 kivy

我也遇到了与@VipinDubeyCB相同的问题,
操作系统:Windows10
IDE:PyCharm 2018.3.6,
Python 版本 3.7.2

[INFO] [Logger] 在 C:\Users\Мохирбек.kivylogskivy_20-09-23_44.txt 中记录日志
[INFO] [deps] 成功导入“kivy_deps.sdl2”0.2.0
[信息] [Kivy] v1.11.1
[信息] [Kivy] 安装在“C:\Users\Мохирбек\PycharmProjectspythonProject1venvlib\site-packageskivy__init__.py”
[信息] [Python ] v3.7.2(标签/v3.7.2:9a3ffc0492,2018 年 12 月 23 日,22:20:52)[MSC v.1916 32 位(英特尔)]
[信息] [Python] 解释器位于“C:\Users\Мохирбек\PycharmProjectspythonProject1venv\Scriptspython.exe”
[信息] [工厂] 184 个符号已加载
[INFO] [Image] Providers: img_tex, img_dds, img_sdl2, img_gif (img_pil, img_ffpyplayer 被忽略)
[信息] [文本] 提供者:sdl2
[信息] [窗口] 提供者:sdl2
[关键] [窗口] 无法找到任何有价值的窗口提供程序。 请启用调试日志记录(例如,如果从命令行运行,则添加 -d,或更改配置中的日志级别)并重新运行您的应用程序以找出潜在原因
sdl2 - 导入错误:DLL 加载失败:Не найден указанный модуль。
文件“C:\Users\Мохирбек\PycharmProjectspythonProject1venvlib\site-packageskivy\core__init__.py”,第 71 行,在 core_select_lib
cls = cls()
文件“C:\Users\Мохирбек\PycharmProjectspythonProject1venvlib\site-packageskivy\core\window\window_sdl2.py”,第 152 行,在 __init__
super(WindowSDL, self).__init__()
文件“C:\Users\Мохирбек\PycharmProjectspythonProject1venvlib\site-packageskivy\core\window__init__.py”,第 981 行,在 __init__ 中
self.create_window()
文件“C:\Users\Мохирбек\PycharmProjectspythonProject1venvlib\site-packageskivy\core\window\window_sdl2.py”,第290行,在create_window
self.get_gl_backend_name())
文件“C:\Users\Мохирбек\PycharmProjectspythonProject1venvlib\site-packageskivy\core\window__init__.py”,第 1220 行,在 get_gl_backend_name
忽略=self.gl_backends_ignored)
文件“kivy\graphics\cgl.pyx”,第 56 行,在 kivy.graphics.cgl.cgl_get_backend_name
文件“kivy\graphics\cgl.pyx”,第 69 行,在 kivy.graphics.cgl.cgl_get_backend_name
文件“C:\Users\Мохирбек\AppData\Local\Programs\Python\Python37-32lib\importlib__init__.py”,第 127 行,在 import_module 中
返回_bootstrap._gcd_import(名称[级别:],包,级别)
文件 ”",第 1006 行,在 _gcd_import 中
文件 ”",第 983 行,在 _find_and_load 中
文件 ”",第 967 行,在 _find_and_load_unlocked 中
文件 ”",第 670 行,在 _load_unlocked 中
文件 ”",第 583 行,在 module_from_spec 中
文件 ”",第 1043 行,在 create_module 中
文件 ”",第 219 行,在 _call_with_frames_removed 中

[关键] [应用程序] 无法获取窗口,中止。

进程以退出代码 1 结束

此页面是否有帮助?
0 / 5 - 0 等级