From owner-freebsd-questions@freebsd.org Mon Jun 20 20:39:42 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E572DAC426B for ; Mon, 20 Jun 2016 20:39:42 +0000 (UTC) (envelope-from afiskon@devzen.ru) Received: from relay08.nicmail.ru (relay08.nicmail.ru [195.208.6.4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 97B901BFF for ; Mon, 20 Jun 2016 20:39:41 +0000 (UTC) (envelope-from afiskon@devzen.ru) Received: from [109.70.25.215] (port=54613 helo=portege) by f17.mail.nic.ru with esmtp (Exim 5.55) (envelope-from ) id 1bF5tk-000GIU-65 for freebsd-questions@freebsd.org; Mon, 20 Jun 2016 23:34:20 +0300 Received: from [188.123.231.37] (account afiskon@devzen.ru HELO portege) by proxy02.mail.nic.ru (Exim 5.55) with id 1bF5tk-0006fE-QP for freebsd-questions@freebsd.org; Mon, 20 Jun 2016 23:34:20 +0300 Date: Mon, 20 Jun 2016 23:34:18 +0300 From: Aleksander Alekseev To: freebsd-questions@freebsd.org Subject: GTK 3 and missing AppIndicator3.typelib Message-ID: <20160620233418.26d4e55d@portege> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jun 2016 20:39:43 -0000 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 "", 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 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