I have found a workaround (hack) to my problem. I had to modify:

INVALID_MODULES = set(('', 'gluon', 'applications', 'custom_import'))

to

INVALID_MODULES = set(('', 'gluon', 'applications', 'custom_import', 'nltk', 
'collocations', 'numpy', 'testing'))

(there were more modules affected by the same problem). This is ugly, so I 
hope we can find a real fix for this.

It seems the custom_import_install:

def custom_import_install():
    if __builtin__.__import__ == NATIVE_IMPORTER:
        INVALID_MODULES.update(sys.modules.keys())
        __builtin__.__import__ = custom_importer

Is not working as expected?

-- 



Reply via email to