Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6766811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:52:33+00:00 2026-05-26T14:52:33+00:00

When I try to import Webkit from gi.repository , it gives an ImportError :

  • 0

When I try to import Webkit from gi.repository, it gives an ImportError:

from gi.repository import Webkit
ERROR:root:Could not find any typelib for Webkit
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name Webkit

What am I doing wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T14:52:34+00:00Added an answer on May 26, 2026 at 2:52 pm

    Your error seems a typo and the library is not found for that.

    You have to put “WebKit” instead of “Webkit”.

    Additionaly if you use Ubuntu check the library existence with:

    $ locate girepository | grep WebKit
    /usr/lib/girepository-1.0/WebKit-3.0.typelib
    

    If doesn’t exist you need install the package gir1.2-webkit-3.0:

    # apt-get install gir1.2-webkit-3.0 
    

    Then on python script:

    import gi
    gi.require_version('WebKit', '3.0')
    from gi.repository import WebKit
    

    Note: For Ubuntu 17.10 or later, the library seems called WebKit2. Which could be installed:

    $sudo apt-get install gir1.2-webkit2-4.0
    

    And found in:

    $ locate girepository | grep WebKit
    /usr/lib/x86_64-linux-gnu/girepository-1.0/WebKit2-4.0.typelib
    

    You can use in Python like:

    import gi
    gi.require_version('WebKit2', '4.0')
    from gi.repository import WebKit2
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Take Django for instance, in manage.py : try: import settings except ImportError: sys.stderr.write(Error: Can't
A lot of our modules start with: try: import json except ImportError: from django.utils
I have a problem using the SSIS. I try to import data from database
I am currently using PIL. from PIL import Image try: im = Image.open(filename) #
I've included: #import QuartzCore/QuartzCore.h but when I try to build, I get the error
What does this code mean? try: import thread except ImportError: del _sys.modules[__name__]#why raise But
Given code like this in somemod.py : try: Import cStringIO as StringIO except ImportError:
I try to import sql script, generated with Server Management Studio, into SQL Compact
I try to import a .jar lib. Add in code, I import it with
I have installed Numpy using ActivePython and when I try to import numpy module,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.