diff --git a/src/common/gajim.py b/src/common/gajim.py
index 82e125e93b20485ad187bd2029b396c2cf1bac3a..54fcd3ac1b855100318f9d45ac4c97d3dfbcc598 100644
--- a/src/common/gajim.py
+++ b/src/common/gajim.py
@@ -25,7 +25,13 @@ import config
 from contacts import Contacts
 from events import Events
 
-import defs
+try:
+	import defs
+except ImportError:
+	print >> sys.stderr, '''defs.py is missing!
+If you start gajim from svn, do:
+$ sh autogen.sh'''
+	sys.exit(1)
 
 interface = None # The actual interface (the gtk one for the moment)
 config = config.Config()