It had instructions for a solution to a WebKit problem instead of a Gdk problem, but it seemed similar.
I copied the instructions and:
- replaced locate girepository | grep WebKit with locate girepository | grep Gdk
- replaced sudo apt-get install gir1.2-webkit-3.0 with sudo apt-get install gir1.2-gdkpixbuf-2.0
- replaced gi.require_version('WebKit', '3.0') with gi.require_version('Gdk', '2.0')
- replaced from gi.repository import WebKit with from gi.repository import Gdk
After I was done doing that, I ran sudo apt-get update to hopefully make sure the system knew it got something new and exciting.
When I tried to run my script again, I got the same error as in step (8) above.
I uninstalled the gir1.2-gdkpixbuf-2.0 package and got rid of the extra lines I'd added to my script, and I guess I'll wait to try it again when someone suggests something new to try in here.
I found this Stack Overflow page:
http:// stackoverflow. com/questions/ 7823972/ cant-import- webkit- from-gi- repository
It had instructions for a solution to a WebKit problem instead of a Gdk problem, but it seemed similar.
I copied the instructions and: gdkpixbuf- 2.0 version( 'WebKit' , '3.0') with gi.require_ version( 'Gdk', '2.0')
- replaced locate girepository | grep WebKit with locate girepository | grep Gdk
- replaced sudo apt-get install gir1.2-webkit-3.0 with sudo apt-get install gir1.2-
- replaced gi.require_
- replaced from gi.repository import WebKit with from gi.repository import Gdk
After I was done doing that, I ran sudo apt-get update to hopefully make sure the system knew it got something new and exciting.
When I tried to run my script again, I got the same error as in step (8) above.
I uninstalled the gir1.2- gdkpixbuf- 2.0 package and got rid of the extra lines I'd added to my script, and I guess I'll wait to try it again when someone suggests something new to try in here.