Hi, I’m trying tu use the RPA.Dialogs library but when I executes my task, I have this error message: You must have either QT or GTK with Python extensions installed in order to use pywebview.
I think my conda packages are not well set.
Do you know what dependencies I should install in order to use RPA.Dialogs?
Can you share your conda.yaml -file and what OS are you running on. Dialogs depend on some system-level stuff to be able to view the dialogs and these have been bothering us on different platforms.
One thing to avoid here is to have duplicates in the conda and pip sections.
Pip just basically overwrites dependencies quite brutally and can break things.
So I’d first drop the pyqt5, pywebview and pywebview[qt] as you should be getting those already in the dependencies section.
On Linux the dialogs need either Qt or GTK as the error says but I cannot directly see why the qt from conda-forge is not enough… We have limited our Linux testing to Ubuntu as there are so many options, so I do not have info on Debian side.
But I would first drop the duplicates as taking those could easily result in a broken Qt setup for example.
BR, Kari
Would also like to know what the final solution was.
Having the same issue on Manjaro (Arch) with xfce (no problems on Mac OS).
I also tried adding pycairo/pyobject/gtk3 to the conda.yaml, no difference. Didn’t yet have time to dig deeper.
Running standalone GTK apps with python outside of the Lab (such as this one) works fine though.
The guides around pywebview for Linux are guide complex:
…the key thing to remember is the pip does not care about “what came before” so by adding pywebview dependencies after rpaframework can and will wipe out the dependencies loaded by rpaframework… potentially causing version mismatches.