AtsushiSakai/PythonRobotics

ModuleNotFoundError: No module named 'utils'

rosrookie opened this issue · 3 comments

Hi, when I git clone the whole project. and installed all requirements. And when I run with mpc. error happends:

ModuleNotFoundError: No module named 'utils'

I do not change anything, just clone and run, then error happends.

it seems like when I change the order, then worked.

before:

import matplotlib.pyplot as plt
import cvxpy
import math
import numpy as np
import sys
import pathlib
from utils.angle import angle_mod
sys.path.append(str(pathlib.Path(__file__).parent.parent.parent))

from PathPlanning.CubicSpline import cubic_spline_planner

after:

import matplotlib.pyplot as plt
import cvxpy
import math
import numpy as np
import sys
import pathlib
sys.path.append(str(pathlib.Path(__file__).parent.parent.parent))

from PathPlanning.CubicSpline import cubic_spline_planner
from utils.angle import angle_mod

Find the same problem in lqr_speed_steer_control.py