2008/11/3 Graham Dumpleton <[EMAIL PROTECTED]>:
> 2008/11/3 gert <[EMAIL PROTECTED]>:
>>
>> nope i do not have import apache
>>
>> [EMAIL PROTECTED]:/srv/mod_wsgi# svn revert mod_wsgi.c
>> Reverted 'mod_wsgi.c'
>> [EMAIL PROTECTED]:/srv/mod_wsgi# patch -p0 < patch
>> patching file mod_wsgi.c
>> Hunk #2 succeeded at 4310 with fuzz 1.
>> [EMAIL PROTECTED]:/srv/mod_wsgi#
>>
>> ...
>>
>> [Mon Nov 03 05:11:49 2008] [error] [client 80.200.208.100]
>> ImportError: No module named mod_wsgi
>>
>> same result does not work
>
> Does tell me that I am tweaking the right area of the code as now
> complains about 'mod_wsgi' module which is just before bit of code I
> got you to disable. :-)
>
> No need for you to look further as know now what I probably need to do.
svn revert mod_wsgi.c
patch -p0 < patchbelow.txt
Index: mod_wsgi.c
===================================================================
--- mod_wsgi.c (revision 1105)
+++ mod_wsgi.c (working copy)
@@ -4201,11 +4201,12 @@
if (module) {
PyErr_Print();
- PyErr_Clear();
PyDict_DelItemString(modules, "mod_wsgi");
}
+ PyErr_Clear();
+
module = PyImport_AddModule("mod_wsgi");
Py_INCREF(module);
@@ -4277,12 +4278,13 @@
Py_END_ALLOW_THREADS
PyErr_Print();
- PyErr_Clear();
PyDict_DelItemString(modules, "apache");
module = NULL;
}
+
+ PyErr_Clear();
}
else {
Py_BEGIN_ALLOW_THREADS
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---