NordVpnLinuxGUI icon indicating copy to clipboard operation
NordVpnLinuxGUI copied to clipboard

Kivy not building on Ubuntu 22.04

Open maepopi opened this issue 1 year ago • 8 comments

Hello!

I still have this problem that was reported before when trying to install :

ERROR: Failed building wheel for Pillow Running setup.py clean for Pillow Failed to build Kivy Pillow ERROR: Could not build wheels for Kivy, Pillow, which is required to install pyproject.toml-based projects

You said in another thread that it was probably because Ubuntu 22.04 comes with Python 3.10. I made virtual environments for both 3.10 and 3.9 but nothing works, whatever version of Kivy I install.

Is there maybe something I missed?

Thanks!

maepopi avatar Aug 13 '24 19:08 maepopi

Just wanting to flag that I'm running into this exact same problem. I'll attach a file containing all the stdout and stderr from when I run installer.sh.

log.txt

By the way, I'm on Linux Mint and installed python3.12-venv manually as requested by the installer.

arghorashy avatar Sep 15 '24 13:09 arghorashy

Thanks for attaching the log. This will make it much easier for me to find a solution. Thank you!

GoBig87 avatar Sep 15 '24 17:09 GoBig87

So there are a few errors I think that need to be resolved

  1. To try and fix the Python.h header file issue try sudo apt install python3-dev I think installing the dev package might install that missing header file possibly.
  2. For the missing zlib package try install zlib sudo apt install zlib1g-dev
  3. Try installing Kivy deps again manually sudo apt install libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev gstreamer1.0-dev libpango1.0-dev
  4. Try the installer script again

GoBig87 avatar Sep 15 '24 17:09 GoBig87

Thanks for the prompt reply.

On step 3 gstreamer1.0-dev doesn't seem to be an option. Here are the possible options at my disposal - let me know which one I should go with, or if these is a ppa I need to add to have access to the package you specified:

  • gstreamer1.0-adapter-pulseeffects
  • gstreamer1.0-alsa
  • gstreamer1.0-autogain-pulseeffects
  • gstreamer1.0-clutter-3.0
  • gstreamer1.0-convolver-pulseeffects
  • gstreamer1.0-crystalizer-pulseeffects
  • gstreamer1.0-espeak
  • gstreamer1.0-fdkaac
  • gstreamer1.0-gl
  • gstreamer1.0-gtk3
  • gstreamer1.0-libav
  • gstreamer1.0-libcamera
  • gstreamer1.0-nice
  • gstreamer1.0-opencv
  • gstreamer1.0-packagekit
  • gstreamer1.0-pipewire
  • gstreamer1.0-plugins-bad
  • gstreamer1.0-plugins-bad-apps
  • gstreamer1.0-plugins-base
  • gstreamer1.0-plugins-base-apps
  • gstreamer1.0-plugins-good
  • gstreamer1.0-plugins-rtp
  • gstreamer1.0-plugins-ugly
  • gstreamer1.0-pocketsphinx
  • gstreamer1.0-pulseaudio
  • gstreamer1.0-python3-plugin-loader
  • gstreamer1.0-qt5
  • gstreamer1.0-qt6
  • gstreamer1.0-rtsp
  • gstreamer1.0-tools
  • gstreamer1.0-vaapi
  • gstreamer1.0-x

I experimented with installing the other packages you suggested and running the installer. Here is the result: log.txt

arghorashy avatar Sep 15 '24 18:09 arghorashy

I don't think Kivy 2.1.0 supports python 3.12.1. Maybe try changing this file https://github.com/GoBig87/NordVpnLinuxGUI/blob/main/requirements.txt

Kivy==2.1.0 to Kivy==2.3.0 which should support python 3.12.0. I haven't had a chance to test it with that version of python and there may be other issues. I might need to make another release that supports the latest version of python

GoBig87 avatar Sep 15 '24 19:09 GoBig87

That worked. Thank for your help! <3

arghorashy avatar Sep 16 '24 02:09 arghorashy

just had this problem as well on linux mint 22 editing the requirements.txt did fix it but i needed to edit the pillow version as well to 10.2.0 (adding this for others who have the same issue)

wraith3690 avatar Jan 09 '25 18:01 wraith3690

just had this problem as well on linux mint 22 editing the requirements.txt did fix it but i needed to edit the pillow version as well to 10.2.0 (adding this for others who have the same issue)

Thanks that worked for me as well on linux mint after changing kivy version.

rairay91 avatar Feb 19 '25 05:02 rairay91