Kivy. Text provider error(基维.文本提供程序错误)
问题描述
开始一个简单的Hello world"示例.并出现错误.
Start a simple sample of "Hello world". And got an error.
[CRITICAL] [Text ] Unable to find any valuable Text provider at all!
[CRITICAL] [App ] Unable to get a Text provider, abort.
这是否意味着我没有一些字体库?尝试在系统中安装实际字体的开发库.
Is it mean that I have no some font libs? Tried to install dev libs of actual fonts in system.
系统:Centos.Python 2.7 版
System: Centos. Python version 2.7
推荐答案
您缺少 PyGame 所需的 SDL TTF 库.在 Ubuntu 上,这是一个名为libsdl-ttf2.0-dev"的系统包.我认为在 CentOS 上它被称为SDL_ttf-devel".您可以通过查看此 PyGame install for RedHat 页面来确保安装了其余的 PyGame 依赖项.
You are missing the SDL TTF library required by PyGame. On Ubuntu, this is a system package called "libsdl-ttf2.0-dev". I think on CentOS it is called "SDL_ttf-devel". You can ensure you have the rest of the PyGame dependencies installed by looking at this PyGame install for RedHat page.
这篇关于基维.文本提供程序错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:基维.文本提供程序错误
基础教程推荐
- numpy float:比算术运算中内置的慢 10 倍? 2022-01-01
- pyserial - 可以从线程 a 写入串行端口,是否阻塞从线程 b 读取? 2022-01-01
- 尝试制作WhatsApp机器人 2022-01-01
- 用 Python 编写 Fortran 无格式文件 2022-01-01
- Discord.py 缺少必需的参数 2022-01-01
- 由Python将MP3转换为MIDI(类型错误:无法加载插件:mtg-Melodia:Melodia) 2022-01-01
- 使用生成器和迭代器时 Python 多循环失败 2022-01-01
- 与常规 dict 相比,Python manager.dict() 非常慢 2022-01-01
- 在 Celery 工作人员中捕获 Heroku SIGTERM 以优雅地关 2022-01-01
- 将 x 轴刻度更改为自定义字符串 2022-01-01
