From 7887f52ed7026c3cf659b07eb31df8ad759c181a Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Mon, 23 Dec 2013 16:56:58 +0100 Subject: [PATCH] Gajim need latest nbxmpp version --- src/gajim.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/gajim.py b/src/gajim.py index 1fe186819..ad20cf2d4 100644 --- a/src/gajim.py +++ b/src/gajim.py @@ -68,6 +68,15 @@ except ImportError: print('Gajim needs python-nbxmpp to run. Quiting...') sys.exit() +try: + from distutils.version import LooseVersion as V + if V(nbxmpp.__version__) < V("0.3"): + print 'Gajim needs python-nbxmpp > 0.3 to run. Quiting...' + sys.exit() +except: + print 'Gajim needs python-nbxmpp > 0.3 to run. Quiting...' + sys.exit() + #from common import demandimport #demandimport.enable() #demandimport.ignore += ['GObject._gobject', 'libasyncns', 'i18n',