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

runme.sh error "ImportError: No module named datetime" #6

Closed
Jiakui opened this issue Mar 18, 2015 · 6 comments
Closed

runme.sh error "ImportError: No module named datetime" #6

Jiakui opened this issue Mar 18, 2015 · 6 comments

Comments

@Jiakui
Copy link

Jiakui commented Mar 18, 2015

./runme.sh gives an error that datatime module could not be found. But I checked with "python -c "from datetime import datetime, date"", no error was given.

What's could be the reason?

Thanks!

./runme.sh

---

 |   (_)/ __(_)_   _/ __|
 | |) | | (_ | | | | __ \
 |**_/|_|_**|_| |_| |___/

Traceback (most recent call last):
  File "digits/digits-devserver", line 40, in <module>
    from digits.webapp import app, socketio, scheduler
  File "/home/iranyu/DeepLearning/digits-1.0/digits/digits/webapp.py", line 6, in <module>
    from flask import Flask
  File "/home/iranyu/DeepLearning/digits-1.0/python-env/lib/python2.7/site-packages/flask/**init**.py", line 17, in <module>
    from werkzeug.exceptions import abort
  File "/home/iranyu/DeepLearning/digits-1.0/python-env/lib/python2.7/site-packages/werkzeug/**init**.py", line 154, in <module>
    **import**('werkzeug.exceptions')
  File "/home/iranyu/DeepLearning/digits-1.0/python-env/lib/python2.7/site-packages/werkzeug/exceptions.py", line 67, in <module>
    from werkzeug._internal import _get_environ
  File "/home/iranyu/DeepLearning/digits-1.0/python-env/lib/python2.7/site-packages/werkzeug/_internal.py", line 15, in <module>
    from datetime import datetime, date
ImportError: No module named datetime
@lukeyeager
Copy link
Member

Hi Jiaku, are you running Ubuntu 14.04? A little googling led me to this page which makes me suspect that you may have a ubuntu version issue. The web installer has binaries built specifically for Ubuntu 14.04 x64, so you would run into other problems even if you fixed your python packages (if indeed you are running another OS).

@Jiakui
Copy link
Author

Jiakui commented Mar 19, 2015

I am running Ubuntu 14.10 x64, right now I am using the downloaded binaries.

Is it possible to build the binary from scratch? That might eliminate the problem.

Thanks!

@lukeyeager
Copy link
Member

Sure you can, just follow the instructions in the README.

@lukeyeager
Copy link
Member

Were you able to build from scratch? Did you ever figure out what was causing your error?

@Jiakui
Copy link
Author

Jiakui commented Mar 25, 2015

Yes, I built from scratch on Ubuntu 14.10 and it is able to run. I haven't checked the source of error for downloaded binary.

Thanks!

@lukeyeager
Copy link
Member

Alright, then I'll close this issue.

If anyone else runs into this problem, please let me know and I'll look into it more. I suspect it has something to do with the virtualenv setup for the web installer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants