Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I followed these instructions to serve Python (Web2Py) via uWSGI. However, the web server returned an error:

uWSGI Error
Python application not found

until I modified the config.xml config file from:

<uwsgi>
    <pythonpath>/var/web2py/</pythonpath>
    <app mountpoint="/">
        <script>wsgihandler</script>
    </app>
</uwsgi>

to:

<uwsgi>
    <pythonpath>/var/web2py/</pythonpath>
    <module>wsgihandler</module>
</uwsgi>

What's the difference between <app> and <module>? Why did <module> work, but not <app>?

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

the --app option is deprecated by more than a year (it should be reported in uWSGI logs if you use a stable version 1.2/1.4). For wsgi apps you use --module (for python modules) and --wsgi-file (for .wsgi files)

share|improve this answer
    
Not seeing a deprecation message in logs, just failure as OP noted with --version 1.2.3-debian (ubuntu 13.04 x86_64), and plenty of outdated documentation showing that erroneous form still. –  JustinC Aug 2 '13 at 1:25
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.