Vanilla-OS / vanilla-control-center

This utility allows you to manage Vanilla OS components
GNU General Public License v3.0
23 stars 16 forks source link

Requiring namespace 'Gtk' version '3.0', but '4.0' is already loaded #156

Closed D3vil0p3r closed 1 year ago

D3vil0p3r commented 1 year ago

I built vanilla-control-center files as described in the README in a GNOME 44 environment, and after the build, all was good. The issue occurs during the execution of vanilla-control-center that returns the following error:

Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/gi/importer.py", line 142, in load_module
    introspection_module = get_introspection_module(namespace)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/gi/module.py", line 263, in get_introspection_module
    module = IntrospectionModule(namespace, version)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/gi/module.py", line 110, in __init__
    repository.require(namespace, version)
gi.RepositoryError: Requiring namespace 'Gtk' version '3.0', but '4.0' is already loaded

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/vanilla-control-center", line 45, in <module>
    from vanilla_control_center import main
  File "/usr/local/share/vanilla-control-center/vanilla_control_center/main.py", line 32, in <module>
    from .window import VanillaWindow
  File "/usr/local/share/vanilla-control-center/vanilla_control_center/window.py", line 30, in <module>
    from vanilla_control_center.dialog_installation import VanillaDialogInstallation
  File "/usr/local/share/vanilla-control-center/vanilla_control_center/dialog_installation.py", line 20, in <module>
    from gi.repository import Gtk, Gio, Gdk, GLib, Adw, Vte, Pango
  File "/usr/lib/python3.11/site-packages/gi/importer.py", line 144, in load_module
    raise ImportError(e)
ImportError: Requiring namespace 'Gtk' version '3.0', but '4.0' is already loaded

How is it possible to fix this?

axtloss commented 1 year ago

What Distribution are you building this on? Vanilla Control Center already sets the version to 4.0 in https://github.com/Vanilla-OS/vanilla-control-center/blob/main/vanilla_control_center/main.py#L28

So this probably is an issue with the libraries on your host.

D3vil0p3r commented 1 year ago

What Distribution are you building this on? Vanilla Control Center already sets the version to 4.0 in https://github.com/Vanilla-OS/vanilla-control-center/blob/main/vanilla_control_center/main.py#L28

So this probably is an issue with the libraries on your host.

I'm building it on Arch Linux machine with GNOME 44.1 with Xorg. For running correctly meson build, I installed the following dependencies:

appstream-glib
itstools

that were asked in the output during the building process. After these dependencies installed, meson build returned the following output:

The Meson build system
Version: 1.1.0
Source dir: /home/athena/vanilla-control-center
Build dir: /home/athena/vanilla-control-center/build
Build type: native build
Project name: vanilla-control-center
Project version: 1.8.3
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program msgfmt found: YES (/usr/bin/msgfmt)
Program msginit found: YES (/usr/bin/msginit)
Program msgmerge found: YES (/usr/bin/msgmerge)
Program xgettext found: YES (/usr/bin/xgettext)
Found pkg-config: /usr/bin/pkg-config (1.8.1)
Program glib-compile-resources found: YES (/usr/bin/glib-compile-resources)
Program python3 found: YES (/usr/bin/python3)
vanilla_control_center/meson.build:15: WARNING: Project targets '>= 0.59.0' but uses feature deprecated since '0.55.0': ExternalProgram.path. use ExternalProgram.full_path() instead
Configuring vanilla-control-center using configuration
Program desktop-file-validate found: YES (/usr/bin/desktop-file-validate)
Program appstream-util found: YES (/usr/bin/appstream-util)
Program glib-compile-schemas found: YES (/usr/bin/glib-compile-schemas)
Could not find file LINGUAS in /home/athena/vanilla-control-center/help
Program itstool found: YES (/usr/bin/itstool)
Program msgmerge found: YES (/usr/bin/msgmerge)
Program msgfmt found: YES (/usr/bin/msgfmt)
Build-time dependency gio-2.0 found: YES 2.76.2
Program glib-compile-schemas found: YES (/usr/bin/glib-compile-schemas)
Program gtk4-update-icon-cache found: YES (/usr/bin/gtk4-update-icon-cache)
Program update-desktop-database found: YES (/usr/bin/update-desktop-database)
Build targets in project: 146
WARNING: Deprecated features used:
 * 0.55.0: {'ExternalProgram.path'}

Found ninja-1.11.1 at /usr/bin/ninja
Generating targets:   0%|
Writing build.ninja:   0%|
WARNING: Running the setup command as `meson [options]` instead of `meson setup [options]` is ambiguous and deprecated.

so, from the output above, the only warning messages were:

vanilla_control_center/meson.build:15: WARNING: Project targets '>= 0.59.0' but uses feature deprecated since '0.55.0': ExternalProgram.path. use ExternalProgram.full_path() instead

Could not find file LINGUAS in /home/athena/vanilla-control-center/help

I don't think they have an impact. Then, I run ninja -C build:

ninja: Entering directory `build'
[141/141] Generating data/org.vanillaos.ControlCenter.appdata.xml with a custom command

and then sudo ninja -C build install:

ninja: Entering directory `build'
[0/1] Installing files.
Installing po/it/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/it/LC_MESSAGES
Installing po/fr/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/fr/LC_MESSAGES
Installing po/de/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/de/LC_MESSAGES
Installing po/hi/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/hi/LC_MESSAGES
Installing po/pt/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/pt/LC_MESSAGES
Installing po/es/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/es/LC_MESSAGES
Installing po/nb_NO/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/nb_NO/LC_MESSAGES
Installing po/pt_BR/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/pt_BR/LC_MESSAGES
Installing po/id/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/id/LC_MESSAGES
Installing po/da/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/da/LC_MESSAGES
Installing po/nl/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/nl/LC_MESSAGES
Installing po/tr/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/tr/LC_MESSAGES
Installing po/sv/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/sv/LC_MESSAGES
Installing po/ru/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/ru/LC_MESSAGES
Installing po/eo/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/eo/LC_MESSAGES
Installing po/zh_Hans/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/zh_Hans/LC_MESSAGES
Installing po/fi/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/fi/LC_MESSAGES
Installing po/ja/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/ja/LC_MESSAGES
Installing po/hr/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/hr/LC_MESSAGES
Installing po/cs/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/cs/LC_MESSAGES
Installing po/uk/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/uk/LC_MESSAGES
Installing po/hu/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/hu/LC_MESSAGES
Installing po/pl/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/pl/LC_MESSAGES
Installing po/zh_Hant/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/zh_Hant/LC_MESSAGES
Installing po/ko/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/ko/LC_MESSAGES
Installing po/vi/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/vi/LC_MESSAGES
Installing po/eu/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/eu/LC_MESSAGES
Installing po/bg/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/bg/LC_MESSAGES
Installing po/el/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/el/LC_MESSAGES
Installing po/gl/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/gl/LC_MESSAGES
Installing po/sk/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/sk/LC_MESSAGES
Installing po/ro/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/ro/LC_MESSAGES
Installing po/ms/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/ms/LC_MESSAGES
Installing po/ckb/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/ckb/LC_MESSAGES
Installing po/fa/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/fa/LC_MESSAGES
Installing po/th/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/th/LC_MESSAGES
Installing po/ar/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/ar/LC_MESSAGES
Installing po/bn/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/bn/LC_MESSAGES
Installing po/sl/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/sl/LC_MESSAGES
Installing po/ca/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/ca/LC_MESSAGES
Installing po/lt/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/lt/LC_MESSAGES
Installing po/sr/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/sr/LC_MESSAGES
Installing po/et/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/et/LC_MESSAGES
Installing po/ta/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/ta/LC_MESSAGES
Installing po/tl/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/tl/LC_MESSAGES
Installing po/ab/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/ab/LC_MESSAGES
Installing po/ur/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/ur/LC_MESSAGES
Installing po/ht/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/ht/LC_MESSAGES
Installing po/jv/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/jv/LC_MESSAGES
Installing po/ka/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/ka/LC_MESSAGES
Installing po/mk/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/mk/LC_MESSAGES
Installing po/fr_CA/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/fr_CA/LC_MESSAGES
Installing po/ps/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/ps/LC_MESSAGES
Installing po/fa_AF/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/fa_AF/LC_MESSAGES
Installing po/az/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/az/LC_MESSAGES
Installing po/af/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/af/LC_MESSAGES
Installing po/gv/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/gv/LC_MESSAGES
Installing po/co/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/co/LC_MESSAGES
Installing po/frp/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/frp/LC_MESSAGES
Installing po/fo/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/fo/LC_MESSAGES
Installing po/ky/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/ky/LC_MESSAGES
Installing po/br/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/br/LC_MESSAGES
Installing po/cv/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/cv/LC_MESSAGES
Installing po/as/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/as/LC_MESSAGES
Installing po/szl/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/szl/LC_MESSAGES
Installing po/an/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/an/LC_MESSAGES
Installing po/bs/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/bs/LC_MESSAGES
Installing po/lv/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/lv/LC_MESSAGES
Installing po/cy/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/cy/LC_MESSAGES
Installing po/hy/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/hy/LC_MESSAGES
Installing po/lo/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/lo/LC_MESSAGES
Installing po/sd/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/sd/LC_MESSAGES
Installing po/tg/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/tg/LC_MESSAGES
Installing po/mnw/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/mnw/LC_MESSAGES
Installing po/xh/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/xh/LC_MESSAGES
Installing po/mi/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/mi/LC_MESSAGES
Installing po/en_GB/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/en_GB/LC_MESSAGES
Installing po/ar_MA/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/ar_MA/LC_MESSAGES
Installing po/ne/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/ne/LC_MESSAGES
Installing po/gd/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/gd/LC_MESSAGES
Installing po/nn/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/nn/LC_MESSAGES
Installing po/kk/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/kk/LC_MESSAGES
Installing po/kmr/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/kmr/LC_MESSAGES
Installing po/tt/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/tt/LC_MESSAGES
Installing po/kw/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/kw/LC_MESSAGES
Installing po/bo/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/bo/LC_MESSAGES
Installing po/lb/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/lb/LC_MESSAGES
Installing po/sq/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/sq/LC_MESSAGES
Installing po/si/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/si/LC_MESSAGES
Installing po/en_AU/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/en_AU/LC_MESSAGES
Installing po/fur/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/fur/LC_MESSAGES
Installing po/vec/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/vec/LC_MESSAGES
Installing po/sc/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/sc/LC_MESSAGES
Installing po/mhr/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/mhr/LC_MESSAGES
Installing po/he/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/he/LC_MESSAGES
Installing po/ug/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/ug/LC_MESSAGES
Installing po/kab/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/kab/LC_MESSAGES
Installing po/mr/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/mr/LC_MESSAGES
Installing po/te/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/te/LC_MESSAGES
Installing po/ast/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/ast/LC_MESSAGES
Installing po/ml/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/ml/LC_MESSAGES
Installing po/zh_Hant_HK/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/zh_Hant_HK/LC_MESSAGES
Installing po/pms/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/pms/LC_MESSAGES
Installing po/dv/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/dv/LC_MESSAGES
Installing po/nds/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/nds/LC_MESSAGES
Installing po/oc/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/oc/LC_MESSAGES
Installing po/is/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/is/LC_MESSAGES
Installing po/fil/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/fil/LC_MESSAGES
Installing po/crh/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/crh/LC_MESSAGES
Installing po/uroc/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/uroc/LC_MESSAGES
Installing po/fy/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/fy/LC_MESSAGES
Installing po/km/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/km/LC_MESSAGES
Installing po/ga/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/ga/LC_MESSAGES
Installing po/pa/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/pa/LC_MESSAGES
Installing po/mn/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/mn/LC_MESSAGES
Installing po/am/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/am/LC_MESSAGES
Installing po/mjw/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/mjw/LC_MESSAGES
Installing po/my/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/my/LC_MESSAGES
Installing po/uz/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/uz/LC_MESSAGES
Installing po/kn/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/kn/LC_MESSAGES
Installing po/en_CA/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/en_CA/LC_MESSAGES
Installing po/shn/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/shn/LC_MESSAGES
Installing po/se/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/se/LC_MESSAGES
Installing po/trv/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/trv/LC_MESSAGES
Installing po/pam/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/pam/LC_MESSAGES
Installing po/tk/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/tk/LC_MESSAGES
Installing po/mg/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/mg/LC_MESSAGES
Installing po/ce/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/ce/LC_MESSAGES
Installing po/ia/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/ia/LC_MESSAGES
Installing po/sa/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/sa/LC_MESSAGES
Installing po/ln/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/ln/LC_MESSAGES
Installing po/csb/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/csb/LC_MESSAGES
Installing po/gu/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/gu/LC_MESSAGES
Installing po/ca@valencia/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/ca@valencia/LC_MESSAGES
Installing po/os/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/os/LC_MESSAGES
Installing po/sr_Latn/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/sr_Latn/LC_MESSAGES
Installing po/arn/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/arn/LC_MESSAGES
Installing po/be/LC_MESSAGES/vanilla-control-center.mo to /usr/local/share/locale/be/LC_MESSAGES
Installing vanilla_control_center/vanilla-control-center.gresource to /usr/local/share/vanilla-control-center
Installing data/org.vanillaos.ControlCenter.desktop to /usr/local/share/applications
Installing data/org.vanillaos.ControlCenter.appdata.xml to /usr/local/share/appdata
Installing /home/athena/vanilla-control-center/build/vanilla_control_center/vanilla-control-center to /usr/local/bin
Installing /home/athena/vanilla-control-center/vanilla_control_center/backends/__init__.py to /usr/local/share/vanilla-control-center/vanilla_control_center/backends
Installing /home/athena/vanilla-control-center/vanilla_control_center/backends/apx.py to /usr/local/share/vanilla-control-center/vanilla_control_center/backends
Installing /home/athena/vanilla-control-center/vanilla_control_center/backends/vso.py to /usr/local/share/vanilla-control-center/vanilla_control_center/backends
Installing /home/athena/vanilla-control-center/vanilla_control_center/backends/exceptions.py to /usr/local/share/vanilla-control-center/vanilla_control_center/backends
Installing /home/athena/vanilla-control-center/vanilla_control_center/__init__.py to /usr/local/share/vanilla-control-center/vanilla_control_center
Installing /home/athena/vanilla-control-center/vanilla_control_center/main.py to /usr/local/share/vanilla-control-center/vanilla_control_center
Installing /home/athena/vanilla-control-center/vanilla_control_center/window.py to /usr/local/share/vanilla-control-center/vanilla_control_center
Installing /home/athena/vanilla-control-center/vanilla_control_center/program.py to /usr/local/share/vanilla-control-center/vanilla_control_center
Installing /home/athena/vanilla-control-center/vanilla_control_center/run_async.py to /usr/local/share/vanilla-control-center/vanilla_control_center
Installing /home/athena/vanilla-control-center/vanilla_control_center/container.py to /usr/local/share/vanilla-control-center/vanilla_control_center
Installing /home/athena/vanilla-control-center/vanilla_control_center/dialog_installation.py to /usr/local/share/vanilla-control-center/vanilla_control_center
Installing /home/athena/vanilla-control-center/data/org.vanillaos.ControlCenter.gschema.xml to /usr/local/share/glib-2.0/schemas
Installing /home/athena/vanilla-control-center/data/icons/hicolor/scalable/apps/org.vanillaos.ControlCenter.svg to /usr/local/share/icons/hicolor/scalable/apps
Installing /home/athena/vanilla-control-center/data/icons/hicolor/symbolic/apps/org.vanillaos.ControlCenter-symbolic.svg to /usr/local/share/icons/hicolor/symbolic/apps
Installing /home/athena/vanilla-control-center/help/C/index.page to /usr/local/share/help/C/vanilla-control-center
Installing /home/athena/vanilla-control-center/help/C/drivers-install.page to /usr/local/share/help/C/vanilla-control-center
Installing /home/athena/vanilla-control-center/help/C/drivers-not-available.page to /usr/local/share/help/C/vanilla-control-center
Installing /home/athena/vanilla-control-center/help/C/prime-profiles.page to /usr/local/share/help/C/vanilla-control-center
Installing /home/athena/vanilla-control-center/help/C/update-automatic.page to /usr/local/share/help/C/vanilla-control-center
Installing /home/athena/vanilla-control-center/help/C/update-check.page to /usr/local/share/help/C/vanilla-control-center
Installing /home/athena/vanilla-control-center/help/C/update-scheduling.page to /usr/local/share/help/C/vanilla-control-center
Installing /home/athena/vanilla-control-center/help/C/update-smart.page to /usr/local/share/help/C/vanilla-control-center
Installing /home/athena/vanilla-control-center/help/C/update-system.page to /usr/local/share/help/C/vanilla-control-center
Installing /home/athena/vanilla-control-center/help/C/subsystem-containers.page to /usr/local/share/help/C/vanilla-control-center
Installing /home/athena/vanilla-control-center/help/C/subsystem-installed.page to /usr/local/share/help/C/vanilla-control-center
Installing /home/athena/vanilla-control-center/help/C/legal.xml to /usr/local/share/help/C/vanilla-control-center
Installing /home/athena/vanilla-control-center/help/C/media/org.vanillaos.ControlCenter.svg to /usr/local/share/help/C/vanilla-control-center/media
Installing /home/athena/vanilla-control-center/help/C/media/vanilla-control-center.png to /usr/local/share/help/C/vanilla-control-center/media
Installing /home/athena/vanilla-control-center/help/C/media/vanilla-control-center-apply.png to /usr/local/share/help/C/vanilla-control-center/media
Installing /home/athena/vanilla-control-center/help/C/media/vanilla-control-center-installation.png to /usr/local/share/help/C/vanilla-control-center/media
Installing /home/athena/vanilla-control-center/help/C/media/vanilla-control-center-update.png to /usr/local/share/help/C/vanilla-control-center/media
Installing /home/athena/vanilla-control-center/help/C/media/vanilla-control-center-subsystem.png to /usr/local/share/help/C/vanilla-control-center/media
Installing /home/athena/vanilla-control-center/help/C/media/vanilla-control-center-subsystem-enter.png to /usr/local/share/help/C/vanilla-control-center/media
Installing /home/athena/vanilla-control-center/help/C/media/vanilla-control-center-prime-profiles.png to /usr/local/share/help/C/vanilla-control-center/media
Running custom install script '/usr/bin/glib-compile-schemas /usr/local/share/glib-2.0/schemas'
Running custom install script '/usr/bin/gtk4-update-icon-cache -q -t -f /usr/local/share/icons/hicolor'
Running custom install script '/usr/bin/update-desktop-database -q /usr/local/share/applications'

After this, the vanilla-control-center is available to run but returns the output pasted above.

Could it be a GTK3-based package that is giving this weird behavior?

axtloss commented 1 year ago

Make sure that you have vte4 installed and not just vte3, as the vte3 package uses gtk3

D3vil0p3r commented 1 year ago

I will try. Meanwhile, how to fix the two building warnings:

vanilla_control_center/meson.build:15: WARNING: Project targets '>= 0.59.0' but uses feature deprecated since '0.55.0': ExternalProgram.path. use ExternalProgram.full_path() instead

Could not find file LINGUAS in /home/athena/vanilla-control-center/help

produced by meson build?

D3vil0p3r commented 1 year ago

vte4 package installation fixed the issue. Then, I installed apx-git AUR package for getting the apx executable that will be in /usr/bin/apx. I created the /etc/vso/config.json as:

{
  "updates": {
    "schedule": "weekly",
    "smart": true
  }
}

When I run now vanilla-control-center, it opens the GUI but without "Sub-System" tab: image

and on the terminal, the output is:

/usr/local/share/vanilla-control-center/vanilla_control_center/dialog_installation.py:20: PyGIWarning: Vte was imported without specifying a version first. Use gi.require_version('Vte', '3.91') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk, Gio, Gdk, GLib, Adw, Vte, Pango
INFO:Vanilla::Apx:Distrobox binary not found
INFO:Vanilla::Apx:Distrobox binary not found

(vanilla-control-center:12596): Gtk-WARNING **: 23:16:23.479: GtkImage 0x55c01be02cf0 reported baselines of minimum -2147483648 and natural -2147483648, but sizes of minimum 16 and natural 16. Baselines must be inside the widget size.

and I get INFO:Vanilla::Apx:Distrobox binary not found despite I have the apx working binary on /usr/bin/apx.

axtloss commented 1 year ago

I will try. Meanwhile, how to fix the two building warnings:

vanilla_control_center/meson.build:15: WARNING: Project targets '>= 0.59.0' but uses feature deprecated since '0.55.0': ExternalProgram.path. use ExternalProgram.full_path() instead

Could not find file LINGUAS in /home/athena/vanilla-control-center/help

produced by meson build?

This is nothing to worry about, it'll work just fine even with this warning.

and I get INFO:Vanilla::Apx:Distrobox binary not found despite I have the apx working binary on /usr/bin/apx.

The warning is about it not being able to find distrobox, did you make sure that apx works properly?

D3vil0p3r commented 1 year ago

Distrobox is one of dependencies of that apx-git package. In which folder the tool goes to search for distrobox binary?

It is related to the fact I dont get the "Sub System" tab?

kbdharun commented 1 year ago

Distrobox is one of dependencies of that apx-git package. In which folder the tool goes to search for distrobox binary?

It is related to the fact I dont get the "Sub System" tab?

Install apx using make (follow the steps on apx readme), it will install a git submodule of distrobox in the required location for apx and Vanilla Control Center Subsystem Tab.

D3vil0p3r commented 1 year ago

@kbdharun @axtloss thank you for the answer. The Makefile of apx should be fixed for some additional / because sudo make install returns:

install -Dm755 apx //usr//bin/apx
sudo mkdir -p //etc/apx
sed -i 's|/usr/share/apx/distrobox|/usr//share/apx/distrobox|g' config/config.json
sudo install -Dm644 config/config.json //etc/apx/config.json
mkdir -p //usr//share/apx
sh distrobox/install --prefix //usr//share/apx
sh: distrobox/install: No such file or directory
make: *** [Makefile:16: install] Error 127

It should occur because PREFIX variable puts an additional /. It should not impact the work of the process.