gbr3: unable to load component: gb.gui

New to Gambas? Post your questions here. No question is too silly or too simple.
Post Reply
Dasher
Posts: 2
Joined: Sunday 8th September 2024 1:46am

gbr3: unable to load component: gb.gui

Post by Dasher »

I am using Ubuntu 22.04. I installed the KDE desktop (default is GNOME) and was looking at the Software Center and saw Gambas 3. I installed it. But it won't start up. In the terminal it displays this error message:

"gbr3: unable to load component: gb.gui"
User avatar
BruceSteers
Posts: 1828
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: gbr3: unable to load component: gb.gui

Post by BruceSteers »

odd , if you used software center then dependencies should be installed.

perhaps apt will do better via terminal...

sudo apt install gambas3*

if it's still not working try typing gambas3 in a terminal and see if a better error message appears.
If at first you don't succeed , try doing something differently.
BruceS
User avatar
cogier
Site Admin
Posts: 1158
Joined: Wednesday 21st September 2016 2:22pm
Location: Guernsey, Channel Islands

Re: gbr3: unable to load component: gb.gui

Post by cogier »

Welcome to the forum.

The repos version of Gambas in Ubuntu 22.04 was not very good. I suggest you use Synaptic to COMPLETELY remove Gambas, then run the following command that will install the latest stable version from the ppa.

Code: Select all

sudo add-apt-repository -y ppa:gambas-team/gambas3 && sudo apt-get update && sudo apt-get -y install gambas3
Dasher
Posts: 2
Joined: Sunday 8th September 2024 1:46am

Re: gbr3: unable to load component: gb.gui

Post by Dasher »

cogier wrote: Sunday 8th September 2024 10:09am The repos version of Gambas in Ubuntu 22.04 was not very good. I suggest you use Synaptic to COMPLETELY remove Gambas, then run the following command that will install the latest stable version from the ppa.

Code: Select all

sudo add-apt-repository -y ppa:gambas-team/gambas3 && sudo apt-get update && sudo apt-get -y install gambas3
I went to Synaptic to uninstall and was unsure of how to uninstall Gambas3. Went instead to the Software Center and did an uninstall, possibly a big mistake. That ended with an odd error message:

Unable to remove "Gambas 3"
Error while installing package: installed deepin-anything-dkms package
post-installation script subprocess returned error exit status 10


Going back to Synaptic, none of the items starting with Gambas were checked.

I then did the terminal command you showed and it ended with errors which may not have anything to do with Gambas 3:

...
Setting up gambas3-gb-qt5-ext (3.19.4+git202408131655.e34fee665+build16~ubuntu22.04.1) ...
Setting up gambas3-gb-gtk3-opengl (3.19.4+git202408131655.e34fee665+build16~ubuntu22.04.1) ...
Setting up gambas3-gb-gtk3-webview (3.19.4+git202408131655.e34fee665+build16~ubuntu22.04.1) ...
Setting up gambas3-ide (3.19.4+git202408131655.e34fee665+build16~ubuntu22.04.1) ...
Setting up gambas3 (3.19.4+git202408131655.e34fee665+build16~ubuntu22.04.1) ...
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
Processing triggers for bamfdaemon (0.5.6+22.04.20220217-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for desktop-file-utils (0.26-1ubuntu3) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu3) ...
Processing triggers for libc-bin (2.35-0ubuntu3.8) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for shared-mime-info (2.1-2) ...
Errors were encountered while processing:
deepin-anything-dkms
dde-file-manager
ubuntudde-dde
deepin-anything-server
E: Sub-process /usr/bin/dpkg returned an error code (1)


Then I did "gambas3 &" from the terminal and got these error messages:

[gb.jit].CCompilation.Run.87: #68: Cannot run child process: cannot run executable: No such file or directory
[gb.jit].CCompilation.Run.87 [gb.jit].Jit._Compile.171 ?

(gbr3:29213): Gdk-CRITICAL **: 19:58:45.932: gdk_wayland_window_set_dbus_properties_libgtk_only: assertion 'GDK_IS_WAYLAND_WINDOW (window)' failed

(gbr3:29213): Gdk-CRITICAL **: 19:58:45.969: gdk_wayland_window_set_dbus_properties_libgtk_only: assertion 'GDK_IS_WAYLAND_WINDOW (window)' failed


I am going to uninstall Deepin but this is the error messages when starting up under Deepin Desktop Environment:
[gb.jit].CCompilation.Run.87: #68: Cannot run child process: cannot run executable: No such file or directory
[gb.jit].CCompilation.Run.87 [gb.jit].Jit._Compile.171 ?

(gbr3:21475): GLib-GObject-CRITICAL **: 20:17:05.904: g_value_set_boxed: assertion 'G_VALUE_HOLDS_BOXED (value)' failed


I uninstalled both the Deepin and KDE desktops and now the error message in the GNOME terminal after typing "gambas3" is:
[gb.jit].CCompilation.Run.87: #68: Cannot run child process: cannot run executable: No such file or directory
[gb.jit].CCompilation.Run.87 [gb.jit].Jit._Compile.171 ?
User avatar
BruceSteers
Posts: 1828
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: gbr3: unable to load component: gb.gui

Post by BruceSteers »

Oh dear , now that looks bad.
You have a broken system
these are the reported packages that have errors...
deepin-anything-dkms
dde-file-manager
ubuntudde-dde

maybe try to remove them if you don't use them (it looks like deepin residual stuff that did not uninstall when deepin was removed)
sudo apt remove deepin-anything-dkms dde-file-manager ubuntudde-dde

Using software manager might have been a mistake if you did not select ALL gambas packages to remove before installing.

In a terminal type...

sudo apt purge gambas3*
sudo apt update
sudo apt install --fix-broken gambas3*

assuming you have added the ppa
maybe the --fix-broken parameter may help with the broken packages if removing them did not work?

apt purge will (should) fully uninstall and delete the old downloaded package files.
apt update refreshes the cache so the new ppa repository is used for gambas not the default one.
apt install gambas3* the asterix makes it install all latest gambas packages.

If installing ALL gambas packages with gambas3* fails then you will have to use either apt or synaptic to install the main gambas3 package and the ones you need.

There are quite a few packages in total, not all are needed but some ARE needed and gambas programs won't work without them..

$ apt-cache search "gambas3"
gambas3 - Complete visual development environment for Gambas
gambas3-devel - Gambas compilation tools
gambas3-examples - Gambas examples
gambas3-gb-args - Gambas arguments parser
gambas3-gb-cairo - Gambas bindings for cairo
gambas3-gb-chart - Gambas charting component
gambas3-gb-clipper - Gambas Clipper component
gambas3-gb-complex - Gambas Complex component
gambas3-gb-compress - Gambas compression component
gambas3-gb-compress-bzlib2 - Gambas bzlib2 component
gambas3-gb-compress-zlib - Gambas zlib compression component
gambas3-gb-compress-zstd - Gambas zstd compression component
gambas3-gb-crypt - Gambas crypt encryption component
gambas3-gb-data - Gambas abstract datatypes component
gambas3-gb-db - Gambas database access common libraries
gambas3-gb-db-form - Gambas database bound controls
gambas3-gb-db-mysql - MySQL driver for the Gambas database
gambas3-gb-db-odbc - ODBC driver for the Gambas database
gambas3-gb-db-postgresql - PostgreSQL driver for the Gambas database
gambas3-gb-db-sqlite3 - Gambas sqlite3 driver database
gambas3-gb-dbus - Gambas bindings for DBUS
gambas3-gb-dbus-trayicon - System tray icon management for Gambas
gambas3-gb-desktop - Gambas Portland project compatibility component
gambas3-gb-desktop-x11 - Gambas Portland project compatibility component for X11
gambas3-gb-eval-highlight - Gambas syntax highlighting component
gambas3-gb-form - Gambas native form component
gambas3-gb-form-dialog - Gambas native dialogue form component
gambas3-gb-form-editor - Gambas native editor form component
gambas3-gb-form-mdi - Gambas native mdi form component
gambas3-gb-form-print - Gambas print form component
gambas3-gb-form-stock - Gambas form stock icons
gambas3-gb-form-terminal - Gambas terminal form component
gambas3-gb-gmp - Gambas GMP component
gambas3-gb-gsl - Gambas GNU Scientific Library component
gambas3-gb-gtk3 - Gambas GTK+3 component
gambas3-gb-gtk3-wayland - Gambas GTK+3 Wayland component
gambas3-gb-gtk3-webview - Gambas GTK+3 Webview component
gambas3-gb-gtk3-x11 - Gambas GTK+3 X11 component
gambas3-gb-gui - Gambas graphical toolkit selector
gambas3-gb-httpd - Gambas HTTP server
gambas3-gb-image - Gambas image effects
gambas3-gb-image-effect - Gambas image effects: effects
gambas3-gb-image-imlib - Gambas image effects: IMLIB bindings
gambas3-gb-image-io - Gambas image effects: I/O
gambas3-gb-inotify - Gambas filesystem events monitoring component
gambas3-gb-jit - Gambas Just-In-Time compiler component
gambas3-gb-libxml - Gambas libxml component
gambas3-gb-logging - Gambas logging system component
gambas3-gb-map - Gambas online map viewer
gambas3-gb-markdown - Gambas markdown convert component
gambas3-gb-media - Gambas media component
gambas3-gb-media-form - Gambas media player controls
gambas3-gb-memcached - Gambas memcached client
gambas3-gb-mime - Gambas MIME message management
gambas3-gb-mysql - Gambas MySQL component
gambas3-gb-ncurses - Gambas NCurses component
gambas3-gb-net - Gambas networking component
gambas3-gb-net-curl - Gambas advanced networking component
gambas3-gb-net-pop3 - Gambas POP3 client implementation
gambas3-gb-net-smtp - Gambas smtp protocol component
gambas3-gb-openal - Gambas OpenAL component
gambas3-gb-opengl - Gambas OpenGL component
gambas3-gb-opengl-glsl - Gambas OpenGL component: GL Shading Language subcomponent
gambas3-gb-opengl-glu - Gambas OpenGL utility
gambas3-gb-opengl-sge - Gambas SDL Game Engine
gambas3-gb-openssl - Gambas OpenSSL component
gambas3-gb-option - Gambas option component
gambas3-gb-pcre - Gambas regexp component
gambas3-gb-pdf - Gambas pdf component
gambas3-gb-poppler - Gambas poppler component
gambas3-gb-qt5 - Gambas Qt5 GUI component
gambas3-gb-qt5-ext - Gambas extended Qt GUI component
gambas3-gb-qt5-opengl - Gambas OpenGL component with QT5 toolkit
gambas3-gb-qt5-wayland - Gambas Qt5 Wayland component
gambas3-gb-qt5-webkit - Gambas WebKit component
gambas3-gb-qt5-webview - Gambas Qt5 Webview component
gambas3-gb-qt5-x11 - Gambas Qt5 X11 component
gambas3-gb-report - Gambas report component
gambas3-gb-report2 - Gambas report2 component
gambas3-gb-scanner - Gambas scanner component
gambas3-gb-sdl - Gambas SDL component
gambas3-gb-sdl-sound - Gambas SDL sound component
gambas3-gb-sdl2 - Gambas SDL2 component
gambas3-gb-sdl2-audio - Gambas SDL2 audio component
gambas3-gb-settings - Gambas utilities class
gambas3-gb-signal - Gambas OS signal library
gambas3-gb-term - Terminal manager for Gambas
gambas3-gb-term-form - Gambas GUI terminal form component
gambas3-gb-util - This component provides many useful utility methods or classes
gambas3-gb-util-web - This component provides many utilities useful for web applications
gambas3-gb-v4l - Gambas video for Linux component
gambas3-gb-vb - Gambas Visual Basic(tm) compatibility component
gambas3-gb-web - Gambas CGI for web applications
gambas3-gb-web-feed - Gambas web feed parser and generator
gambas3-gb-web-form - Gambas web application component
gambas3-gb-web-gui - Gambas web application GUI component
gambas3-gb-xml - Gambas XML component
gambas3-gb-xml-html - Gambas HTML component
gambas3-gb-xml-rpc - Gambas RPC component
gambas3-gb-xml-xslt - Gambas XSLT component
gambas3-ide - Visual development environment for the Gambas programming language
gambas3-runtime - Gambas runtime interpreter
gambas3-scripter - Gambas scripter
gambas3-gb-gui-opengl - transitional package
gambas3-gb-gui-qt - transitional package
gambas3-gb-gui-qt-webkit - transitional package
gambas3-gb-gui-trayicon - transitional package

If it STILL fails (ps, it's not normally this much trouble unless you broke something) you may need a complete removal by deleting any residual files like this
sudo apt purge gambas3*
sudo rm -f /usr/bin/gb*3 /usr/bin/gambas3 /usr/bin/gambas3.gambas
sudo rm -rf /usr/lib/gambas3
sudo rm -rf /usr/share/gambas3
sudo rm -rf ~/.local/share/gambas3

then re-install
If at first you don't succeed , try doing something differently.
BruceS
User avatar
cogier
Site Admin
Posts: 1158
Joined: Wednesday 21st September 2016 2:22pm
Location: Guernsey, Channel Islands

Re: gbr3: unable to load component: gb.gui

Post by cogier »

To use Synaptic:-

Open Synaptic, click on 'Search', enter 'gambas3' and click on Search.
Image

When the search is complete, click on any of the items and select all with [Ctrl]+A. Now right click and select "Mark for complete removal". Now click "Apply".
Image

Once that's done, run the following command in Terminal

Code: Select all

sudo add-apt-repository -y ppa:gambas-team/gambas3 && sudo apt-get update && sudo apt-get -y install gambas3
Post Reply