Path: csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail From: Terry Reedy Newsgroups: comp.lang.python Subject: Re: Trying out Kivy Date: Fri, 13 Nov 2015 12:23:45 -0500 Lines: 59 Message-ID: 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: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:98753 On 11/13/2015 11:33 AM, Cecil Westerhof wrote: > I tried out the =E2=80=98standard=E2=80=99 Kivy application: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > from kivy.app import App > from kivy.uix.button import Button > > class TestApp(App): > def build(self): > return Button(text=3D'Hello World') > > TestApp().run() > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > When using python2 I see some exceptions and OSErrors, but it runs. > > When using python3 I get: > [CRITICAL ] [Text ] Unable to find any valuable Te= xt 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=3D[modulename], level=3D0) > File "/usr/lib64/python3.4/site-packages/kivy/core/text/text_pyg= ame.py", line 12, in > 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=3D[modulename], level=3D0) > File "/usr/lib64/python3.4/site-packages/kivy/core/text/text_pil= =2Epy", line 8, in > 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 A= ndroid. > --=20 Terry Jan Reedy