install kivy 1.11 on chromebook

104 views
Skip to first unread message

Luigi Marongiu

unread,
Jan 23, 2020, 1:13:51 PM1/23/20
to Kivy users support
Hello,
I bought a new chromebook and I am trying to install kivy. I got bot pythons:
```
~$ python --version
Python 2.7.13
~$ python3 --version
Python 3.5.3
```
```

...

WARNING: A problem occurred while running pkg-config --libs --cflags sdl2 SDL2_ttf SDL2_image SDL2_mixer (code 1)
  
  b"Package sdl2 was not found

...

WARNING: A problem occurred while running pkg-config --libs --cflags pangoft2 (code 1)
  
  b"Package pangoft2 was not found

...

Build configuration is:
   * use_rpi = 0
   * use_egl = 0
   * use_opengl_es2 = 0
   * use_opengl_mock = 0
   * use_sdl2 = 0
   * use_pangoft2 = 0
   * use_ios = 0
   * use_android = 0
   * use_mesagl = 0
   * use_x11 = 0
   * use_wayland = 0
   * use_gstreamer = 1
   * use_avfoundation = 0
   * use_osx_frameworks = 0
   * debug_gl = 0
   * debug = False

...

In file included from /tmp/pip-build-ywwnspjd/kivy/kivy/graphics/context_instructions.c:599:0:
  /tmp/pip-build-ywwnspjd/kivy/kivy/include/gl_redirect.h:72:22: fatal error: GL/gl.h: No such file or directory
   #   include <GL/gl.h>
                        ^
  compilation terminated.
   error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
  
  ----------------------------------------
  Failed building wheel for kivy

...

 In file included from /tmp/pip-build-ywwnspjd/kivy/kivy/graphics/scissor_instructions.c:599:0:
    /tmp/pip-build-ywwnspjd/kivy/kivy/include/gl_redirect.h:72:22: fatal error: GL/gl.h: No such file or directory
     #   include <GL/gl.h>
                          ^
    compilation terminated.
     error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
    
    ----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ywwnspjd/kivy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-xgka_42t-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-ywwnspjd/kivy/

```

Is there a proper protocol to install kivy 1.11 on chromebook?
Also, since python 2 is deprecated, it should run on python 3.
I have installed pip for python 3
```
~$ python3 -m pip -V
pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.5)
```

Thank you
Reply all
Reply to author
Forward
0 new messages