module import error, what's wrong?

Gelonida N gelonida at
Mon Aug 8 03:00:10 CEST 2011

On 08/08/2011 02:45 AM, smith jack wrote:
> from common.URLTool import URLTool

could it be that you meant
from common import URLTool

As I don't know the module 'common' I am just guessing

> tool = URLTool()
> Traceback (most recent call last):
>   File "E:\workspace\url\", line 7, in ?
>     from common.URLTool import URLTool
> ImportError: No module named common.URLTool
> URLTools is a class write by myself, it works well ,but cannot be
> imported in the other package, what's wrong?

More information about the Python-list mailing list