吾爱破解 - 52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 754|回复: 4
收起左侧

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

[复制链接]
qianaonan 发表于 2024-3-18 22:08
运行python -m designer,报错如下
[INFO   ] [Logger      ] Record log in C:\Users\23138\.kivy\logs\kivy_24-03-18_54.txt
[INFO   ] [deps        ] Successfully imported "kivy_deps.gstreamer" 0.3.3
[INFO   ] [deps        ] Successfully imported "kivy_deps.angle" 0.3.3
[INFO   ] [deps        ] Successfully imported "kivy_deps.glew" 0.3.1
[INFO   ] [deps        ] Successfully imported "kivy_deps.sdl2" 0.6.0
[INFO   ] [Kivy        ] v2.2.1
[INFO   ] [Kivy        ] Installed at "C:\Users\23138\AppData\Local\Programs\Python\Python311\Lib\site-packages\kivy\__init__.py"
[INFO   ] [Python      ] v3.11.5 (tags/v3.11.5:cce6ba9, Aug 24 2023, 14:38:34) [MSC v.1936 64 bit (AMD64)]
[INFO   ] [Python      ] Interpreter at "C:\Users\23138\AppData\Local\Programs\Python\Python311\python.exe"
[INFO   ] [Logger      ] Purge log fired. Processing...
[INFO   ] [Logger      ] Purge finished!
[INFO   ] [Factory     ] 190 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_sdl2, img_pil (img_ffpyplayer ignored)
[INFO   ] [Text        ] Provider: sdl2
[INFO   ] [Window      ] Provider: sdl2
[INFO   ] [GL          ] Using the "OpenGL" graphics system
[INFO   ] [GL          ] GLEW initialization succeeded
[INFO   ] [GL          ] Backend used <glew>
[INFO   ] [GL          ] OpenGL version <b'4.6.0 Compatibility Profile Context 22.20.27.09.230823'>
[INFO   ] [GL          ] OpenGL vendor <b'ATI Technologies Inc.'>
[INFO   ] [GL          ] OpenGL renderer <b'AMD Radeon RX 6600 XT'>
[INFO   ] [GL          ] OpenGL parsed version: 4, 6
[INFO   ] [GL          ] Shading version <b'4.60'>
[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
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
换个版本就行了
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

返回列表

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2024-12-14 12:52

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表