GTK 3 and missing AppIndicator3.typelib

Aleksander Alekseev afiskon at
Mon Jun 20 20:39:43 UTC 2016


I'm trying to make this code work on FreeBSD:

It works well on Ubuntu but on FreeBSD it fails with following error:

Traceback (most recent call last):
  File "<frozen importlib._bootstrap>", line 2158, 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 "./", line 11, in <module>
    from gi.repository import AppIndicator3 as AI
  File "/usr/local/lib/python3.4/site-packages/gi/", line
100, in find_module 'introspection typelib not found' % namespace)
ImportError: cannot import name AppIndicator3, introspection typelib
not found

I'm not an expert in GTK but if I'm not mistaken the problem is that
AppIndicator3*.typelib is missing in /usr/local/lib/girepository-1.0/
directory. I discovered that this directory is provided by gtk3 port
but it has no option to include or exclude AppIndicator.

Any hints what to do next?

Best regards,
Aleksander Alekseev

More information about the freebsd-questions mailing list