Unable to import `importlib2.machinery`.

Issue #8 new
Manuel Vázquez Acosta
created an issue

The following error happens when trying to import import2.machinery:

>>> import importlib2.machinery
---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
<ipython-input-1-7f9c352c847c> in <module>()
----> 1 import importlib2.machinery

/home/manu/src/github.com/basic/importlib2/importlib2/machinery.py in <module>()
     23 
     24 
---> 25 _fixers.fix_importlib(globals())

/home/manu/src/github.com/basic/importlib2/importlib2/_fixers/__init__.py in fix_importlib(ns)
    382             del ns['FrozenImporter'].module_repr
    383             del ns['WindowsRegistryFinder'].find_module
--> 384             del ns['_LoaderBasics'].load_module
    385             del ns['FileLoader'].load_module
    386             #del ns['ExtensionFileLoader'].load_module

KeyError: '_LoaderBasics'

Comments (5)

  1. Log in to comment