Pentaho

 View Only

 Problem with PDI 9.3 CE and Ubuntu 22.04: "SWT on GTK 2.x detected. It is recommended to use SWT on GTK 3.x and Webkit2 API."

Teresa Fasano's profile image
Teresa Fasano posted 05-23-2022 06:17
Hi,
I installed PDI 9.3 CE on ubuntu 22.04.

When I run ./spoon.sh I get:
##################################################################################################### 
WARNING: no libwebkitgtk-1.0 detected, some features will be unavailable
Consider installing the package with apt-get or yum.
e.g. 'sudo apt-get install libwebkitgtk-1.0-0'
##################################################################################################### 

and

[org.pentaho.di.ui.util.EnvironmentUtils@1f43cab7 - ERROR (version 9.3.0.0-428, build 9.3.0.0-428 from 2022-04-12 04.56.25 by buildguy): Could not open a browser
org.pentaho.di.ui.util.EnvironmentUtils@1f43cab7 - ERROR (version 9.3.0.0-428, build 9.3.0.0-428 from 2022-04-12 04.56.25 by buildguy): org.eclipse.swt.SWTError: No more handles because no underlying browser available.
org.pentaho.di.ui.util.EnvironmentUtils@1f43cab7 - SWT on GTK 2.x detected. It is recommended to use SWT on GTK 3.x and Webkit2 API.]

libwebkitgtk-1.0 is not present on this version of ubuntu because is an obsolete library so it is not possible to install it.

I edited the spoon.sh file and set:
SWT_GTK3 = 1

Unfortunately, I realized that if I try to select a file (for example, cvs or txt) in a "Text File Input" when I click on the "OK" button it doesn't do anything, so it doesn't work.

Do I need to install a specific library?

Thanks,
Teresa
Andrew Cave's profile image
Andrew Cave
Hi Teresa

Per https://help.hitachivantara.com/Documentation/Pentaho/9.3/Setup/Components_Reference "Linux requires libwebkitgtk-1.0"

To get it

1. sudo nano /etc/apt/sources.list
2. Add this entry to the file and save:

deb http://cz.archive.ubuntu.com/ubuntu bionic main universe

  1. sudo apt-get update

  2. sudo apt-get install libwebkitgtk-1.0-0 

Teresa Fasano's profile image
Teresa Fasano
Hi, Andrew,
I had already tried to do these operations but nothing changes.
The OK button does not work after selecting a file: I click but the file is not selected.
Teresa Fasano's profile image
Teresa Fasano
Sorry Andrew for the previous answer.
I had set the parameter export SWT_GTK3=1 in the spoon.sh file. 
I had changed this parameter for some tests I had done.
I have now reset the value to 0 as originally and it seems to work.
Thanks a lot.