Blog <-

PyWebkitGTK: 'module' object has no attribute 'WebView'

If you're working with PyWebkitGTK, and you get the following error:

Traceback (most recent call last):
  File "./", line 7, in 
    import webkit
  File "/home/todsah/", line 18, in 
    class BrowserPage(webkit.WebView):
AttributeError: 'module' object has no attribute 'WebView'

… make sure you haven't named your script '', and there is no other script with the same name in that directory. Also delete any webkit.pyc pic files. Do'h!

Comments are closed.