RE: [Zope] - NT and IIS problem (argv)
Anyway here is the error I get when I browse to http://localhost/scripts/samples/zope1.exe/manage
<body> Sorry, an error occurred.<p> <!-- Traceback (innermost last): File C:\Program Files\zope1\lib\python\ZPublisher\Publish.py, line 872, in publish_module File C:\Program Files\zope1\lib\python\ZPublisher\Publish.py, line 163, in __init__ File C:\Program Files\zope1\lib\python1.5\cgi.py, line 795, in __init__ AttributeError: argv
This sounds like a problem that Zope 1.9b2 for win32 had. What version of Zope are you using? If you are not using the latest version I would highly recommend updating to 1.9 final.
-Amos
Aaaaarrgghh... I've figured this out. This should only happen in cases where you are using IIS and the *NT Service* version of Zope. The NT Service version had no sys.argv, which cgi.py checks for if no QUERY_STRING is found in the environment. IIS apparently doesn't even set QUERY_STRING if there isn't one, so cgi.py tries to look at sys.argv which doesn't exist and... I've added a fix that will be in the next revision. In the meantime, I've attached a copy of the updated service binary (named pss.exe). To fix the problem: o stop the zope1 service on your machine o delete the zope1.exe in your Zope installation's "/bin" directory (do NOT delete the one in your cgi directory!). o copy the attached "pss.exe" file to your "/bin" directory and rename it to "zope1.exe". o start up the service Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com
Brian/Amos, That worked just fine. I am at the main screen (after the login). Thanks, -vj Brian Lloyd wrote:
Anyway here is the error I get when I browse to http://localhost/scripts/samples/zope1.exe/manage
<body> Sorry, an error occurred.<p> <!-- Traceback (innermost last): File C:\Program Files\zope1\lib\python\ZPublisher\Publish.py, line 872, in publish_module File C:\Program Files\zope1\lib\python\ZPublisher\Publish.py, line 163, in __init__ File C:\Program Files\zope1\lib\python1.5\cgi.py, line 795, in __init__ AttributeError: argv
This sounds like a problem that Zope 1.9b2 for win32 had. What version of Zope are you using? If you are not using the latest version I would highly recommend updating to 1.9 final.
-Amos
Aaaaarrgghh... I've figured this out. This should only happen in cases where you are using IIS and the *NT Service* version of Zope. The NT Service version had no sys.argv, which cgi.py checks for if no QUERY_STRING is found in the environment. IIS apparently doesn't even set QUERY_STRING if there isn't one, so cgi.py tries to look at sys.argv which doesn't exist and...
I've added a fix that will be in the next revision.
In the meantime, I've attached a copy of the updated service binary (named pss.exe).
To fix the problem:
o stop the zope1 service on your machine
o delete the zope1.exe in your Zope installation's "/bin" directory (do NOT delete the one in your cgi directory!).
o copy the attached "pss.exe" file to your "/bin" directory and rename it to "zope1.exe".
o start up the service
Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com
------------------------------------------------------------------------ Name: pss.exe pss.exe Type: unspecified type (application/octet-stream) Encoding: base64
-- It takes two to lie - one to lie and one to listen. (Homer Simpson)
participants (2)
-
Brian Lloyd -
Vincent Joseph