No module name celery with uWSGI and Python3
Question: 
    Traceback (most recent call last):
      File "./fb_archive/__init__.py", line 5, in <module>
        from .celery import app as celery_app
      File "./fb_archive/celery.py", line 5, in <module>
        from celery import Celery
    ImportError: No module named 'celery'
    unable to load app 0 (mountpoint='') (callable not found or import error)
    

uWGSI says `No module name celery`. It works well without uWGSI. I use python
3.5 and virtualenv.

I test with python 2.7 and uWGSI, it can load celery. How can I load celery
with python 3.x?

This is my celery.py.

    
    
    from __future__ import absolute_import
    
    import os
    
    from celery import Celery
    from django.conf import settings
    
    # set the default Django settings module for the 'celery' program.
    os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'fb_archive.settings')
    
    app = Celery('fb_archive')
    
    # Using a string here means the worker will not have to
    # pickle the object when using Windows.
    app.config_from_object('django.conf:settings')
    app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)
    
    app.conf.update(
        CELERY_RESULT_BACKEND='djcelery.backends.database:DatabaseBackend',
    )
    
    app.conf.update(
        CELERY_RESULT_BACKEND='djcelery.backends.cache:CacheBackend',
    )
    
    
    @app.task(bind=True)
    def debug_task(self):
        print('Request: {0!r}'.format(self.request))
    

And this is my **init**.py.

    
    
    from __future__ import absolute_import
    
    # This will make sure the app is always imported when
    # Django starts so that shared_task will use this app.
    from .celery import app as celery_app
    


Answer: It's possible that you have celery installed for Python2.7 but not for
Python3. You can try installing it for Python3 using `pip3 install celery`.

It is also possible that you _do_ have celery installed for Python3 in your
normal environment, but that it's not installed in your virtualenv.

