OS: Ubuntu 14.04 LTS
Python: 2.7.6
My installation of Gourmet Recipe Manager suddenly stopped loading. When I run it in a terminal window, I get the following at the end of the traceback:
import datetime as dt
ImportError: No module named datetime
So far as I can tell, nothing has been changed and my Python installation is up to date. It simply quit working yesterday. I'd certainly appreciate a good approach to diagnose and fix this problem!
Update: thanks to all who replied!
Tim, I'm sorry if I asked this question in the wrong place. Please chalk it up to being a new guy simply following the links from the Ubuntu website.
TheSchwa, I tried your suggestion and got the same error message as above.
muru, the package seems to be installed, but I have no idea if it's installed/configured correctly. How might I find out?
I'm sorry for all the questions, but I'm an old RedHat guy who has been away from Linux for some time. All of the apt/dpkg stuff is new to me.
import datetime
in the python interpreter? You can start the interpreter by opening a terminal and executingpython
. You can leave it withCtrl+d
.dpkg -S $(python -c "import datetime; print datetime.__file__")
, the datetime module is from thelibpython2.7-stdlib
package. Is that package correctly installed? Can you try reinstalling it?/usr/lib/python2.7/lib-dynload/datetime.x86_64-linux-gnu.so
do you have that file? Also do you see/usr/lib/python2.7/lib-dynload
listed in the output fromecho $(python -c "import sys; print sys.path")
? Btw the Stack Exchange system doesn't actually notify commenters when you edit your post; so at the very least always post a quick comment such as "Updated question with the info" so we get a notification telling us to check back :)