segfault with imp.load_module()

Neal Norwitz neal at metaslash.com
Mon Apr 7 17:27:28 EDT 2003


On Sun, Apr 06, 2003 at 04:48:33AM +1200, Rob Brown-Bayliss wrote:
> 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.

As Michael mentioned, if you can provide the source to a complete
example, we can probably fix the bug.  Please open a SF bug report.

Neal





More information about the Python-list mailing list