Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #98753

Re: Trying out Kivy

Path csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From Terry Reedy <tjreedy@udel.edu>
Newsgroups comp.lang.python
Subject Re: Trying out Kivy
Date Fri, 13 Nov 2015 12:23:45 -0500
Lines 59
Message-ID <mailman.295.1447435442.16136.python-list@python.org> (permalink)
References <871tbt3lml.fsf@Equus.decebal.nl>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding quoted-printable
X-Trace news.uni-berlin.de zdJ7ePaCminbkWfyjkyxJA5Fo8v8WF9peiYJ1rG0kYJw==
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'importerror:': 0.05; 'python3': 0.05; 'skip:" 60': 0.05; 'api': 0.09; 'pil': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'jan': 0.11; 'question.': 0.13; 'def': 0.13; '57,': 0.16; 'pil.': 0.16; 'pygame': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'reedy': 0.16; 'runs.': 0.16; 'wrote:': 0.16; 'app': 0.16; 'exceptions': 0.22; 'am,': 0.23; 'tried': 0.24; 'import': 0.24; 'header:In-Reply-To:1': 0.24; 'module': 0.25; 'install': 0.25; 'header:User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'rest': 0.26; 'primary': 0.31; 'another': 0.32; 'class': 0.33; 'file': 0.34; 'text': 0.35; 'skip:" 50': 0.35; 'but': 0.36; 'there': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; '12,': 0.37; 'button': 0.38; 'unable': 0.39; 'rather': 0.39; 'to:addr:python.org': 0.40; 'some': 0.40; 'your': 0.60; 'valuable': 0.61; 'more': 0.63; 'skip:\xe2 10': 0.70; '8bit%:43': 0.72; 'all!': 0.84; 'android.': 0.84; 'cecil': 0.84; 'westerhof': 0.84; 'provider,': 0.91; 'received:fios.verizon.net': 0.91
X-Injected-Via-Gmane http://gmane.org/
X-Gmane-NNTP-Posting-Host pool-173-59-124-74.phlapa.fios.verizon.net
User-Agent Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0
In-Reply-To <871tbt3lml.fsf@Equus.decebal.nl>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:98753

Show key headers only | View raw


On 11/13/2015 11:33 AM, Cecil Westerhof wrote:
> I tried out the ‘standard’ Kivy application:
> ============================================================
> from kivy.app import App
> from kivy.uix.button import Button
>
> class TestApp(App):
>      def build(self):
>          return Button(text='Hello World')
>
> TestApp().run()
> ============================================================
>
> When using python2 I see some exceptions and OSErrors, but it runs.
>
> When using python3 I get:
>      [CRITICAL          ] [Text        ] Unable to find any valuable Text provider at all!
>      pygame - ImportError: No module named 'pygame'
>        File "/usr/lib64/python3.4/site-packages/kivy/core/__init__.py", line 57, in core_select_lib
>          fromlist=[modulename], level=0)
>        File "/usr/lib64/python3.4/site-packages/kivy/core/text/text_pygame.py", line 12, in <module>
>          import pygame
>
>      pil - ImportError: No module named 'PIL'
>        File "/usr/lib64/python3.4/site-packages/kivy/core/__init__.py", line 57, in core_select_lib
>          fromlist=[modulename], level=0)
>        File "/usr/lib64/python3.4/site-packages/kivy/core/text/text_pil.py", line 8, in <module>
>          from PIL import Image, ImageFont, ImageDraw
>
>      [CRITICAL          ] [App         ] Unable to get a Text provider, abort.
>
> I tried to install pygame and PIL with pip3, but that did not find

Use pillow rather than PIL.  API is same.  Don't know about rest of your 
question.

> anything. Is there another way to install those dependencies?
>
> But more importantly: can I develop with python3 for the Android?
> Because the primary reason to use Kivy is to develop applications for Android.
>


-- 
Terry Jan Reedy

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Trying out Kivy Cecil Westerhof <Cecil@decebal.nl> - 2015-11-13 17:33 +0100
  Re: Trying out Kivy Michael Torrie <torriem@gmail.com> - 2015-11-13 10:21 -0700
    Re: Trying out Kivy Cecil Westerhof <Cecil@decebal.nl> - 2015-11-13 19:30 +0100
      Re: Trying out Kivy Michael Torrie <torriem@gmail.com> - 2015-11-13 12:53 -0700
        Re: Trying out Kivy Cecil Westerhof <Cecil@decebal.nl> - 2015-11-13 21:10 +0100
          Re: Trying out Kivy bayang <wabayang@gmail.com> - 2015-11-13 22:11 +0100
          Re: Trying out Kivy Cecil Westerhof <Cecil@decebal.nl> - 2015-11-14 12:51 +0100
            Re: Trying out Kivy bayang <wabayang@gmail.com> - 2015-11-14 13:42 +0100
            Re: Trying out Kivy Michael Torrie <torriem@gmail.com> - 2015-11-14 08:43 -0700
  Re: Trying out Kivy Terry Reedy <tjreedy@udel.edu> - 2015-11-13 12:23 -0500
  Re: Trying out Kivy bayang <wabayang@gmail.com> - 2015-11-13 18:50 +0100

csiph-web