From e51ae6bdaa9cbcbf9a3b71bbefd68a6755d94030 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sat, 19 Dec 2015 20:17:30 +0100 Subject: Add `gi.require_version('Poppler', '0.18')` to silence warnings Closes https://labs.riseup.net/code/issues/10550 Also known as "pygi is emitting a lot of warnings" --- libmat/office.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libmat') diff --git a/libmat/office.py b/libmat/office.py index c3a9811..e2b1915 100644 --- a/libmat/office.py +++ b/libmat/office.py @@ -11,6 +11,8 @@ import zipfile try: import cairo + import gi + gi.require_version('Poppler', '0.18') from gi.repository import Poppler except ImportError: logging.info('office.py loaded without PDF support') -- cgit v1.3