richb01 richb01 - 1 year ago 175
Python Question

No module named dateutil.parser

I'm installing Rapidpro which uses django. I'm running

python runserver

I get an error:

Traceback (most recent call last):
File "", line 9, in <module>
File "/home/osboxes/dev/projects/rapidpro/rapidpro/env/local/lib/python2.7/site-packages/django/core/management/", line 385, in execute_from_command_line
File "/home/osboxes/dev/projects/rapidpro/rapidpro/env/local/lib/python2.7/site-packages/django/core/management/", line 354, in execute
File "/home/osboxes/dev/projects/rapidpro/rapidpro/env/local/lib/python2.7/site-packages/django/", line 21, in setup
File "/home/osboxes/dev/projects/rapidpro/rapidpro/env/local/lib/python2.7/site-packages/django/apps/", line 85, in populate
app_config = AppConfig.create(entry)
File "/home/osboxes/dev/projects/rapidpro/rapidpro/env/local/lib/python2.7/site-packages/django/apps/", line 123, in create
File "/usr/lib/python2.7/importlib/", line 37, in import_module
File "/home/osboxes/dev/projects/rapidpro/rapidpro/temba/utils/", line 9, in <module>
from dateutil.parser import parse
ImportError: No module named dateutil.parser

I have followed the steps in this post: ImportError: No module named dateutil.parser, but to no avail! (Both untaring and using pip)

I'm a complete python noob, so it's quite possible I'm overlooking something obvious. I'm installing on Ubuntu 15.04.

Ideas? Thanks!

Answer Source

You need to install python-dateutil.

pip install python-dateutil 

If you are using a virtualenv make sure you activate the environment before running the pip install and also before you run the manage script as well.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download