No module name datetime python script

hi all,
I'm trying running python code from mit inventor as shown in some tutorial online. Unfortunately when I run code the following error appears:

no module name datetime

where datetime is a library that I import at the beginning of python script

can someone help me to solve that?
thank you