当我尝试运行 Kivy-designer 时核心崩溃

问题描述 投票:0回答:2

我使用的是 kivy 而不是 pycharm。我想安装一个kivy设计器来利用Kivy的可视化界面功能。我按照文档中使用 python3 的方式安装了 kivydesigner,但是当我运行它时,出现如下错误;弹出窗口出现在屏幕上并立即关闭。

stranger@paradise-citys-grasses:~/kivy-designer$ python3 -m designer
[INFO   ] [Logger      ] Record log in /home/stranger/.kivy/logs/kivy_17-09-29_72.txt
[INFO   ] [Kivy        ] v1.10.0
[INFO   ] [Python      ] v3.5.3 (default, Sep 14 2017, 22:58:41)
[GCC 6.3.0 20170406]
[INFO   ] [Factory     ] 194 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_sdl2, img_pil, img_gif (img_ffpyplayer ignored)
[INFO   ] [Text        ] Provider: sdl2
[INFO   ] [OSC         ] using <multiprocessing> for socket
[INFO   ] [Window      ] Provider: sdl2(['window_egl_rpi'] ignored)
[INFO   ] [GL          ] Using the "OpenGL" graphics system
[INFO   ] [GL          ] Backend used <gl>
[INFO   ] [GL          ] OpenGL version <b'3.0 Mesa 17.0.7'>
[INFO   ] [GL          ] OpenGL vendor <b'X.Org'>
[INFO   ] [GL          ] OpenGL renderer <b'Gallium 0.4 on AMD CEDAR (DRM 2.49.0 / 4.10.0-35-generic, LLVM 4.0.0)'>
[INFO   ] [GL          ] OpenGL parsed version: 3, 0
[INFO   ] [GL          ] Shading version <b'1.30'>
[INFO   ] [GL          ] Texture max size <16384>
[INFO   ] [GL          ] Texture max units <16>
[INFO   ] [Window      ] auto add sdl2 input provider
[INFO   ] [Window      ] virtual keyboard not allowed, single mode, not docked
[WARNING] [FileNotFoundError] [Errno 2] No such file or directory: '/home/stranger/.kivy/garden/garden.xpopup/xpopup.mo'. Switch to the defaults.
[INFO   ] [Clipboard   ] Provider: gtk3(['clipboard_dbusklipper'] ignored)
xclip version 0.12
Copyright (C) 2001-2008 Kim Saunders et al.
Distributed under the terms of the GNU GPL
[INFO   ] [Cutbuffer   ] Provider: xclip
[INFO   ] [CutBuffer   ] cut buffer support enabled
Parçalama arızası (çekirdek döküldü)

最后一行在土耳其语中的意思是“破碎失败(核心击穿)”。

android kivy
2个回答
1
投票

注意

Kivy 设计师仍处于 WIP(正在进行中)。

Python 3.x、Kivy、Ubuntu 16.04/18.04 LTS(64 位)- 崩溃

在 Ubuntu 16.04 LTS 上运行 Kivy Designer 时出现问题,并且总是崩溃。

Python 3.x、Kivy、Windows 10(64 位)- 工作

使用 Python 3.x 在 Windows 10 64 位上运行没有问题。

FileNotFoundError的解决方案

文件夹

xpopup_ru.mo
中有一个名为
.kivy/garden/garden.xpopup
的文件。将
xpopup_ru.mo
重命名为
xpopup.mo
,可以解决 FileNotFoundError 但 Kivy Designer 在以下环境中仍然会崩溃:Python 3.x、Kivy、Ubuntu 16.04/18.04 LTS(64 位)。

Python2.x、Kivy、Ubuntu 16.04/18.04 LTS(64 位)- 工作

运行 Kivy Designer 没有问题

输出


0
投票

我刚刚将 '__main__.py' 移至其父文件夹,并在将 mo 文件重命名为 xpopup.mo 后进行了以下修改:

import os
os.environ['GIT_PYTHON_REFRESH'] = 'quiet'
data = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'designer\data')

您只需从 IDE 运行此 .py 文件即可启动 Kivy Designer。

© www.soinside.com 2019 - 2024. All rights reserved.