import problems in packages

Peter Hansen peter at
Wed Sep 28 20:28:14 CEST 2005

Stéphane Ninin wrote:
> Traceback (most recent call last):
>   File "", line 8, in ?
>     main()
>   File "", line 5, in main
>     handler = HandlerFactory().makeHandler(command)
>   File "c:\ROOT\Handlers\", line 6, in HandlerFactory
>     import Handlers.Default.HandlerFactory
> ImportError: No module named Default.HandlerFactory

Are you sure that's right?  You asked it to import 
Handlers.Default.HandlerFactory but it is apparently importing just 
Default.HandlerFactory instead?  This seems unexpected to me, though 
perhaps it can happen in certain situations.  It's a hint, anyway.

Are the earlier four lines which you did show us relevant?  (i.e. if 
that's line six, what was on lines one, two, three, and four?)


More information about the Python-list mailing list