r/exercism • u/Leweth • Sep 15 '22
Help
I just started the Python track on this website, the code works just fine in PyCharm but is wrong here, any ideas?
This is the error message I get:
ImportError while importing test module '.mnt.exercism-iteration.lasagna_test.py'.
Hint: make sure your test modules.packages have valid Python names.
Traceback:
.mnt.exercism-iteration.lasagna_test.py:6: in <module>
from lasagna import (EXPECTED_BAKE_TIME,
E ImportError: cannot import name 'EXPECTED_BAKE_TIME' from 'lasagna' (.mnt.exercism-iteration.lasagna.py)
During handling of the above exception, another exception occurred:
.usr.local.lib.python3.10.importlib.__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
.mnt.exercism-iteration.lasagna_test.py:23: in <module>
raise ImportError("In your 'lasagna.py' file, we can not find or import the"
E ImportError: In your 'lasagna.py' file, we can not find or import the function named 'EXPECTED_BAKE_TIME()'. Did you mis-name or forget to define it?
1
Upvotes
View all comments
Show parent comment
1
u/Yurim Sep 19 '22
I'm glad I could help. Have fun with the exercises!
And if you use the CLI to download the exercise and solve it on your computer you can upload incorrect or incomplete solutions, request mentoring, and ask for clarification or help.
Cheers!