GoBig87 / NordVpnLinuxGUI

A GUI wrapper for the Linux Nord VPN client
MIT License
54 stars 5 forks source link

Kivy not building on Ubuntu 22.04 #21

Open maepopi opened 1 month ago

maepopi commented 1 month ago

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!

arghorashy commented 6 days ago

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.

GoBig87 commented 6 days ago

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

GoBig87 commented 6 days ago

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
    1. 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
    2. Try the installer script again
arghorashy commented 6 days ago

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:

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

GoBig87 commented 6 days ago

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

arghorashy commented 6 days ago

That worked. Thank for your help! <3