Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 439284 - dev-python/celery-3 should allow usage of dev-python/python-dateutil-2.1 with python2
Summary: dev-python/celery-3 should allow usage of dev-python/python-dateutil-2.1 with...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Corentin Chary (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-22 16:40 UTC by Gilles Dartiguelongue (RETIRED)
Modified: 2012-10-25 17:01 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gilles Dartiguelongue (RETIRED) gentoo-dev 2012-10-22 16:40:00 UTC
According to celery (3.0.11) itself:

$ celery-2.7 -A task/celery_task.py worker --loglevel=info
Traceback (most recent call last):
  File "/usr/bin/celery-2.7", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib64/python2.7/site-packages/pkg_resources.py", line 2820, in <module>
    parse_requirements(__requires__), Environment()
  File "/usr/lib64/python2.7/site-packages/pkg_resources.py", line 589, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: python-dateutil>=1.5,<2.0

This is just sample code from the homepage.

Once I get past this, I get another error:

"ImportError: This platform lacks a functioning sem_open implementation, therefore,
the required synchronization primitives needed will not function,
see issue 3770."

but I guess this is another matter.
Comment 1 Corentin Chary (RETIRED) gentoo-dev 2012-10-23 22:31:19 UTC
What python-dateutil version do you have currently ?
I'd say something bellow 2.1 ?
Comment 2 Mike Gilbert gentoo-dev 2012-10-23 22:39:26 UTC
It looks like requirements/default.txt should be modified to allow usage of dev-python/python-dateutil-2.1 with python2.
Comment 3 Gilles Dartiguelongue (RETIRED) gentoo-dev 2012-10-23 22:45:51 UTC
I was using python-dateutil 2.1 when I got the message I pasted since that's what rq's dependencies pulled.
Comment 4 Corentin Chary (RETIRED) gentoo-dev 2012-10-24 09:53:18 UTC
(In reply to comment #2)
> It looks like requirements/default.txt should be modified to allow usage of
> dev-python/python-dateutil-2.1 with python2.

Yep I guess...
That's fun because tests didn't catch that, and using python-celery works...
If someone have the time to write a patch, I'll be happy to apply it, else I'll try to do that this evening.
Comment 5 Mike Gilbert gentoo-dev 2012-10-24 14:40:08 UTC
This upstream commit should do the job, but it doesn't apply cleanly to 3.0.11. Just needs to be tweaked a bit I imagine.

https://github.com/celery/celery/commit/ae721b6947e7e05f26dc8438fe61106b5e993e12
Comment 6 Corentin Chary (RETIRED) gentoo-dev 2012-10-25 10:46:39 UTC
Pushed a fix, can you confirm that it works ?
Comment 7 Mike Gilbert gentoo-dev 2012-10-25 15:48:22 UTC
It no longer raises a pkg_resources error. Looks good to me.