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

logan and celery #7

Closed
kinkerl opened this issue Nov 15, 2012 · 6 comments
Closed

logan and celery #7

kinkerl opened this issue Nov 15, 2012 · 6 comments

Comments

@kinkerl
Copy link

kinkerl commented Nov 15, 2012

i have a problem running celery from the app "binary" after i installed it with logan.

as a test, i created a django project. runserver works fine. i can start the runserver and celery using

python manage.py runserver
python manage.py celeryd -E -B

after i installed the project, i am be able to start it.

eukalypse_now runserver

this is VERY awesome. however, i can not start celery

eukalypse_now celeryd -E -B
...
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/desch/.virtualenvs/empty1/local/lib/python2.7/site-packages/billiard-2.7.3.18-py2.7-linux-x86_64.egg/billiard/forking.py", line 502, in main
    prepare(preparation_data)
  File "/home/desch/.virtualenvs/empty1/local/lib/python2.7/site-packages/billiard-2.7.3.18-py2.7-linux-x86_64.egg/billiard/forking.py", line 642, in prepare
    file, path_name, etc = imp.find_module(main_name, dirs)
ImportError: No module named eukalypse_now

i am not sure if this is a problem in billiard handels something or in how logan created the binary. billiard only looks for the module in the ./bin path of the project in the virtualenv.

any idea?

@kinkerl
Copy link
Author

kinkerl commented Nov 15, 2012

btw, you can get the code here: https://github.com/kinkerl/eukalypse_now

@dcramer
Copy link
Owner

dcramer commented Nov 15, 2012

do you have the project on your PYTHONPATH at all?

Other people have mentioned this problem too (with Sentry), but I have never really dug into it.

David Cramer

twitter.com/zeeg
disqus.com/zeeg

On Thursday, November 15, 2012 at 11:29 AM, Dennis Schwertel wrote:

btw, you can get the code here: https://github.com/kinkerl/eukalypse_now


Reply to this email directly or view it on GitHub (#7 (comment)).

@kinkerl
Copy link
Author

kinkerl commented Nov 15, 2012

i have the relevant paths in sys.path and its available to billiard until the error. billiard uses this function

            file, path_name, etc = imp.find_module(main_name, dirs)

dirs is set to "main_path" which is "/home/desch/.virtualenvs/empty1/bin/eukalypse_now"

@dcramer
Copy link
Owner

dcramer commented Nov 15, 2012

If you do setup.py [develop|installl] on the project before hand is the problem still there?

David Cramer

twitter.com/zeeg
disqus.com/zeeg

On Thursday, November 15, 2012 at 11:52 AM, Dennis Schwertel wrote:

i have the relevant paths in sys.path and its available to billiard until the error. billiard uses this function
file, path_name, etc = imp.find_module(main_name, dirs)

dirs is set to "main_path" which is "/home/desch/.virtualenvs/empty1/bin/eukalypse_now"


Reply to this email directly or view it on GitHub (#7 (comment)).

@kinkerl
Copy link
Author

kinkerl commented Nov 15, 2012

yes

@kinkerl
Copy link
Author

kinkerl commented Jun 1, 2013

this problem is fixed for me in the current versions
billiard==2.7.3.28
celery==3.0.19
logan==0.5.6

@kinkerl kinkerl closed this as completed Jun 1, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants