diff --git a/modules/hrudelin_1_init.py b/modules/hrudelin_1_init.py
index 20762d809aaefbd5d670c163c9598ea5cef272be..804dff1709e57a8bf38d7d4a2f27525073e2fe1b 100755
--- a/modules/hrudelin_1_init.py
+++ b/modules/hrudelin_1_init.py
@@ -45,16 +45,6 @@ except Exception as e:
     print('or if you don\'t have superuser access:\n')
     print('%spip3 install dbf%s\n' % (COLOR_GREEN, COLOR_RESET))
 
-try:
-    from tqdm import tqdm
-except Exception as e:
-    print('!!! %s tqdm python3 module not found !!%s\n' % (COLOR_RED, COLOR_RESET))
-    print('On Debian/Ubuntu/Linux Mint you can install it with:\n')
-    print('%ssudo apt install python3-tqdm%s\n' % (COLOR_GREEN, COLOR_RESET))
-    print('or if you don\'t have superuser access:\n')
-    print('%spip3 install tqdm%s\n' % (COLOR_GREEN, COLOR_RESET))
-    sys.exit(1)
-
 MY_ABS_PATH=os.path.abspath(__file__)
 MY_DIR=os.path.dirname(MY_ABS_PATH)
 DATA_PATH=os.path.join(MY_DIR, '..', 'data')
@@ -349,6 +339,16 @@ if __name__ == '__main__':
     from progressColors import *
     from parallel import buildGrassEnv
     from ogr2ogr import main as ogr2ogrMain
+    try:
+        from tqdm import tqdm
+    except Exception as e:
+        print('!!! %s tqdm python3 module not found !!%s\n' % (COLOR_RED, COLOR_RESET))
+        print('On Debian/Ubuntu/Linux Mint you can install it with:\n')
+        print('%ssudo apt install python3-tqdm%s\n' % (COLOR_GREEN, COLOR_RESET))
+        print('or if you don\'t have superuser access:\n')
+        print('%spip3 install tqdm%s\n' % (COLOR_GREEN, COLOR_RESET))
+        sys.exit(1)
+
     parms_file = 'hrudelin_config.cfg'
     if len(sys.argv) > 1:
         parms_file = sys.argv[1]