When doing stuff from the command line, have you perhaps set any special environment variables in your user environment. These environment variables wouldn't be present when run under Apache/mod_wsgi.
Graham On 20 July 2011 22:26, [email protected] <[email protected]> wrote: > Sorry about the oversight; here's the dump of apache's error_log; > browser just says "Internal Server Error" > > [Tue Jul 19 20:43:17 2011] [notice] Apache/2.2.15 (Unix) DAV/2 > mod_wsgi/3.2 Python/2.6.5 configured -- resuming normal operations > [Tue Jul 19 20:43:32 2011] [error] [client 192.168.252.17] mod_wsgi > (pid=31858): Exception occurred processing WSGI script '/var/www/wsgi- > scripts/mdsquery.py'. > [Tue Jul 19 20:43:32 2011] [error] [client 192.168.252.17] Traceback > (most recent call last): > [Tue Jul 19 20:43:32 2011] [error] [client 192.168.252.17] File "/ > var/www/wsgi-scripts/mdsquery.py", line 136, in application > [Tue Jul 19 20:43:32 2011] [error] [client 192.168.252.17] output > += unittest('HomeworksProduction', resid) > [Tue Jul 19 20:43:32 2011] [error] [client 192.168.252.17] File "/ > var/www/wsgi-scripts/mdsquery.py", line 122, in unittest > [Tue Jul 19 20:43:32 2011] [error] [client 192.168.252.17] HWDB = > MDSQuery(dsn) > [Tue Jul 19 20:43:32 2011] [error] [client 192.168.252.17] File "/ > var/www/wsgi-scripts/mdsquery.py", line 78, in __init__ > [Tue Jul 19 20:43:32 2011] [error] [client 192.168.252.17] > self.Connection = pyodbc.connect(connection_string) > [Tue Jul 19 20:43:32 2011] [error] [client 192.168.252.17] Error: > ('IM002', '[IM002] [unixODBC][Driver Manager]Data source name not > found, and no default driver specified (0) (SQLDriverConnectW)') > [Wed Jul 20 08:18:46 2011] [error] [client 192.168.252.17] mod_wsgi > (pid=31858): Exception occurred processing WSGI script '/var/www/wsgi- > scripts/mdsquery.py'. > [Wed Jul 20 08:18:46 2011] [error] [client 192.168.252.17] Traceback > (most recent call last): > [Wed Jul 20 08:18:46 2011] [error] [client 192.168.252.17] File "/ > var/www/wsgi-scripts/mdsquery.py", line 136, in application > [Wed Jul 20 08:18:46 2011] [error] [client 192.168.252.17] output > += unittest('HomeworksProduction', resid) > [Wed Jul 20 08:18:46 2011] [error] [client 192.168.252.17] File "/ > var/www/wsgi-scripts/mdsquery.py", line 122, in unittest > [Wed Jul 20 08:18:46 2011] [error] [client 192.168.252.17] HWDB = > MDSQuery(dsn) > [Wed Jul 20 08:18:46 2011] [error] [client 192.168.252.17] File "/ > var/www/wsgi-scripts/mdsquery.py", line 78, in __init__ > [Wed Jul 20 08:18:46 2011] [error] [client 192.168.252.17] > self.Connection = pyodbc.connect(connection_string) > [Wed Jul 20 08:18:46 2011] [error] [client 192.168.252.17] Error: > ('IM002', '[IM002] [unixODBC][Driver Manager]Data source name not > found, and no default driver specified (0) (SQLDriverConnectW)') > > -- > You received this message because you are subscribed to the Google Groups > "modwsgi" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/modwsgi?hl=en. > > -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en.
