Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Kivy. Text provider error

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.

System: Centos. Python version 2.7

like image 612
Lissomort Avatar asked Feb 11 '14 08:02

Lissomort


2 Answers

According to kivy.core.text code:

...

# Load the appropriate provider

Label = core_select_lib('text', (
    ('pygame', 'text_pygame', 'LabelPygame'),
    ('sdlttf', 'text_sdlttf', 'LabelSDLttf'),
    ('pil', 'text_pil', 'LabelPIL'),
))

if 'KIVY_DOC' not in os.environ:
    if not Label:
        from kivy.logger import Logger
        import sys
        Logger.critical('App: Unable to get a Text provider, abort.')
        sys.exit(1)

...

, your system is missing required package. Install one of them first.

like image 63
falsetru Avatar answered Sep 23 '22 07:09

falsetru


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.

like image 27
brousch Avatar answered Sep 22 '22 07:09

brousch