Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

getting error distributionNotFound

Tags:

python

celery

I have installed celeryD and redis on my system. when i am running the command using celery. iam getting the following error.

  Traceback (most recent call last):
  File "/usr/local/bin/celeryd", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2711, in <module>
    parse_requirements(__requires__), Environment()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 584, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: python-dateutil>=1.5,<2.0

what may be the possible reason??

like image 496
Rohitashv Singhal Avatar asked Aug 24 '12 08:08

Rohitashv Singhal


1 Answers

There's a package called python-dateutil that isn't installed.

It should be available on the PYTHONPATH that's active when you call celeryd.

Python dateutil is installable from PyPi.

Assuming you have pip installed on your system, you can do so with this command:

$ pip install python-dateutil==1.5
like image 96
David Miller Avatar answered Nov 12 '22 02:11

David Miller