Forum in maintenance, we will back soon π
Cost Estimation
Sir Hassan,Β
It's me again, Shireen.Β
I am currently in the lesson about Cost Estimation.Β
I have created a helper module, both the files are within the same directory, but then there is a message on 'attribute error'.
Attached is the pdf for your reference.Β
Appreciate your advice. Thanks again, Sir!
Shireen
@shireen168 could you create a Github account and upload your project there and share it? I'm not seeing an issue but if I had the code I could try it out. Maybe changing the import of the helpers module to:
from . import helpers
might help.
Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack
@ssadvisor thanks for your reply π
I just realized the problem was due to me not saving the module helper.py after making changes, hence the error message popped up when I was trying to run it. What a silly mistake >.<
Anyway, thanks again π
@shireen168 that issue bites me quite often and I've been programming for more than 3 decades. 🙃
Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack
@shireen168 Thank you for sharing this solution. I experienced the same problem, searched for the solution in several posts all day but failed. It turns out the solution was just forgetting to save the module after editing. 😆Β
@heru hahahaβ¦ glad that this post helps. Letβs learn and continue to grow together 😎🙌