I’ve tried one-line installer and it won’t allow non-Pi hardware installation. How could I do it other way?..thanks.
OK, in which case you will have to do the installation manually. Please do bear in mind that I have never tried the console on Ubuntu (I don’t have a Linux box), so there might be hiccups along the way and it might not be perfectly optimised.
Open a terminal in Ubuntu and first check that you have Python3 installed by running this command:
python3 -V
It should return with a version number. If there is an error with “command not found” or something similar, you will need to install Python3 by running: sudo apt install python3.
Once you have confirmed Python3 is installed, run the following command:
python3 -m pip install --upgrade pip setuptools
Then install the Python dependencies required by the PiConsole:
python3 -m pip install autobahn[twisted] pytz pyasn1-modules service_identity geopy ephem Cython numpy packaging
Next we need to install Kivy using:
python3 -m pip install kivy
and finally we need to download the PiConsole scripts. Run each of these commands in order:
cd && mkdir wfpiconsole && cd wfpiconsole
curl -sL https://api.github.com/repos/peted-davis/WeatherFlow_PiConsole/tarball -o PiConsole.tar.gz
tar -xvf PiConsole.tar.gz --strip 1
rm -f PiConsole.tar.gz
You should then be able to start the console by running this command:
python3 main.py
Follow these instructions to get all the relevant API keys for the configuration setup.
Let me know if this works successfully. Note at the moment the console is limited to an 800x480 window as this is the size of the official Raspberry Pi Touchscreen
Thanks a lot. I’ve followed your steps successfully till the kivy installation command. It generated a lot of errors. Here is only a small part of the errors:
bthoven@bthoven-3020M:~$ python3 -m pip install kivy
Defaulting to user installation because normal site-packages is not writeable
Collecting kivy
Downloading Kivy-1.11.1.tar.gz (23.6 MB)
|████████████████████████████████| 23.6 MB 41 kB/s
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-3v4fx_q_/kivy/setup.py’“'”‘; file=’“'”‘/tmp/pip-install-3v4fx_q_/kivy/setup.py’“'”‘;f=getattr(tokenize, ‘"’“‘open’”’“‘, open)(file);code=f.read().replace(’”‘"’\r\n’“'”‘, ‘"’"’\n’“'”‘);f.close();exec(compile(code, file, ‘"’“‘exec’”’“‘))’ egg_info --egg-base /tmp/pip-pip-egg-info-lzumayll
cwd: /tmp/pip-install-3v4fx_q_/kivy/
Complete output (672 lines):
fatal: not a git repository (or any of the parent directories): .git
WARNING: Skipping page https://github.com/kivy-garden/garden/archive/master.zip because the HEAD request got Content-Type: application/zip.The only supported Content-Type is text/html
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '”‘"’/tmp/pip-wheel-g57h1ztb/cython/setup.py’“'”‘; file=’“'”‘/tmp/pip-wheel-g57h1ztb/cython/setup.py’“'”';
OK, let’s try and different approach.
First run this command:
sudo add-apt-repository ppa:kivy-team/kivy
and then:
sudo apt-get install python3-kivy
Does that work better? I am just following suggested options from the Kivy documentation: Installation on Linux — Kivy 2.2.1 documentation
Also what version of Python3 are using using? (what is the output of running python3 -V?). It looks like v3.8.x is not yet compatible with Kivy so that might be the issue.
Python 3.8.2.
Running sudo add-apt-repo… ending with the following errors:
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.
OK, I think the issue is that you are running a Python version that is not compatible with Kivy. You need to install v3.7 instead. I think you can do that following these instructions: https://linuxize.com/post/how-to-install-python-3-7-on-ubuntu-18-04/. This is something I have never tried before, so proceed at your own risk. Once you have installed v3.7, run all the commands again in this post: Announcements & Updates - #1364, but replace python3 with python3.7
I installed python 3.7, make it default python version; then re-run all your commands again; and it died at the same command. I suspect it was due to my Ubuntu 20.04 still not supported?
Hmmm… beginning to run out of ideas here, sorry! You say you have set python 3.7 as your default. If you run python3 -V does that give you a v3.7.x version number? Does it make a difference if you use python3.7 instead of python3 in all the commands?
Can you check that you have git installed by running
sudo apt-get install git
What happens if you run this command:
python3.7 -m pip install --user https://github.com/kivy/kivy/archive/1.11.1.zip
There was one error when I installed the setuptools:
bthoven@bthoven-3020M:~$ python3.7 -m pip install --upgrade pip setuptools
Collecting pip
Using cached pip-20.2.2-py2.py3-none-any.whl (1.5 MB)
Collecting setuptools
Using cached setuptools-49.3.2-py3-none-any.whl (790 kB)
ERROR: launchpadlib 1.10.13 requires testresources, which is not installed
I then installed it directly:
sudo apt install python3-testresources
but it still produced the same error:
bthoven@bthoven-3020M:~/wfpiconsole$ python3 main.py
cat: /proc/device-tree/model: No such file or directory
Traceback (most recent call last):
File "main.py", line 73, in <module>
from kivy.support import install_twisted_reactor
ModuleNotFoundError: No module named 'kivy'
Do you see a “ModuleNotFoundError” if you run python3.7 -c "import kivy"
bthoven@bthoven-3020M:~/wfpiconsole$ python3.7 -c "import kivy"
[INFO ] [Logger ] Record log in /home/bthoven/.kivy/logs/kivy_20-08-14_0.txt
[INFO ] [Kivy ] v1.11.1
[INFO ] [Kivy ] Installed at "/home/bthoven/.local/lib/python3.7/site-packages/kivy/__init__.py"
[INFO ] [Python ] v3.7.8 (default, Jun 29 2020, 04:26:04)
[GCC 9.3.0]
[INFO ] [Python ] Interpreter at "/usr/bin/python3.7"
Ok that’s positive. Kivy is installed for python3.7. What happens if you run python3.7 main.py
Run python3.7 -m pip install cffi and then try python3.7 main.py again.
OK - slow progress! Run this complete command again to make doubly sure all the required modules are installed:
python3.7 -m pip install autobahn[twisted] pytz pyasn1-modules service_identity geopy ephem Cython numpy packaging
and then of course run python3.7 main.py again!
OK that’s annoying. Let’s try force reinstalling the offending package with
python3.7 -m pip install --upgrade pip
and then
python3.7 -m pip install --upgrade --force-reinstall pyephem
If you see an error in the second command, run it a couple of times to see if it dissapears




