qianaonan 发表于 2024-3-18 22:08

python311运行kivy designer报错,有大佬知道这个怎么解决吗?

运行python -m designer,报错如下
Record log in C:\Users\23138\.kivy\logs\kivy_24-03-18_54.txt
Successfully imported "kivy_deps.gstreamer" 0.3.3
Successfully imported "kivy_deps.angle" 0.3.3
Successfully imported "kivy_deps.glew" 0.3.1
Successfully imported "kivy_deps.sdl2" 0.6.0
v2.2.1
Installed at "C:\Users\23138\AppData\Local\Programs\Python\Python311\Lib\site-packages\kivy\__init__.py"
v3.11.5 (tags/v3.11.5:cce6ba9, Aug 24 2023, 14:38:34)
Interpreter at "C:\Users\23138\AppData\Local\Programs\Python\Python311\python.exe"
Purge log fired. Processing...
Purge finished!
190 symbols loaded
Providers: img_tex, img_dds, img_sdl2, img_pil (img_ffpyplayer ignored)
Provider: sdl2
Provider: sdl2
Using the "OpenGL" graphics system
GLEW initialization succeeded
Backend used <glew>
OpenGL version <b'4.6.0 Compatibility Profile Context 22.20.27.09.230823'>
OpenGL vendor <b'ATI Technologies Inc.'>
OpenGL renderer <b'AMD Radeon RX 6600 XT'>
OpenGL parsed version: 4, 6
Shading version <b'4.60'>
Texture max size <16384>
Texture max units <32>
auto add sdl2 input provider
virtual keyboard not allowed, single mode, not docked
Traceback (most recent call last):
   File "<frozen runpy>", line 198, in _run_module_as_main
   File "<frozen runpy>", line 88, in _run_code
   File "G:\kivy-designer-master\designer\__main__.py", line 3, in <module>
   from designer.app import DesignerApp
   File "G:\kivy-designer-master\designer\app.py", line 12, in <module>
   from designer.components.designer_content import DesignerContent
   File "G:\kivy-designer-master\designer\components\designer_content.py", line 5, in <module>
   from designer.uix.py_code_input import PyScrollView
   File "G:\kivy-designer-master\designer\uix\py_code_input.py", line 3, in <module>
   from designer.uix.completion_bubble import CompletionBubble
   File "G:\kivy-designer-master\designer\uix\completion_bubble.py", line 1, in <module>
   from kivy.adapters.listadapter import ListAdapter
ModuleNotFoundError: No module named 'kivy.adapters'


按照kivy-designer-master里的requirements.txt安装的
kivy >= 1.9.1
pygments >= 2.1
docutils >= 0.12
watchdog >= 0.8
jedi >= 0.9
gitpython >= 1.0
six >= 1.10.0
kivy-garden

我电脑系统是windows11 23H2

JUNGLE_CN 发表于 2024-3-18 22:12

报错 No module named 'kivy.adapters, 没找到kivy下的adapters, 你可以先检查下init文件里面是否存在adapters

我心飞翔1995 发表于 2024-3-19 00:08

kivy后续新版本有好几处破坏性升级,你安装旧版本试试1.9.1

zach14c 发表于 2024-3-19 09:06

pip install kivy==1.10.0
ListAdapter在新版本>1.11.0己被舍弃

爷笑了 发表于 2024-3-19 11:24

换个版本就行了
页: [1]
查看完整版本: python311运行kivy designer报错,有大佬知道这个怎么解决吗?