I reached here after spending hours to trace the said reported issue. Here is my use case where which can help to reproduce the error.
I am making an application which executes the PHP files from my django application. The PHP files returns the json result set. The application works fine on my MAC however it fails to work on server which is : Ubuntu 12.04 Python 2.7.3 (default, Aug 1 2012, 05:14:39) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import django >>> django.VERSION (1, 5, 1, 'final', 0) tail -f /var/log/apache2/error.log [Mon Jun 03 14:14:39 2013] [error] JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0) [Mon Jun 03 19:26:30 2013] [notice] caught SIGTERM, shutting down [Mon Jun 03 19:26:31 2013] [error] python_init: Python version mismatch, expected '2.7.2+', found '2.7.3'. [Mon Jun 03 19:26:31 2013] [error] python_init: Python executable found '/usr/bin/python'. [Mon Jun 03 19:26:31 2013] [error] python_init: Python path being used '/usr/lib/python2.7/:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload'. [Mon Jun 03 19:26:31 2013] [notice] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads. [Mon Jun 03 19:26:31 2013] [notice] mod_python: using mutex_directory /tmp [Mon Jun 03 19:26:31 2013] [warn] mod_wsgi: Compiled for Python/2.7.2+. [Mon Jun 03 19:26:31 2013] [warn] mod_wsgi: Runtime using Python/2.7.3. [Mon Jun 03 19:26:31 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.6 with Suhosin-Patch mod_python/3.3.1 Python/2.7.3 mod_wsgi/3.3 configured -- resuming normal operations /bin/sh: 1: Syntax error: redirection unexpected Due to this, it does not return the json response. Hope it helps. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to mod-wsgi in Ubuntu. https://bugs.launchpad.net/bugs/1018315 Title: Compiled for Python/2.7.2+, Runtime using Python/2.7.3. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mod-wsgi/+bug/1018315/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs