The infinite loop was the correct idea (I guess) (at least I reproduce the bug when setting my pythonpath that way) The easiest is likely to change your pythonpath, or you can use the following patch: Cheers, Olivier === modified file 'models/__init__.py' --- models/__init__.py 2021-01-29 22:04:24 +0000 +++ models/__init__.py 2021-03-29 21:23:51 +0000 @@ -47,6 +47,8 @@ pass if 'PYTHONPATH' in os.environ: for p in os.environ['PYTHONPATH'].split(':'): + if not p: + continue new_name = os.path.join(p, name) try: return load_model(new_name, decay) > On 29 Mar 2021, at 23:19, Olivier Mattelaer