enaml icon indicating copy to clipboard operation
enaml copied to clipboard

ImportError when trying to import enaml file from inside Python egg

Open gabrielcnr opened this issue 9 years ago • 2 comments

ImportError exception is raised when trying to import an enaml file from inside a Python egg.

image

I tried to create a minimal project that reproduces the issue: https://github.com/gabrielcnr/enaml_egg

I also quickly patched the locate_module() method inside the import_hooks.py module (added else statement from line 236) and apparently it resolves the issue. I'm not sure how efficient that is though...

image

gabrielcnr avatar Jun 25 '15 21:06 gabrielcnr

I pushed the changes to a branch on my fork.

https://github.com/gabrielcnr/enaml/commit/592d7b787015fef170b370c360eca9e87af8987d

gabrielcnr avatar Jun 25 '15 21:06 gabrielcnr

Is this still an issue ? You removed the repo demonstrating the issue so I cannot easily investigate.

MatthieuDartiailh avatar Mar 11 '18 18:03 MatthieuDartiailh