Kivy installation error in Ubuntu 14.04

419 views
Skip to first unread message

Flávio D

unread,
Feb 8, 2017, 9:28:11 PM2/8/17
to Kivy users support

I'm using ubuntu 14.04 and I'm trying to installing the kivy package. The installation guide says to do:


sudo add-apt-repository ppa:kivy-team/kivy 

sudo apt-get update 


and then:


sudo apt-get install python-kivy


and shows this error:


The following packages have unmet dependencies:
 python-kivy : Depends: python-kivy-bin (= 1.9.2-0~daily0+201609211917-3732-pkg135~ubuntu14.04.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


When I try to do: sudo apt-get install python-kivy python-kivy-bin Shows:


python-kivy-bin : Depends: libsdl2-2.0-0 (>= 2.0.0) but it is not going to be installed
                  Depends: libsdl2-image-2.0-0 (>= 2.0.0) but it is not going to be installed
                  Depends: libsdl2-mixer-2.0-0 (>= 2.0.0) but it is not going to be installed
                  Depends: libsdl2-ttf-2.0-0 (>= 2.0.0) but it is not going to be installed


Anyone knows how can I solve this?

Bhavesh Anand

unread,
Feb 8, 2017, 11:32:13 PM2/8/17
to kivy-...@googlegroups.com
try using pip

sudo python -m pip install --upgrade pip wheel setuptools
sudo python -m pip install docutils pygments pypiwin32 kivy.deps.sdl2
kivy.deps.glew
sudo python -m pip install kivy.deps.gstreamer
sudo python -m pip install kivy


Bhavesh Anand
about.me/bhaveshanand
> --
> You received this message because you are subscribed to the Google Groups
> "Kivy users support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to kivy-users+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Flávio D

unread,
Feb 9, 2017, 7:25:21 AM2/9/17
to Kivy users support
Hi Bhavesh

I got some errors trying that way

When I type that:

sudo python -m pip install docutils pygments pypiwin32 kivy.deps.sdl2 kivy.deps.glew 

 Shows:

Collecting pypiwin32
  Downloading pypiwin32-219.zip (4.8MB)
    100% |████████████████████████████████| 4.8MB 166kB/s 
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-U7MTQm/pypiwin32/setup.py", line 83, in <module>
        import _winreg
    ImportError: No module named _winreg
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-U7MTQm/pypiwin32/
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.


The problem continues when I'm doing the rest of the commands:

Could not find a version that satisfies the requirement kivy.deps.gstreamer (from versions: )
No matching distribution found for kivy.deps.gstreamer
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning

and the final command:

sudo python -m pip install kivy 

shows:
In file included from /tmp/pip-build-BTpYRg/kivy/kivy/graphics/opengl.c:242:0:
    /tmp/pip-build-BTpYRg/kivy/kivy/graphics/gl_redirect.h:43:22: fatal error: GL/gl.h: Arquivo ou diretório não encontrado
     #   include <GL/gl.h>
                          ^
    compilation terminated.
     error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
    
    ----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-BTpYRg/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-4I7fnP-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-BTpYRg/kivy/
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.

Bhavesh Anand

unread,
Feb 9, 2017, 10:48:32 AM2/9/17
to kivy-...@googlegroups.com
try this command regularly

sudo apt-get update

and after that go to
https://packages.debian.org/sid/amd64/python-kivy/download and
download the debian file, open it and later download package from
software center.


Bhavesh Anand
about.me/bhaveshanand

ZenCODE

unread,
Feb 10, 2017, 1:17:19 AM2/10/17
to Kivy users support
That would probably be because your trying to install pypiwin32 on a linux machine. That is a Windows only package, so you can leave it out on linux.
Reply all
Reply to author
Forward
0 new messages