segfault with imp.load_module()
Michael Hudson
mwh at python.net
Sun Apr 6 13:10:47 EDT 2003
Rob Brown-Bayliss <rob at zoism.org> writes:
> On Sun, 2003-04-06 at 01:23, Neal Norwitz wrote:
>
> > What version of python, what platform, what compiler, what options?
> > Assuming item = 'oda' this code works for me.
>
> Redhat 8
> [rob at musicbox rob]$ python
> Python 2.2.1 (#1, Aug 30 2002, 12:15:30)
> [GCC 3.2 20020822 (Red Hat Linux Rawhide 3.2-4)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>
>
> If item = "abc" then I get (as expected) ImportError: No module named
> abc
>
> So any way, I did some more playing and my module had a line:
>
> from bhh import verbose
>
> But the bhh module is not in the path, it's in the parent of the
> ./items/ directory. If I remove that line then there is no segmentation
> fault.
I'm not sure I follow (which may be my fault) but could you come up
with a small, self-contained example? This certainly looks like a bug
from here.
Cheers,
M.
--
This is an off-the-top-of-the-head-and-not-quite-sober suggestion,
so is probably technically laughable. I'll see how embarassed I
feel tomorrow morning. -- Patrick Gosling, ucam.comp.misc
More information about the Python-list
mailing list