Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #98749 > unrolled thread
| Started by | Cecil Westerhof <Cecil@decebal.nl> |
|---|---|
| First post | 2015-11-13 17:33 +0100 |
| Last post | 2015-11-13 18:50 +0100 |
| Articles | 11 — 4 participants |
Back to article view | Back to comp.lang.python
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
| From | Cecil Westerhof <Cecil@decebal.nl> |
|---|---|
| Date | 2015-11-13 17:33 +0100 |
| Subject | Trying out Kivy |
| Message-ID | <871tbt3lml.fsf@Equus.decebal.nl> |
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
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.
--
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
[toc] | [next] | [standalone]
| From | Michael Torrie <torriem@gmail.com> |
|---|---|
| Date | 2015-11-13 10:21 -0700 |
| Message-ID | <mailman.294.1447435298.16136.python-list@python.org> |
| In reply to | #98749 |
On 11/13/2015 09:33 AM, Cecil Westerhof wrote: > I tried to install pygame and PIL with pip3, but that did not find > anything. The replacement for PIL is called Pillow. I'm not sure if it's a drop-in replacement or not. If it's not, then you'd have to modify Kivy to import from Pillow. Pillow does support Python3. > Is there another way to install those dependencies? Did you do a search to find out a) if PyGame supports Python3 (it does) and b) where to go to download the source code for it? (their home page)? PyPi is nice, but it's not the only place you can get useful Python modules from. > But more importantly: can I develop with python3 for the Android? > Because the primary reason to use Kivy is to develop applications for Android. Again, did you do a quick Google search?
[toc] | [prev] | [next] | [standalone]
| From | Cecil Westerhof <Cecil@decebal.nl> |
|---|---|
| Date | 2015-11-13 19:30 +0100 |
| Message-ID | <87pozd21nb.fsf@Equus.decebal.nl> |
| In reply to | #98752 |
On Friday 13 Nov 2015 18:21 CET, Michael Torrie wrote: > On 11/13/2015 09:33 AM, Cecil Westerhof wrote: >> I tried to install pygame and PIL with pip3, but that did not find >> anything. > > The replacement for PIL is called Pillow. I'm not sure if it's a > drop-in replacement or not. If it's not, then you'd have to modify > Kivy to import from Pillow. Pillow does support Python3. After installing Pillow the error about PIL disappeared, but I got new errors about bcm and x11. >> Is there another way to install those dependencies? > > Did you do a search to find out a) if PyGame supports Python3 (it > does) and b) where to go to download the source code for it? (their > home page)? > > PyPi is nice, but it's not the only place you can get useful Python > modules from. > >> But more importantly: can I develop with python3 for the Android? >> Because the primary reason to use Kivy is to develop applications >> for Android. > > Again, did you do a quick Google search? I did. But I did not find specifics about the version of Python. Well, maybe I should first play a bit with Kivy and if it is the way to go, I delve into the python3 bit. -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof
[toc] | [prev] | [next] | [standalone]
| From | Michael Torrie <torriem@gmail.com> |
|---|---|
| Date | 2015-11-13 12:53 -0700 |
| Message-ID | <mailman.300.1447444435.16136.python-list@python.org> |
| In reply to | #98755 |
On 11/13/2015 11:30 AM, Cecil Westerhof wrote: > On Friday 13 Nov 2015 18:21 CET, Michael Torrie wrote: > >> On 11/13/2015 09:33 AM, Cecil Westerhof wrote: >>> I tried to install pygame and PIL with pip3, but that did not find >>> anything. >> >> The replacement for PIL is called Pillow. I'm not sure if it's a >> drop-in replacement or not. If it's not, then you'd have to modify >> Kivy to import from Pillow. Pillow does support Python3. > > After installing Pillow the error about PIL disappeared, but I got new > errors about bcm and x11. Traceback?
[toc] | [prev] | [next] | [standalone]
| From | Cecil Westerhof <Cecil@decebal.nl> |
|---|---|
| Date | 2015-11-13 21:10 +0100 |
| Message-ID | <87lha11wz4.fsf@Equus.decebal.nl> |
| In reply to | #98760 |
On Friday 13 Nov 2015 20:53 CET, Michael Torrie wrote:
> On 11/13/2015 11:30 AM, Cecil Westerhof wrote:
>> On Friday 13 Nov 2015 18:21 CET, Michael Torrie wrote:
>>
>>> On 11/13/2015 09:33 AM, Cecil Westerhof wrote:
>>>> I tried to install pygame and PIL with pip3, but that did not
>>>> find anything.
>>>
>>> The replacement for PIL is called Pillow. I'm not sure if it's a
>>> drop-in replacement or not. If it's not, then you'd have to modify
>>> Kivy to import from Pillow. Pillow does support Python3.
>>
>> After installing Pillow the error about PIL disappeared, but I got
>> new errors about bcm and x11.
>
> Traceback?
Purge log fired. Analysing...
Purge finished!
[INFO ] [Logger ] Record log in /home/cecil/.kivy/logs/kivy_15-11-13_28.txt
[INFO ] [Kivy ] v1.9.0
[INFO ] [Python ] v3.4.1 (default, May 23 2014, 17:48:28) [GCC]
[INFO ] [Factory ] 173 symbols loaded
[INFO ] [Image ] Providers: img_tex, img_dds, img_gif, img_pil (img_pygame, img_ffpyplayer ignored)
[INFO ] [Text ] Provider: pil(['text_pygame'] ignored)
[CRITICAL ] [Window ] Unable to find any valuable Window provider at all!
egl_rpi - ImportError: cannot import name 'bcm'
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/window/window_egl_rpi.py", line 12, in <module>
from kivy.lib.vidcore_lite import bcm, egl
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/window/window_pygame.py", line 8, in <module>
import pygame
x11 - ImportError: No module named 'kivy.core.window.window_x11'
File "/usr/lib64/python3.4/site-packages/kivy/core/__init__.py", line 57, in core_select_lib
fromlist=[modulename], level=0)
[CRITICAL ] [App ] Unable to get a Window, abort.
Exception ignored in: 'kivy.properties.dpi2px'
Traceback (most recent call last):
File "/usr/lib64/python3.4/site-packages/kivy/utils.py", line 360, in __get__
retval = self.func(inst)
File "/usr/lib64/python3.4/site-packages/kivy/metrics.py", line 169, in dpi
EventLoop.ensure_window()
File "/usr/lib64/python3.4/site-packages/kivy/base.py", line 126, in ensure_window
sys.exit(1)
SystemExit: 1
[CRITICAL ] [App ] Unable to get a Window, abort.
I see a difference with python2. (Did not notice it before.) With
python3 v1.9.0 is installed, but with python2 v1.8.0.
[INFO ] Kivy v1.8.0
Maybe that is the problem?
--
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
[toc] | [prev] | [next] | [standalone]
| From | bayang <wabayang@gmail.com> |
|---|---|
| Date | 2015-11-13 22:11 +0100 |
| Message-ID | <mailman.308.1447449099.16136.python-list@python.org> |
| In reply to | #98763 |
Le 13/11/2015 21:10, Cecil Westerhof a écrit : > Purge log fired. Analysing... > Purge finished! > [INFO ] [Logger ] Record log in /home/cecil/.kivy/logs/kivy_15-11-13_28.txt > [INFO ] [Kivy ] v1.9.0 > [INFO ] [Python ] v3.4.1 (default, May 23 2014, 17:48:28) [GCC] > [INFO ] [Factory ] 173 symbols loaded > [INFO ] [Image ] Providers: img_tex, img_dds, img_gif, img_pil (img_pygame, img_ffpyplayer ignored) > [INFO ] [Text ] Provider: pil(['text_pygame'] ignored) > [CRITICAL ] [Window ] Unable to find any valuable Window provider at all! > egl_rpi - ImportError: cannot import name 'bcm' > 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/window/window_egl_rpi.py", line 12, in <module> > from kivy.lib.vidcore_lite import bcm, egl > > 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/window/window_pygame.py", line 8, in <module> > import pygame > > x11 - ImportError: No module named 'kivy.core.window.window_x11' > File "/usr/lib64/python3.4/site-packages/kivy/core/__init__.py", line 57, in core_select_lib > fromlist=[modulename], level=0) > > [CRITICAL ] [App ] Unable to get a Window, abort. > Exception ignored in: 'kivy.properties.dpi2px' > Traceback (most recent call last): > File "/usr/lib64/python3.4/site-packages/kivy/utils.py", line 360, in __get__ > retval = self.func(inst) > File "/usr/lib64/python3.4/site-packages/kivy/metrics.py", line 169, in dpi > EventLoop.ensure_window() > File "/usr/lib64/python3.4/site-packages/kivy/base.py", line 126, in ensure_window > sys.exit(1) > SystemExit: 1 > [CRITICAL ] [App ] Unable to get a Window, abort. > > > I see a difference with python2. (Did not notice it before.) With > python3 v1.9.0 is installed, but with python2 v1.8.0. > [INFO ] Kivy v1.8.0 > > Maybe that is the problem? > Pygame doesn't seem to be correctly installed. check this : http://www.pygame.org/wiki/CompileUbuntu#Python_3.x in "installing pygame with pip" part. Install dependencies first, then pip install hg+http://bitbucket.org/pygame/pygame
[toc] | [prev] | [next] | [standalone]
| From | Cecil Westerhof <Cecil@decebal.nl> |
|---|---|
| Date | 2015-11-14 12:51 +0100 |
| Message-ID | <87d1vc23zp.fsf@Equus.decebal.nl> |
| In reply to | #98763 |
On Friday 13 Nov 2015 21:10 CET, Cecil Westerhof wrote:
> On Friday 13 Nov 2015 20:53 CET, Michael Torrie wrote:
>
>> On 11/13/2015 11:30 AM, Cecil Westerhof wrote:
>>> On Friday 13 Nov 2015 18:21 CET, Michael Torrie wrote:
>>>
>>>> On 11/13/2015 09:33 AM, Cecil Westerhof wrote:
>>>>> I tried to install pygame and PIL with pip3, but that did not
>>>>> find anything.
>>>>
>>>> The replacement for PIL is called Pillow. I'm not sure if it's a
>>>> drop-in replacement or not. If it's not, then you'd have to
>>>> modify Kivy to import from Pillow. Pillow does support Python3.
>>>
>>> After installing Pillow the error about PIL disappeared, but I got
>>> new errors about bcm and x11.
>>
>> Traceback?
>
> Purge log fired. Analysing... Purge finished! [INFO ] [Logger ]
> Record log in /home/cecil/.kivy/logs/kivy_15-11-13_28.txt [INFO ]
> [Kivy ] v1.9.0 [INFO ] [Python ] v3.4.1 (default, May 23 2014,
> 17:48:28) [GCC] [INFO ] [Factory ] 173 symbols loaded [INFO ] [Image
> ] Providers: img_tex, img_dds, img_gif, img_pil (img_pygame,
> img_ffpyplayer ignored) [INFO ] [Text ] Provider:
> pil(['text_pygame'] ignored) [CRITICAL ] [Window ] Unable to find
> any valuable Window provider at all! egl_rpi - ImportError: cannot
> import name 'bcm' 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/window/window_egl_rpi.py",
> line 12, in <module> from kivy.lib.vidcore_lite import bcm, egl
>
> 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/window/window_pygame.py",
> line 8, in <module> import pygame
>
> x11 - ImportError: No module named 'kivy.core.window.window_x11'
> File "/usr/lib64/python3.4/site-packages/kivy/core/__init__.py",
> line 57, in core_select_lib fromlist=[modulename], level=0)
>
> [CRITICAL ] [App ] Unable to get a Window, abort. Exception ignored
> in: 'kivy.properties.dpi2px' Traceback (most recent call last): File
> "/usr/lib64/python3.4/site-packages/kivy/utils.py", line 360, in
> __get__ retval = self.func(inst) File
> "/usr/lib64/python3.4/site-packages/kivy/metrics.py", line 169, in
> dpi EventLoop.ensure_window() File
> "/usr/lib64/python3.4/site-packages/kivy/base.py", line 126, in
> ensure_window sys.exit(1) SystemExit: 1 [CRITICAL ] [App ] Unable to
> get a Window, abort.
>
>
> I see a difference with python2. (Did not notice it before.) With
> python3 v1.9.0 is installed, but with python2 v1.8.0.
> [INFO ] Kivy v1.8.0
>
> Maybe that is the problem?
I tried to install v1.8.0 with:
pip3 install -I kivy==1.8.0
But that gives:
building 'kivy.graphics.shader' extension
gcc -pthread -Wno-unused-result -Werror=declaration-after-statement -DNDEBUG -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -DOPENSSL_LOAD_CONF -fPIC -I/usr/include/python3.4m -c /tmp/pip_build_root/kivy/kivy/graphics/shader.c -o build/temp.linux-x86_64-3.4/tmp/pip_build_root/kivy/kivy/graphics/shader.o
/tmp/pip_build_root/kivy/kivy/graphics/shader.c:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation.
#error Do not use this file, it is the result of a failed Cython compilation.
^
Error compiling Cython file:
------------------------------------------------------------
...
vertex_format.last_shader = self
for i in xrange(vertex_format.vattr_count):
attr = &vertex_format.vattr[i]
if attr.per_vertex == 0:
continue
attr.index = glGetAttribLocation(self.program, <char *><bytes>attr.name)
^
------------------------------------------------------------
kivy/graphics/shader.pyx:448:63: Casting temporary Python object to non-numeric non-Python type
error: command 'gcc' failed with exit status 1
----------------------------------------
Cleaning up...
Command /usr/bin/python3 -c "import setuptools, tokenize;__file__='/tmp/pip_build_root/kivy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-hvd8j0e_-record/install-rec
--
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
[toc] | [prev] | [next] | [standalone]
| From | bayang <wabayang@gmail.com> |
|---|---|
| Date | 2015-11-14 13:42 +0100 |
| Message-ID | <mailman.325.1447504985.16136.python-list@python.org> |
| In reply to | #98802 |
Le 14 nov. 2015 13:00, "Cecil Westerhof" <Cecil@decebal.nl> a écrit :
>
> On Friday 13 Nov 2015 21:10 CET, Cecil Westerhof wrote:
>
> > On Friday 13 Nov 2015 20:53 CET, Michael Torrie wrote:
> >
> >> On 11/13/2015 11:30 AM, Cecil Westerhof wrote:
> >>> On Friday 13 Nov 2015 18:21 CET, Michael Torrie wrote:
> >>>
> >>>> On 11/13/2015 09:33 AM, Cecil Westerhof wrote:
> >>>>> I tried to install pygame and PIL with pip3, but that did not
> >>>>> find anything.
> >>>>
> >>>> The replacement for PIL is called Pillow. I'm not sure if it's a
> >>>> drop-in replacement or not. If it's not, then you'd have to
> >>>> modify Kivy to import from Pillow. Pillow does support Python3.
> >>>
> >>> After installing Pillow the error about PIL disappeared, but I got
> >>> new errors about bcm and x11.
> >>
> >> Traceback?
> >
> > Purge log fired. Analysing... Purge finished! [INFO ] [Logger ]
> > Record log in /home/cecil/.kivy/logs/kivy_15-11-13_28.txt [INFO ]
> > [Kivy ] v1.9.0 [INFO ] [Python ] v3.4.1 (default, May 23 2014,
> > 17:48:28) [GCC] [INFO ] [Factory ] 173 symbols loaded [INFO ] [Image
> > ] Providers: img_tex, img_dds, img_gif, img_pil (img_pygame,
> > img_ffpyplayer ignored) [INFO ] [Text ] Provider:
> > pil(['text_pygame'] ignored) [CRITICAL ] [Window ] Unable to find
> > any valuable Window provider at all! egl_rpi - ImportError: cannot
> > import name 'bcm' 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/window/window_egl_rpi.py",
> > line 12, in <module> from kivy.lib.vidcore_lite import bcm, egl
> >
> > 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/window/window_pygame.py",
> > line 8, in <module> import pygame
> >
> > x11 - ImportError: No module named 'kivy.core.window.window_x11'
> > File "/usr/lib64/python3.4/site-packages/kivy/core/__init__.py",
> > line 57, in core_select_lib fromlist=[modulename], level=0)
> >
> > [CRITICAL ] [App ] Unable to get a Window, abort. Exception ignored
> > in: 'kivy.properties.dpi2px' Traceback (most recent call last): File
> > "/usr/lib64/python3.4/site-packages/kivy/utils.py", line 360, in
> > __get__ retval = self.func(inst) File
> > "/usr/lib64/python3.4/site-packages/kivy/metrics.py", line 169, in
> > dpi EventLoop.ensure_window() File
> > "/usr/lib64/python3.4/site-packages/kivy/base.py", line 126, in
> > ensure_window sys.exit(1) SystemExit: 1 [CRITICAL ] [App ] Unable to
> > get a Window, abort.
> >
> >
> > I see a difference with python2. (Did not notice it before.) With
> > python3 v1.9.0 is installed, but with python2 v1.8.0.
> > [INFO ] Kivy v1.8.0
> >
> > Maybe that is the problem?
>
> I tried to install v1.8.0 with:
> pip3 install -I kivy==1.8.0
>
> But that gives:
> building 'kivy.graphics.shader' extension
>
> gcc -pthread -Wno-unused-result -Werror=declaration-after-statement
-DNDEBUG -fmessage-length=0 -grecord-gcc-switches -O2 -Wall
-D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables
-fasynchronous-unwind-tables -g -DOPENSSL_LOAD_CONF -fPIC
-I/usr/include/python3.4m -c
/tmp/pip_build_root/kivy/kivy/graphics/shader.c -o
build/temp.linux-x86_64-3.4/tmp/pip_build_root/kivy/kivy/graphics/shader.o
>
> /tmp/pip_build_root/kivy/kivy/graphics/shader.c:1:2: error: #error Do
not use this file, it is the result of a failed Cython compilation.
>
> #error Do not use this file, it is the result of a failed Cython
compilation.
>
> ^
>
>
>
> Error compiling Cython file:
>
> ------------------------------------------------------------
>
> ...
>
> vertex_format.last_shader = self
>
> for i in xrange(vertex_format.vattr_count):
>
> attr = &vertex_format.vattr[i]
>
> if attr.per_vertex == 0:
>
> continue
>
> attr.index = glGetAttribLocation(self.program, <char
*><bytes>attr.name)
>
> ^
>
> ------------------------------------------------------------
>
>
>
> kivy/graphics/shader.pyx:448:63: Casting temporary Python object to
non-numeric non-Python type
>
> error: command 'gcc' failed with exit status 1
>
> ----------------------------------------
> Cleaning up...
> Command /usr/bin/python3 -c "import setuptools,
tokenize;__file__='/tmp/pip_build_root/kivy/setup.py';exec(compile(getattr(tokenize,
'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))"
install --record /tmp/pip-hvd8j0e_-record/install-rec
>
> --
> Cecil Westerhof
> Senior Software Engineer
> LinkedIn: http://www.linkedin.com/in/cecilwesterhof
> --
> https://mail.python.org/mailman/listinfo/python-list
The latest cython version is for kivy 1.9. For kivy 1.8 you must use an
older cython version. Check kivy website. That's why you get compiling
errors
[toc] | [prev] | [next] | [standalone]
| From | Michael Torrie <torriem@gmail.com> |
|---|---|
| Date | 2015-11-14 08:43 -0700 |
| Message-ID | <mailman.328.1447515823.16136.python-list@python.org> |
| In reply to | #98802 |
On 11/14/2015 04:51 AM, Cecil Westerhof wrote: > I tried to install v1.8.0 with: > pip3 install -I kivy==1.8.0 Why are you trying to install the non-current version of kivy? Did you install pygame successfully?
[toc] | [prev] | [next] | [standalone]
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Date | 2015-11-13 12:23 -0500 |
| Message-ID | <mailman.295.1447435442.16136.python-list@python.org> |
| In reply to | #98749 |
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
[toc] | [prev] | [next] | [standalone]
| From | bayang <wabayang@gmail.com> |
|---|---|
| Date | 2015-11-13 18:50 +0100 |
| Message-ID | <mailman.296.1447437062.16136.python-list@python.org> |
| In reply to | #98749 |
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)
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web