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

Python3 support #2

Open
kmmbvnr opened this issue Nov 7, 2014 · 4 comments
Open

Python3 support #2

kmmbvnr opened this issue Nov 7, 2014 · 4 comments

Comments

@kmmbvnr
Copy link

kmmbvnr commented Nov 7, 2014

I tried to run the tests on python 3

I used python3 port of python memcached - https://github.com/eguven/python3-memcached

And fixed config construction at https://github.com/RentMethod/celerytest/blob/master/celerytest/__init__.py#L6

(summing for dictionaries no longer works under python3)

But even after that nosetests script just hands and do nothing.

@willembult
Copy link
Member

Thanks for trying this on Python 3, hadn't tried that myself yet. If it hangs, the worker thread likely doesn't ever receive the tasks, or the results aren't sent back to the caller. It could mean the memcached isn't shared between the threads. Or it could mean the configuration doesn't load properly and it's using processes instead of threads? Does it work using the AMQP transport?

torotil added a commit to torotil/celerytest that referenced this issue Mar 14, 2015
@torotil
Copy link

torotil commented Mar 14, 2015

I've referenced a commit that just includes the necessary changes for python3 compatibility. I also experience the hang (like described by @kmmbvnr) but I'm using the memory backend.

The execution hangs on worker.ready.wait() in start_celery_worker(). The odd thing is that when I just skip the wait (using a timeout of 1) I still get a running worker: My test-cases are working so there must by some worker doing those tasks.

Any suggestions on why that might happen?

@torotil
Copy link

torotil commented Mar 14, 2015

python3.3/site-packages/celery/concurrency/threads.py", line 31, in __init__ 'The threaded pool requires the threadpool module.') ImportError: The threaded pool requires the threadpool module.

I get the following error from celery. But it seems that the last version of threadpool was released 2009 and is not python3 compatible.

@torotil
Copy link

torotil commented May 18, 2015

I've created a python3 version of threadpool on https://github.com/torotil/threadpool and a python3 compatible version of celerytest on https://github.com/torotil/celerytest .

thauk-copperleaf pushed a commit to copperleaftech/celerytest that referenced this issue Jul 7, 2016
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

3 participants