我正在使用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ü)
最后一行是土耳其语。这意味着“破碎失败(核心破裂)”。
答案 0 :(得分:0)
Kivy Designer仍然是WIP(正在进行中)。
在Ubuntu 16.04 LTS上运行Kivy Designer时出现问题并且它总是崩溃。
使用Python 3.x在Windows 10 64位上运行没问题。
文件夹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位)。
运行Kivy Designer没问题
答案 1 :(得分: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。