Should use sys.path.append('../common'). sys.path.append('../') import common.utils is error. For the common is not a package. If you add a __init__.py in the directory common, above code will work.