I do not know why that is.
For now you can also do:

from gluon.custom_import import INVALID_MODULES
for key in ('nltk', 'collocations', 'numpy', 'testing'):
   INVALID_MODULES.add(key)


On Monday, 14 January 2013 06:12:47 UTC-6, Daniel Gonzalez wrote:
>
> 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