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


Groups > comp.lang.python > #98754

Re: Trying out Kivy

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From bayang <wabayang@gmail.com>
Newsgroups comp.lang.python
Subject Re: Trying out Kivy
Date Fri, 13 Nov 2015 18:50:52 +0100
Lines 59
Message-ID <mailman.296.1447437062.16136.python-list@python.org> (permalink)
References <871tbt3lml.fsf@Equus.decebal.nl> <n256b4$of5$1@ger.gmane.org>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 8bit
X-Trace news.uni-berlin.de aPJAUCzA7n432U58/imiIAKCFg7a9mjBzvHW5GHhz+1A==
Return-Path <wabayang@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.006
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'importerror:': 0.05; 'python3': 0.05; 'skip:" 60': 0.05; '(using': 0.07; 'api': 0.09; 'pil': 0.09; 'question.': 0.13; 'def': 0.13; '57,': 0.16; 'pil.': 0.16; 'pygame': 0.16; 'pygame,': 0.16; 'python3.': 0.16; 'received:io': 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; 'installed': 0.26; 'rest': 0.26; 'went': 0.28; 'fine': 0.28; 'ago': 0.29; 'primary': 0.31; 'another': 0.32; 'class': 0.33; 'message-id:@gmail.com': 0.34; 'file': 0.34; 'received:google.com': 0.35; 'text': 0.35; 'skip:" 50': 0.35; 'received:74.125.82': 0.35; 'but': 0.36; 'there': 0.36; 'to:addr :python-list': 0.36; 'subject:: ': 0.37; '12,': 0.37; 'button': 0.38; 'unable': 0.39; 'received:192': 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; 'pip': 0.84; 'westerhof': 0.84; 'provider,': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=sRz9stv+pBQ1WHtvfCrjgO4vVdnFfKIjxMGbBTIBJgk=; b=Zg1TBP19e9MxLpWks7CRRfH3LCz8t9LYmxxIdW7kuZoCr09mGclfpjxulWK/PLZAQr 0JX7VK9WOBJaQ3W+hCD1Jvf9d7M683v9vH0nj3srOtNqPUcfpt+GJZ98uHhiU4PgLqA9 Py8i7ITAbKJZYVv6VGoknB3Qd/PF2lB8CpPwY5TeFfzpX2jvWxrpkHpa2N/1cEA4XCqJ bO9DoF0vhKLn7tC3fjqrH1FjR7xOcQ1mpYS7ZzW9To+l4+BEcHEVwRlNqGL84xT3j7Y0 o4YqlVXUmaNyFHp2nAipNh4WRTE9BRU/d4qADuU7sGQ5dAriJlBp8MEYBQ03RAxRMyFf +gIQ==
X-Received by 10.194.174.202 with SMTP id bu10mr28538412wjc.74.1447437054937; Fri, 13 Nov 2015 09:50:54 -0800 (PST)
User-Agent Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Thunderbird/38.3.0
In-Reply-To <n256b4$of5$1@ger.gmane.org>
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:98754

Show key headers only | View raw


Le 13/11/2015 18:23, Terry Reedy a écrit :
> 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.
>>
>
>
Got the same issue a few days ago with python3.
Installed pygame dependencies, installed pygame, installed pillow and 
everything went fine (using pip in virtualenv)

Back to comp.lang.python | Previous | NextPrevious 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