Closed AstraLuma closed 7 years ago
Does this occur when you attempt to use qt?
On Feb 23, 2017 2:31 AM, "Jamie Bliss" notifications@github.com wrote:
WARNING:webview.gtk:PyGObject is not found
Traceback (most recent call last):
File "/home/astronouth7303/.virtualenvs/smol/lib/python3.6/site-packages/webview/gtk.py",
line 16, in
I think it's because the ImportError isn't reraised.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/r0x0r/pywebview/issues/84, or mute the thread https://github.com/notifications/unsubscribe-auth/ABelWfIbQkCNbadMuYxBfq3CwUQ4Q5w-ks5rfNNjgaJpZM4MJYey .
I'm seeing the same problem. In gtk.py if the import fails, the exception is not rereaised so the rest of gtk.py is executed and the fails when it gets to Gdk since it's undefined. In order for the init.py code to fall back to trying qt for Linux platforms you need to rereaise the import exception in gtk.py.
I have removed exception handling in the GTK module. The problem should be gone now. The fix is in the master branch.
I think it's because the
ImportError
isn't reraised.