segfault with imp.load_module()

Rob Brown-Bayliss rob at zoism.org
Sat Apr 5 11:48:33 EST 2003


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.






-- 

*  Rob Brown-Bayliss
*  =================	
*      zoism.org







More information about the Python-list mailing list