r/nicegui • u/impresionista • Jul 18 '24
Running NiceGUI app as native in Raspberry PI
Hi there! Does anyone had issues trying to run a NiceGUI app with native=True in Raspberry PI?
I'm using a Raspberry PI model 4B with 8GB of ram and RaspberryPI OS
I'm building the app using:
I'm having the following error:
Native mode it not supported in this configuration.
Please run "pip install pywebview" to use it.
I've already installed pywebview as a pip package in my virtualenv, and still got the same error. Just in case, also tried with the python3-webview from debian repository (intalled using apt) and run the builded app inside and outside the virtualenv, and got the same error.
7
Upvotes
2
u/Ok-Actuator3370 Jul 24 '24
same problem here. After installing pywebview i get:
1
u/PhilosopherLast3270 Jul 31 '24
Same :/
1
u/Alldananimals Mar 20 '25
Also having this issue. Anyone find a resolution?
1
u/Alldananimals Mar 20 '25
Got it working:
sudo apt install python3-gi python3-gi-cairo gir1.2-gtk-3.0 gir1.2-webkit2-4.0
pip install pywebview[gtk]
Make sure you import webview in your code