v1.2 - UI tool for manage Espressif ESP32 microcontrollers with embedded MicroPython for MacOS, Windows and Linux: mini IDE, files manager, REPL, real time dashboards (sys/net), advanced features (gpio/mp3/leds/...)
(venv) chhe@pop-os:~/ESP32-MPY-Jama$ python3 src/app.py -g gtk
Starts ESP32 MPY-Jama v1.2.0 on Linux
[pywebview] GTK cannot be loaded
Traceback (most recent call last):
File "/home/chhe/ESP32-MPY-Jama/venv/lib/python3.10/site-packages/webview/platforms/gtk.py", line 26, in
gi.require_version('WebKit2', '4.1')
File "/home/chhe/ESP32-MPY-Jama/venv/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.1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/chhe/ESP32-MPY-Jama/venv/lib/python3.10/site-packages/webview/guilib.py", line 25, in import_gtk
import webview.platforms.gtk as guilib
File "/home/chhe/ESP32-MPY-Jama/venv/lib/python3.10/site-packages/webview/platforms/gtk.py", line 30, in
gi.require_version('WebKit2', '4.1')
File "/home/chhe/ESP32-MPY-Jama/venv/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.1
have tried
sudo apt-get install libwebkit2gtk-4.0-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libwebkit2gtk-4.0-dev is already the newest version (2.42.4-0ubuntu0.22.04.1).
0 upgraded, 0 newly installed, 0 to remove and 34 not upgraded.
and
(venv) chhe@pop-os:~/ESP32-MPY-Jama$ sudo apt-get -y install libwebkit2gtk-4.1-0
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
libjavascriptcoregtk-4.1-0 libsoup-3.0-0 libsoup-3.0-common
Suggested packages:
gstreamer1.0-libav gstreamer1.0-plugins-bad
The following NEW packages will be installed:
libjavascriptcoregtk-4.1-0 libsoup-3.0-0 libsoup-3.0-common libwebkit2gtk-4.1-0
0 upgraded, 4 newly installed, 0 to remove and 34 not upgraded.
Need to get 30.1 MB of archives.
After this operation, 106 MB of additional disk space will be used.
Get:1 http://apt.pop-os.org/ubuntu jammy-security/main amd64 libjavascriptcoregtk-4.1-0 amd64 2.42.4-0ubuntu0.22.04.1 [8,126 kB]
Get:2 http://apt.pop-os.org/ubuntu jammy-updates/universe amd64 libsoup-3.0-common all 3.0.7-0ubuntu1 [62.1 kB]
Get:3 http://apt.pop-os.org/ubuntu jammy-updates/universe amd64 libsoup-3.0-0 amd64 3.0.7-0ubuntu1 [278 kB]
Get:4 http://apt.pop-os.org/ubuntu jammy-security/universe amd64 libwebkit2gtk-4.1-0 amd64 2.42.4-0ubuntu0.22.04.1 [21.7 MB]
Fetched 30.1 MB in 3s (11.1 MB/s)
Selecting previously unselected package libjavascriptcoregtk-4.1-0:amd64.
(Reading database ... 300971 files and directories currently installed.)
Preparing to unpack .../libjavascriptcoregtk-4.1-0_2.42.4-0ubuntu0.22.04.1_amd64.deb ...
Unpacking libjavascriptcoregtk-4.1-0:amd64 (2.42.4-0ubuntu0.22.04.1) ...
Selecting previously unselected package libsoup-3.0-common.
Preparing to unpack .../libsoup-3.0-common_3.0.7-0ubuntu1_all.deb ...
Unpacking libsoup-3.0-common (3.0.7-0ubuntu1) ...
Selecting previously unselected package libsoup-3.0-0:amd64.
Preparing to unpack .../libsoup-3.0-0_3.0.7-0ubuntu1_amd64.deb ...
Unpacking libsoup-3.0-0:amd64 (3.0.7-0ubuntu1) ...
Selecting previously unselected package libwebkit2gtk-4.1-0:amd64.
Preparing to unpack .../libwebkit2gtk-4.1-0_2.42.4-0ubuntu0.22.04.1_amd64.deb ...
Unpacking libwebkit2gtk-4.1-0:amd64 (2.42.4-0ubuntu0.22.04.1) ...
Setting up libsoup-3.0-common (3.0.7-0ubuntu1) ...
Setting up libjavascriptcoregtk-4.1-0:amd64 (2.42.4-0ubuntu0.22.04.1) ...
Setting up libsoup-3.0-0:amd64 (3.0.7-0ubuntu1) ...
Setting up libwebkit2gtk-4.1-0:amd64 (2.42.4-0ubuntu0.22.04.1) ...
Processing triggers for libc-bin (2.35-0ubuntu3.6) ...
(venv) chhe@pop-os:~/ESP32-MPY-Jama$ python3 src/app.py -g gtk Starts ESP32 MPY-Jama v1.2.0 on Linux [pywebview] GTK cannot be loaded Traceback (most recent call last): File "/home/chhe/ESP32-MPY-Jama/venv/lib/python3.10/site-packages/webview/platforms/gtk.py", line 26, in
gi.require_version('WebKit2', '4.1')
File "/home/chhe/ESP32-MPY-Jama/venv/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.1
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/chhe/ESP32-MPY-Jama/venv/lib/python3.10/site-packages/webview/guilib.py", line 25, in import_gtk import webview.platforms.gtk as guilib File "/home/chhe/ESP32-MPY-Jama/venv/lib/python3.10/site-packages/webview/platforms/gtk.py", line 30, in
gi.require_version('WebKit2', '4.1')
File "/home/chhe/ESP32-MPY-Jama/venv/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.1
have tried
sudo apt-get install libwebkit2gtk-4.0-dev Reading package lists... Done Building dependency tree... Done Reading state information... Done libwebkit2gtk-4.0-dev is already the newest version (2.42.4-0ubuntu0.22.04.1). 0 upgraded, 0 newly installed, 0 to remove and 34 not upgraded.
and
(venv) chhe@pop-os:~/ESP32-MPY-Jama$ sudo apt-get -y install libwebkit2gtk-4.1-0 Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: libjavascriptcoregtk-4.1-0 libsoup-3.0-0 libsoup-3.0-common Suggested packages: gstreamer1.0-libav gstreamer1.0-plugins-bad The following NEW packages will be installed: libjavascriptcoregtk-4.1-0 libsoup-3.0-0 libsoup-3.0-common libwebkit2gtk-4.1-0 0 upgraded, 4 newly installed, 0 to remove and 34 not upgraded. Need to get 30.1 MB of archives. After this operation, 106 MB of additional disk space will be used. Get:1 http://apt.pop-os.org/ubuntu jammy-security/main amd64 libjavascriptcoregtk-4.1-0 amd64 2.42.4-0ubuntu0.22.04.1 [8,126 kB] Get:2 http://apt.pop-os.org/ubuntu jammy-updates/universe amd64 libsoup-3.0-common all 3.0.7-0ubuntu1 [62.1 kB] Get:3 http://apt.pop-os.org/ubuntu jammy-updates/universe amd64 libsoup-3.0-0 amd64 3.0.7-0ubuntu1 [278 kB] Get:4 http://apt.pop-os.org/ubuntu jammy-security/universe amd64 libwebkit2gtk-4.1-0 amd64 2.42.4-0ubuntu0.22.04.1 [21.7 MB] Fetched 30.1 MB in 3s (11.1 MB/s)
Selecting previously unselected package libjavascriptcoregtk-4.1-0:amd64. (Reading database ... 300971 files and directories currently installed.) Preparing to unpack .../libjavascriptcoregtk-4.1-0_2.42.4-0ubuntu0.22.04.1_amd64.deb ... Unpacking libjavascriptcoregtk-4.1-0:amd64 (2.42.4-0ubuntu0.22.04.1) ... Selecting previously unselected package libsoup-3.0-common. Preparing to unpack .../libsoup-3.0-common_3.0.7-0ubuntu1_all.deb ... Unpacking libsoup-3.0-common (3.0.7-0ubuntu1) ... Selecting previously unselected package libsoup-3.0-0:amd64. Preparing to unpack .../libsoup-3.0-0_3.0.7-0ubuntu1_amd64.deb ... Unpacking libsoup-3.0-0:amd64 (3.0.7-0ubuntu1) ... Selecting previously unselected package libwebkit2gtk-4.1-0:amd64. Preparing to unpack .../libwebkit2gtk-4.1-0_2.42.4-0ubuntu0.22.04.1_amd64.deb ... Unpacking libwebkit2gtk-4.1-0:amd64 (2.42.4-0ubuntu0.22.04.1) ... Setting up libsoup-3.0-common (3.0.7-0ubuntu1) ... Setting up libjavascriptcoregtk-4.1-0:amd64 (2.42.4-0ubuntu0.22.04.1) ... Setting up libsoup-3.0-0:amd64 (3.0.7-0ubuntu1) ... Setting up libwebkit2gtk-4.1-0:amd64 (2.42.4-0ubuntu0.22.04.1) ... Processing triggers for libc-bin (2.35-0ubuntu3.6) ...
simple solution
Commented out line
26 ,27 and 31 , 32 in
python3.10/site-packages/webview/platforms/gtk.py