bardhh / cbfkit

Toolbox for Robotics Control
BSD 3-Clause "New" or "Revised" License
43 stars 4 forks source link

ModuleNotFoundError: No module named 'constants' #1

Closed cookiegg closed 5 months ago

cookiegg commented 5 months ago

Hello, I encountered an error when running the tutorials/simulate_new_control_system.ipynb notebook.

ModuleNotFoundError: No module named 'constants'

The error occurred at the line from tutorials import van_der_pol_oscillator. Upon inspection, I found that the constants.py file was empty. After commenting out the code

from constants import *

in the generate_model.py script, I restarted the Jupyter kernel and regenerated the tutorial files. The error was no longer occurring.

6lackmitchell commented 5 months ago

Hi @cookiegg -- thank you for bringing this issue to our attention! I've reviewed it and found that it has been fixed in a previous commit. The problem should no longer occur if you pull in the latest commit, but if that is not the case please let me know.

cookiegg commented 5 months ago

Thanks for the quick fix! Everything's working great now.