Installing Kivy on Ubuntu using PPA: Error: "... does not have a Release file"

67 views
Skip to first unread message

Henrik R.

unread,
Sep 14, 2020, 12:01:37 PM9/14/20
to Kivy users support
Hi!

In an attempt to solve problems with deploying a complex Kivy app on Android, I created a new Ubuntu 20.04.1 partition from scratch. I have reach the point of installing Kivy.
The best way seems to be using PPA software packages, but I get this error in Terminal:

E: The repository 'http://ppa.launchpad.net/kivy-team/kivy/ubuntu focal 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.

Can anyone help me, please?

Below is the whole Terminal output:

henrik@henrik-thinkpad-20-04:~$ sudo add-apt-repository ppa:kivy-team/kivy
[sudo] password for henrik:
 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://dk.archive.ubuntu.com/ubuntu focal InRelease
Get:2 http://dk.archive.ubuntu.com/ubuntu focal-updates InRelease [111 kB]
Get:3 http://security.ubuntu.com/ubuntu focal-security InRelease [107 kB]
Ign:4 http://ppa.launchpad.net/kivy-team/kivy/ubuntu focal InRelease
Hit:5 http://archive.canonical.com/ubuntu focal InRelease                                                                                  
Get:6 http://dk.archive.ubuntu.com/ubuntu focal-backports InRelease [98,3 kB]                                                              
Hit:7 http://ppa.launchpad.net/recoll-backports/recoll-1.15-on/ubuntu focal InRelease      
Err:8 http://ppa.launchpad.net/kivy-team/kivy/ubuntu focal Release                         
  404  Not Found [IP: 91.189.95.83 80]
Get:9 http://dk.archive.ubuntu.com/ubuntu focal-updates/main amd64 DEP-11 Metadata [209 kB]
Get:10 http://dk.archive.ubuntu.com/ubuntu focal-updates/universe amd64 DEP-11 Metadata [186 kB]
Get:11 http://dk.archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 DEP-11 Metadata [2.468 B]
Get:12 http://dk.archive.ubuntu.com/ubuntu focal-backports/universe amd64 DEP-11 Metadata [1.768 B]
Get:13 http://security.ubuntu.com/ubuntu focal-security/main i386 Packages [70,9 kB]
Get:14 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [182 kB]
Get:15 http://security.ubuntu.com/ubuntu focal-security/main Translation-en [65,0 kB]
Get:16 http://security.ubuntu.com/ubuntu focal-security/main amd64 c-n-f Metadata [4.564 B]
Reading package lists... Done                                      
E: The repository 'http://ppa.launchpad.net/kivy-team/kivy/ubuntu focal 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.
henrik@henrik-thinkpad-20-04:~$

Henrik R.

unread,
Sep 14, 2020, 12:13:52 PM9/14/20
to Kivy users support
Wait... I can see that this is a bit more complex...

I just discovered this very recent discussion: https://groups.google.com/forum/#!topic/kivy-users/UJBXVpDgY0c

So now the question is whether I should create a Python 3.7 environment for Kivy 1.11.1 or trying to use Kivy 2.0.0 with the Ubuntu 20.04 Python 3.8 ?

On the other thread Robert said:

" I think Kivy does work on Python 3.8, as shown by the Android builds which default to using 3.8.
The trick is kivy==2.0.0rc3   , it is a release candidate so of course there are no install instructions yet...... "

Henrik R.

unread,
Sep 16, 2020, 10:44:39 AM9/16/20
to Kivy users support
OK. I managed to get Kivy 2.0.0rc3 to work with Python 3.8.2 in Pycharm 2020.2.1. CE under Ubuntu 20.04.

First I used PyCharm "New project" to create a virtual environment. Then:


NB: I should probably have started with ”$ sudo apt-get update” before everything else...!


me@myPC:~$ python3 -m pip install --upgrade --user pip setuptools virtualenv

ERROR: launchpadlib 1.10.13 requires testresources, which is not installed.

  WARNING: The scripts pip, pip3 and pip3.8 are installed in '/home/henrik/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  WARNING: The scripts easy_install and easy_install-3.8 are installed in '/home/henrik/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  WARNING: The script virtualenv is installed in '/home/henrik/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed appdirs-1.4.4 distlib-0.3.1 filelock-3.0.12 pip-20.2.3 setuptools-50.3.0 virtualenv-20.0.31

me@myPC:~$ which python3
/usr/bin/python3
me@myPC:~$ which pip
me@myPC:~$ which pip3
/usr/bin/pip3


I have chosen to copy ’/usr/bin/pip3’ to ’/usr/bin/pip’:


me@myPC:/usr/bin$ sudo cp pip3 pip
[sudo] password for henrik: 


I installed python3-testresources in Synaptic (an Ubuntu package manager).


Then I repeated the following command, because the first time I got the message ”ERROR: launchpadlib 1.10.13 requires testresources, which is not installed.

But it doesn’t seem to have had any effect:


me@myPC:~$ python3 -m pip install --upgrade --user pip setuptools virtualenv
Requirement already up-to-date: pip in ./.local/lib/python3.8/site-packages (20.2.3)
Requirement already up-to-date: setuptools in ./.local/lib/python3.8/site-packages (50.3.0)
Requirement already up-to-date: virtualenv in ./.local/lib/python3.8/site-packages (20.0.31)
Requirement already satisfied, skipping upgrade: distlib<1,>=0.3.1 in ./.local/lib/python3.8/site-packages (from virtualenv) (0.3.1)
Requirement already satisfied, skipping upgrade: filelock<4,>=3.0.0 in ./.local/lib/python3.8/site-packages (from virtualenv) (3.0.12)
Requirement already satisfied, skipping upgrade: six<2,>=1.9.0 in /usr/lib/python3/dist-packages (from virtualenv) (1.14.0)
Requirement already satisfied, skipping upgrade: appdirs<2,>=1.4.3 in ./.local/lib/python3.8/site-packages (from virtualenv) (1.4.4)


Now I tried to combine the Kivy install instruction from https://kivy.org/doc/stable/installation/installation-linux.html and https://virtualenv.pypa.io/en/latest/user_guide.html :


First I changed to the Python/Kivy project directory where PyCharm has placed the ’venv’, and I activated the venv:


me@myPC:/usr/bin$ cd /mnt/data-part/mypython/GeoESP/
me@myPC:/mnt/data-part/mypython/GeoESP$ source venv/bin/activate
(venv) me@myPC:/mnt/data-part/mypython/GeoESP$ python3 -m pip install kivy==2.0.0rc3

Successfully built Kivy-Garden
Installing collected packages: pygments, Kivy-Garden, docutils, kivy
Successfully installed Kivy-Garden-0.1.4 docutils-0.16 kivy-2.0.0rc3 pygments-2.7.0
(venv) me@myPC:/mnt/data-part/mypython/GeoESP$ python3 -m pip install kivy_examples==2.0.0rc3

Installing collected packages: kivy-examples
Successfully installed kivy-examples-2.0.0rc3
(venv) me@myPC:/mnt/data-part/mypython/GeoESP$ python3 -m pip install ffpyplayer
Collecting ffpyplayer
  Downloading ffpyplayer-4.3.1-cp38-cp38-manylinux2010_x86_64.whl (26.3 MB)
     |████████████████████████████████| 26.3 MB 11.4 MB/s 
Installing collected packages: ffpyplayer
Successfully installed ffpyplayer-4.3.1
(venv) me@myPC:/mnt/data-part/mypython/GeoESP$ KIVY_VIDEO=ffpyplayer


Then I could confirm that my Kivy app worked in PyCharm CE – using the virtualenv /mnt/data-part/mypython/GeoESP/venv/ !


Reply all
Reply to author
Forward
0 new messages