axel358 / waydroid-settings

GTK app written in Python to control Waydroid settings
96 stars 14 forks source link

The app won't launch - webkit 6 issue? #13

Open mapleroyal opened 1 year ago

mapleroyal commented 1 year ago

EDIT: my system is a freshly installed vanilla arch linux in gnome, no vm involved.

I installed by aur and by the script here.

When running from aur, it simply never loads. If I call waydroidsettings by CLI, I get the following:

Traceback (most recent call last):
  File "/usr/bin/waydroidsettings", line 43, in <module>
    from waydroidsettings import main
  File "/usr/share/waydroidsettings/waydroidsettings/main.py", line 24, in <module>
    from .window import WaydroidsettingsWindow
  File "/usr/share/waydroidsettings/waydroidsettings/window.py", line 26, in <module>
    gi.require_version('WebKit', '6.0')
  File "/usr/lib/python3.10/site-packages/gi/__init__.py", line 126, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace WebKit not available

When running the app as installed from the script, it also never loads.

axel358 commented 1 year ago

the gtk4 port is far from being complete, what error do u get when installing from the script provided in this repo?

mapleroyal commented 1 year ago

the gtk4 port is far from being complete, what error do u get when installing from the script provided in this repo?

I don't know how to launch that one from the CLI, so I couldn't get any output. I ended up reimaging my machine to th latest backup because it bothers me when things break or are broken and I don't have time to investigate and repair.

axel358 commented 1 year ago

waydroid-settings.sh

mapleroyal commented 1 year ago

waydroid-settings.sh

On a brand new linux install from scratch, I get the following:

>>> waydroid-settings.sh

Traceback (most recent call last):
  File "/usr/share/waydroid-settings/./waydroid-settings.py", line 10, in <module>
    gi.require_version('WebKit2', '4.0')
  File "/usr/lib/python3.10/site-packages/gi/__init__.py", line 129, in require_version
    raise ValueError('Namespace %s not available for version %s' %
ValueError: Namespace WebKit2 not available for version 4.0

It never opens.

mapleroyal commented 1 year ago

ChatGPT came through. This command works:

sudo pacman -S webkit2gtk

And then the settings app launches with

waydroid-settings.sh

axel358 commented 1 year ago

https://github.com/axel358/waydroid-settings#requirements

mapleroyal commented 1 year ago

Ya no I get it, but the pacman packages usually handle dependencies, so this was unexpected for the OP. Regarding your script, it's at https://github.com/axel358/waydroid-settings#install. Guess I wasn't expecting a one-command autoinstall that doesn't install the requirements...? :/

axel358 commented 1 year ago

the script can't figure out the name of the packages and the package manager used by every distro out there

mapleroyal commented 1 year ago

No I get it. I'm relatively new to Linux, but my feedback would be to include requirements as a subheading of the installation instructions. Just my opinion, I've seen it in other guides.

axel358 commented 1 year ago

Best we can do is provide the list of packages required for the most used distros

mapleroyal commented 1 year ago

Right no I get that. And I appreciate your work by the way. My suggestion was not to find a list and put it in your requirements section. But rather consider moving the existing requirements section to be a subheading of installation instructions.


Step 1. Requirements: Make sure you've installed these packages for your system. Step 2. Run the installer: Run this script Githubissues.

  • Githubissues is a development platform for aggregating issues.