[uWSGI] unable to find "application" callable in

David Montgomery davidmontgomery at gmail.com
Wed Mar 16 13:58:09 CET 2016


If I run flaskj local it works.  But the use of uWSGI is not working.
I am rather dumbfounded by the below where I get this error

unable to find "application" callable in file /var/zenapi/wsgi.py

but...the file and app there!  Why can it be found?  I even added the below
to the path per the below.  Is this an

  pidfile: /var/run/api.pid
  loop: gevent
  gevent: 20
  processes: 2
  b: 32768
  master: true
  enable-threads: true
  listen: 100
  logto2: /tmp/api.log
  touch-reload: /var/zenapi/wsgi.py
  master-fifo: /tmp/uwsgi_api_master_fifo
  wsgi-file: /var/zenapi/wsgi.py
  pp: [/var/zenapi/,/var/zenapi/app/]

your processes number limit is 31538
your memory page size is 4096 bytes
detected max file descriptor number: 1024
- async cores set to 20 - fd table size: 1024
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
uwsgi socket 0 bound to TCP address fd 3
Python version: 2.7.6 (default, Jun 22 2015, 18:01:27)  [GCC 4.8.2]
Python main interpreter initialized at 0xaac2c0
[carbon] added server
[carbon] carbon plugin started, 60s frequency, 3s timeout, max retries 0,
retry delay 7s
python threads support enabled
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 805152 bytes (786 KB) for 40 cores
*** Operational MODE: preforking+async ***
added [/var/zenapi/,/var/zenapi/app/] to pythonpath.
file /var/zenapi/wsgi.py
unable to load app 0 (mountpoint='') (callable not found or import error)

    import uwsgi
import os
running_in_pydev = 'PYDEV_CONSOLE_ENCODING' in os.environ
from app import app
if __name__ == '__main__':
    if running_in_pydev:
        app.run(debug = True, host='')
        app.run(debug = False, host='')
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.unbit.it/pipermail/uwsgi/attachments/20160316/bddec9a2/attachment.html>

More information about the uWSGI mailing list