Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • pygobject pygobject
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 279
    • Issues 279
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 16
    • Merge requests 16
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOME
  • pygobjectpygobject
  • Issues
  • #213

Closed
Open
Created May 03, 2018 by Alexandru Băluț@alebDeveloper

Cannot import gi.repository.* on Python 3.6.5

On Mac/Homebrew:

$ python3 -c "from gi.repository import Gst"                
Traceback (most recent call last):
  File "<frozen importlib._bootstrap>", line 888, in _find_spec
AttributeError: 'DynamicImporter' object has no attribute 'find_spec'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/local/lib/python3.6/site-packages/gi/importer.py", line 128, in find_module
    'introspection typelib not found' % namespace)
ImportError: cannot import name Gst, introspection typelib not found


$ ls /usr/local/lib/python3.6/site-packages/gi/overrides 
GIMarshallingTests.py		Gdk.py				GstPbutils.py			__init__.py			keysyms.py
GLib.py				Gio.py				Gtk.py				__pycache__
GObject.py			Gst.py				Pango.py			_gi_gst.cpython-36m-darwin.so


$ python3 --version
Python 3.6.5
Edited May 03, 2018 by Alexandru Băluț
Assignee
Assign to
Time tracking