module import error, what's wrong?

S

smith jack

from common.URLTool import URLTool
tool = URLTool()

Traceback (most recent call last):
File "E:\workspace\url\test.py", 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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top