Kivy: Cant Install kivy in Ubuntu 18

Created on 10 Jun 2018  路  5Comments  路  Source: kivy/kivy

Versions

  • Python: 3.6.5
  • OS: Ubuntu 18.04
  • Kivy: Stable
  • Kivy installation method:

Description

Tried to install Kivy on my computer with the following command:
sudo add-apt-repository ppa:kivy-team/kivy

Code and Logs

 This PPA contain the stable release of Kivy project.
 More info: https://launchpad.net/~kivy-team/+archive/ubuntu/kivy
Press [ENTER] to continue or Ctrl-c to cancel adding it.

Hit:1 http://ie.archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://security.ubuntu.com/ubuntu bionic-security InRelease              
Hit:3 http://ie.archive.ubuntu.com/ubuntu bionic-updates InRelease             
Ign:4 http://ppa.launchpad.net/kivy-team/kivy/ubuntu bionic InRelease          
Hit:5 http://ie.archive.ubuntu.com/ubuntu bionic-backports InRelease           
Hit:6 https://deb.nodesource.com/node_8.x bionic InRelease                     
Hit:7 http://ppa.launchpad.net/nathan-renniewaldock/flux/ubuntu bionic InRelease
Ign:8 https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.6 InRelease
Hit:9 https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.6 Release      
Hit:10 http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease      
Err:11 http://ppa.launchpad.net/kivy-team/kivy/ubuntu bionic Release          
  404  Not Found [IP: 91.189.95.83 80]
Reading package lists... Done                      
E: The repository 'http://ppa.launchpad.net/kivy-team/kivy/ubuntu bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.


support

Most helpful comment

Also Python3.6.5 and Ubuntu 18.04.

In one of the issues found that can be installed from:

sudo add-apt-repository ppa:kivy-team/kivy-daily
sudo apt-get update
sudo apt-get install python3-kivy

edit:

Installation in Virtual environment has some problem with Cython 0.28.2 version (tried also 0.25.2). pip install kivy won' t compile. Installation from github@master has the same Cython compilation issue.

All 5 comments

Also Python3.6.5 and Ubuntu 18.04.

In one of the issues found that can be installed from:

sudo add-apt-repository ppa:kivy-team/kivy-daily
sudo apt-get update
sudo apt-get install python3-kivy

edit:

Installation in Virtual environment has some problem with Cython 0.28.2 version (tried also 0.25.2). pip install kivy won' t compile. Installation from github@master has the same Cython compilation issue.

Basically what @berahtlv said. See also: #5722 and related issues.

Right now (2018-06-10) only PPA: kivy-daily & GitHub master branch are recommended. v1.10.1 should fix that, once it's out.

The stable release ppa:kivy-team/kivy does not have a package for bionic, because v1.10.0 can't be compiled on bionic.

@berahtlv what issues are you having in a virtual environment? Installation from master should work without problems (it does work here). Make sure you have python-dev or python3-dev and the four libsdl2-...-dev packages installed with apt (py3 example):

sudo apt install python3-dev libsdl2{,-image,-mixer,-ttf}-dev python3-virtualenv
python3 -m virtualenv -p python3 .venv
source .venv/bin/activate
pip install Cython==0.28.2
pip install https://github.com/kivy/kivy/archive/master.zip

Edit: forgot to mention: optionally include libgstreamer1.0-dev before installing if you want to have gstreamer supported.

@dolang installation from https://github.com/kivy/kivy/archive/master.zip works.

I had installed with git clone ... and then python setup.py install. There was some compilation issue, maybe haven't had some package. Now it compiled, but for some reason ModuleNotFoundError: No module named 'kivy._clock' error received after Layout import, kivy itself was able to import. Strange is that I've reentered Virtualenv and problem gone.

Installing with git clone ... and using GitHub's master.zip is basically the same if you're only using a project (i.e. you need to clone when you want to contribute back).

Make sure you're not in the cloned kivy directory once you've installed it, or you'll see errors like that (kivy._clock) because python gets confused.

馃憢 We use the issue tracker exclusively for bug reports and feature requests. However, this issue appears to be a support request. Please use our support channels to get help with the project.

If you're having trouble installing Kivy, make sure to check out the installation docs for Windows, Linux and macOS.

Let us know if this comment was made in error, and we'll be happy to reopen the issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shifters67 picture shifters67  路  6Comments

hansent picture hansent  路  3Comments

Garcia1022 picture Garcia1022  路  4Comments

Michael-F-Bryan picture Michael-F-Bryan  路  6Comments

damienflament picture damienflament  路  3Comments