Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named 'constants' #1

Closed
cookiegg opened this issue Apr 12, 2024 · 2 comments
Closed

ModuleNotFoundError: No module named 'constants' #1

cookiegg opened this issue Apr 12, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@cookiegg
Copy link

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.

@bardhh bardhh added the bug Something isn't working label Apr 12, 2024
@6lackmitchell
Copy link
Collaborator

6lackmitchell commented Apr 12, 2024

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants