Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Jun 2016 23:34:18 +0300
From:      Aleksander Alekseev <afiskon@devzen.ru>
To:        freebsd-questions@freebsd.org
Subject:   GTK 3 and missing AppIndicator3.typelib
Message-ID:  <20160620233418.26d4e55d@portege>

next in thread | raw e-mail | index | archive | help
Hello.

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

https://github.com/afiskon/py-gtk-example

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 "./gtk-example.py", line 11, in <module>
    from gi.repository import AppIndicator3 as AI
  File "/usr/local/lib/python3.4/site-packages/gi/importer.py", 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160620233418.26d4e55d>