<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc="http://microsoft.com/officenet/conferencing" xmlns:D="DAV:" xmlns:Repl="http://schemas.microsoft.com/repl/" xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ppda="http://www.passport.com/NameSpace.xsd" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss="http://schemas.microsoft.com/office/2006/digsig-setup" xmlns:dssi="http://schemas.microsoft.com/office/2006/digsig" xmlns:mdssi="http://schemas.openxmlformats.org/package/2006/digital-signature" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:spwp="http://microsoft.com/sharepoint/webpartpages" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:pptsl="http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/" xmlns:spsl="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService" xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="&#1;" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"Courier New \;color\:windowtext";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Times New Roman \, serif";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=white lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>I added system added environment variable for 'HTTP_HOST' and 'REQUEST_URI'.&nbsp; That appears to have gotten me further along.&nbsp; But, I have another hurdle to clear it appears.&nbsp; See below.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>I&#8217;ve got simple test python scripts working in the same web directory as cws.py.&nbsp; They can be seen here:<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><a href="http://dev.insideidaho.org/pycsw/test.py">http://dev.insideidaho.org/pycsw/test.py</a> and <a href="http://dev.insideidaho.org/pycsw/test2.py">http://dev.insideidaho.org/pycsw/test2.py</a>.&nbsp; So, I think (fingers crossed) that I have the web server configured correctly but maybe I am overlooking something.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>When I use the pycsw tester to try make a GetCapabilities request I get a 502 error.&nbsp; &nbsp;Pycsw tester is here: <a href="http://dev.insideidaho.org/pycsw/tester/index.html">http://dev.insideidaho.org/pycsw/tester/index.html</a><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>When I run pycsw on the localhost machine I get this response with more details:<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>#############################BEGIN RESPONSE#################################<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&lt;head&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&lt;title&gt;IIS 7.0 Detailed Error - 502.2 - Bad Gateway&lt;/title&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&lt;style type=&quot;text/css&quot;&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&lt;!-- <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>body{margin:0;font-size:.7em;font-family:Verdana,Arial,Helvetica,sans-serif;background:#CBE1EF;} <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>code{margin:0;color:#006600;font-size:1.1em;font-weight:bold;} <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>.config_source code{font-size:.8em;color:#000000;} <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>pre{margin:0;font-size:1.4em;word-wrap:break-word;} <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>ul,ol{margin:10px 0 10px 40px;} <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>ul.first,ol.first{margin-top:5px;} <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>fieldset{padding:0 15px 10px 15px;} <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>.summary-container fieldset{padding-bottom:5px;margin-top:4px;} <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>legend.no-expand-all{padding:2px 15px 4px 10px;margin:0 0 0 -12px;} <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>legend{color:#333333;padding:4px 15px 4px 10px;margin:4px 0 8px -12px;_margin-top:0px; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;border-top:1px solid #EDEDED;border-left:1px solid #EDEDED;border-right:1px solid #969696; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;border-bottom:1px solid #969696;background:#E7ECF0;font-weight:bold;font-size:1em;} <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>a:link,a:visited{color:#007EFF;font-weight:bold;} <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>a:hover{text-decoration:none;} <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>h1{font-size:2.4em;margin:0;color:#FFF;} <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>h2{font-size:1.7em;margin:0;color:#CC0000;} <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>h3{font-size:1.4em;margin:10px 0 0 0;color:#CC0000;} <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>h4{font-size:1.2em;margin:10px 0 5px 0; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>}#header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:&quot;trebuchet MS&quot;,Verdana,sans-serif; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;color:#FFF;background-color:#5C87B2; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>}#content{margin:0 0 0 2%;position:relative;} <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>.summary-container,.content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;} <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>.config_source{background:#fff5c4;} <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>.content-container p{margin:0 0 10px 0; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>}#details-left{width:35%;float:left;margin-right:2%; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>}#details-right{width:63%;float:left; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>}#server_version{width:96%;_height:1px;min-height:1px;margin:0 0 5px 0;padding:11px 2% 8px 2%;color:#FFFFFF; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;background-color:#5A7FA5;border-bottom:1px solid #C1CFDD;border-top:1px solid #4A6C8E;font-weight:normal; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;font-size:1em;color:#FFF;text-align:right; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>}#server_version p{margin:5px 0;} <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>table{margin:4px 0 4px 0;width:100%;border:none;} <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>td,th{vertical-align:top;padding:3px 0;text-align:left;font-weight:bold;border:none;} <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>th{width:30%;text-align:right;padding-right:2%;font-weight:normal;} <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>thead th{background-color:#ebebeb;width:25%; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>}#details-right th{width:20%;} <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>table tr.alt td,table tr.alt th{background-color:#ebebeb;} <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>.highlight-code{color:#CC0000;font-weight:bold;font-style:italic;} <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>.clear{clear:both;} <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>.preferred{padding:0 5px 2px 5px;font-weight:normal;background:#006633;color:#FFF;font-size:.8em;} <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>--&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&lt;/style&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&lt;/head&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&lt;body&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&lt;div id=&quot;header&quot;&gt;&lt;h1&gt;Server Error in Application &quot;DEFAULT WEB SITE/PYCSW&quot;&lt;/h1&gt;&lt;/div&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&lt;div id=&quot;server_version&quot;&gt;&lt;p&gt;Internet Information Services 7.0&lt;/p&gt;&lt;/div&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&lt;div id=&quot;content&quot;&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&lt;div class=&quot;content-container&quot;&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;&lt;fieldset&gt;&lt;legend&gt;Error Summary&lt;/legend&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;&nbsp;&lt;h2&gt;HTTP Error 502.2 - Bad Gateway&lt;/h2&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;&nbsp;&lt;h3&gt;The specified CGI application misbehaved by not returning a complete set of HTTP headers.&nbsp; The headers it did return are &amp;quot;Traceback (most recent call last):<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp; File &amp;quot;C:\criticalApplications\console\pycsw\pycsw-1.0.0\csw.py&amp;quot;, line 34, in &amp;lt;module&amp;gt;<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;&nbsp;&nbsp; from server import server<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp; File &amp;quot;C:\criticalApplications\console\pycsw\pycsw-1.0.0\server\server.py&amp;quot;, line 40, in &amp;lt;module&amp;gt;<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;&nbsp;&nbsp; import config, fes, log, profile, repository, util<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp; File &amp;quot;C:\criticalApplications\console\pycsw\pycsw-1.0.0\server\repository.py&amp;quot;, line 33, in &amp;lt;module&amp;gt;<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;&nbsp; &nbsp;from sqlalchemy import create_engine, desc, func<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>ImportError: No module named sqlalchemy<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&amp;quot;.&lt;/h3&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;&lt;/fieldset&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&lt;/div&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&lt;div class=&quot;content-container&quot;&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;&lt;fieldset&gt;&lt;legend&gt;Detailed Error Information&lt;/legend&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;&nbsp;&lt;div id=&quot;details-left&quot;&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;&nbsp;&nbsp;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&lt;tr class=&quot;alt&quot;&gt;&lt;th&gt;Module&lt;/th&gt;&lt;td&gt;CgiModule&lt;/td&gt;&lt;/tr&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&lt;tr&gt;&lt;th&gt;Notification&lt;/th&gt;&lt;td&gt;ExecuteRequestHandler&lt;/td&gt;&lt;/tr&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&lt;tr class=&quot;alt&quot;&gt;&lt;th&gt;Handler&lt;/th&gt;&lt;td&gt;Python&lt;/td&gt;&lt;/tr&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&lt;tr&gt;&lt;th&gt;Error Code&lt;/th&gt;&lt;td&gt;0x00000001&lt;/td&gt;&lt;/tr&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;&nbsp;&nbsp;&lt;/table&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;&nbsp;&lt;/div&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;&nbsp;&lt;div id=&quot;details-right&quot;&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;&nbsp;&nbsp;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&lt;tr class=&quot;alt&quot;&gt;&lt;th&gt;Requested URL&lt;/th&gt;&lt;td&gt;http://dev.insideidaho.org:80/pycsw/csw.py&lt;/td&gt;&lt;/tr&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&lt;tr&gt;&lt;th&gt;Physical Path&lt;/th&gt;&lt;td&gt;C:\criticalApplications\console\pycsw\pycsw-1.0.0\csw.py&lt;/td&gt;&lt;/tr&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&lt;tr class=&quot;alt&quot;&gt;&lt;th&gt;Logon Method&lt;/th&gt;&lt;td&gt;Anonymous&lt;/td&gt;&lt;/tr&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&lt;tr&gt;&lt;th&gt;Logon User&lt;/th&gt;&lt;td&gt;Anonymous&lt;/td&gt;&lt;/tr&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;&nbsp;&nbsp;&lt;/table&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;&nbsp;&nbsp;&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;&nbsp;&lt;/div&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;&lt;/fieldset&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&lt;/div&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&lt;div class=&quot;content-container&quot;&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;&lt;fieldset&gt;&lt;legend&gt;Most likely causes:&lt;/legend&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;&nbsp;&lt;ul&gt; &nbsp;&nbsp;&nbsp; &lt;li&gt;The CGI process was shut down or terminated unexpectedly before it finished processing the request.&lt;/li&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;li&gt;The CGI process has a flaw and does not return a complete set of HTTP headers.&lt;/li&gt; &lt;/ul&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;&lt;/fieldset&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&lt;/div&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&lt;div class=&quot;content-container&quot;&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;&lt;fieldset&gt;&lt;legend&gt;Things you can try:&lt;/legend&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;&nbsp;&lt;ul&gt; &nbsp;&nbsp;&nbsp; &lt;li&gt;Check the event logs on the system to see whether the CGI process is shutting down unexpectedly.&lt;/li&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;li&gt;Troubleshoot the CGI application to determine why it is not sending a complete set of HTTP headers.&lt;/li&gt; &lt;/ul&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;&lt;/fieldset&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&lt;/div&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&lt;div class=&quot;content-container&quot;&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;&lt;fieldset&gt;&lt;legend&gt;Links and More Information&lt;/legend&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;&nbsp;This error occurs when the CGI process handling the request exits before it finishes sending the response to IIS. <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;&nbsp;&lt;p&gt;&lt;a href=&quot;http://go.microsoft.com/fwlink/?LinkID=62293&amp;amp;IIS70Error=502,2,0x00000001,6002&quot;&gt;View more information &amp;raquo;&lt;/a&gt;&lt;/p&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;&nbsp;&nbsp;<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;&lt;/fieldset&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&lt;/div&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&lt;/div&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&lt;/body&gt; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>&lt;/html&gt;<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>#############################END RESPONSE#################################<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Note that &#8220;sqlalchemy&#8217; show up in the list when I use &#8220;help(&#8216;modules&#8217;)&#8221; <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>It seems like the crux of the issue is that IIS7 doesn&#8217;t like the way the HTTP headers being returned by the pycsw script(s).&nbsp; Maybe a syntax issue?&nbsp; I&#8217;m not sure.&nbsp; I&#8217;m definitely no expert.&nbsp; Since I can run the test.py scripts I&#8217;m hoping that the web server is configured properly.&nbsp; If not I&#8217;m not quite sure where to look at this point.&nbsp; But, maybe it is still an IIS7 configuration issue.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Ideas on how to troubleshoot this or get it working? <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Thanks much!<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>-Bruce<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> Angelos Tzotsos [mailto:gcpp.kalxas@gmail.com] <br><b>Sent:</b> Tuesday, March 13, 2012 6:08 PM<br><b>To:</b> Godfrey, Bruce<br><b>Cc:</b> pycsw-devel@lists.sourceforge.net<br><b>Subject:</b> Re: [pycsw-devel] Running on Windows 2008 Server IIS7<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Hi Bruce,<br><br>Yes, it seems that this issue is Windows specific. The &quot;HTTP_HOST&quot; variable is not set in the environment variables.<br><br>Please try this from a Python console:<br><br>import os<br>os.environ<br><br>and send the output.<br><br>Thanks,<br>Angelos<br><br>On 03/14/2012 01:29 AM, Godfrey, Bruce wrote: <o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>Hi Angelos,</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>Yes, thank you, I was able to get it working using the syntax </span><span style='font-size:10.0pt;font-family:"Courier New ;color:windowtext","serif"'>C:\\www\\pycsw</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>I&#8217;ve run into this issue now:</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;</span><o:p></o:p></p><p class=MsoNormal>Traceback (most recent call last):<o:p></o:p></p><p class=MsoNormal>&nbsp; File &quot;C:\criticalApplications\console\pycsw\pycsw-1.0.0\csw.py&quot;, line 40, in &lt;module&gt;<o:p></o:p></p><p class=MsoNormal>&nbsp;&nbsp;&nbsp; CSW.dispatch()<o:p></o:p></p><p class=MsoNormal>&nbsp; File &quot;C:\criticalApplications\console\pycsw\pycsw-1.0.0\server\server.py&quot;, line 161, in dispatch<o:p></o:p></p><p class=MsoNormal>&nbsp;&nbsp;&nbsp; (os.environ['HTTP_HOST'], os.environ['REQUEST_URI'])<o:p></o:p></p><p class=MsoNormal>&nbsp; File &quot;C:\Python27\lib\os.py&quot;, line 423, in __getitem__<o:p></o:p></p><p class=MsoNormal>&nbsp;&nbsp;&nbsp; return self.data[key.upper()]<o:p></o:p></p><p class=MsoNormal>KeyError: 'HTTP_HOST'<o:p></o:p></p><p class=MsoNormal>&gt;&gt;&gt;<span style='color:#1F497D'>&nbsp;</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>I think I&#8217;m close but I&#8217;m not sure where to look to try to track this down.&nbsp; I wonder if it is an IIS7 issue?</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>-Bruce</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>&nbsp;</span><o:p></o:p></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> Angelos Tzotsos [<a href="mailto:gcpp.kalxas@gmail.com">mailto:gcpp.kalxas@gmail.com</a>] <br><b>Sent:</b> Tuesday, March 13, 2012 4:22 PM<br><b>To:</b> <a href="mailto:pycsw-devel@lists.sourceforge.net">pycsw-devel@lists.sourceforge.net</a><br><b>Subject:</b> Re: [pycsw-devel] Running on Windows 2008 Server IIS7</span><o:p></o:p></p></div></div><p class=MsoNormal>&nbsp;<o:p></o:p></p><p class=MsoNormal>Hello Bruce,<br><br>Did you try the windows path like c:\path\to\pycsw ?<br><br>Regards,<br>Angelos<br><br>On 03/13/2012 04:44 AM, Godfrey, Bruce wrote: <o:p></o:p></p><p class=MsoNormal>Hello,<o:p></o:p></p><p class=MsoNormal>&nbsp;<o:p></o:p></p><p class=MsoNormal>I&#8217;m attempting to get pycsw running on a Windows 2008 box with IIS7.&nbsp; I have all the supporting libraries installed and I have SQLite3.&nbsp; I&#8217;ll preface this by saying I have pretty limited experience with python.&nbsp; <o:p></o:p></p><p class=MsoNormal>&nbsp;<o:p></o:p></p><p class=MsoNormal>I&#8217;ve changed the first line of csw.py to: #!/Python27/python -u<o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt'>&nbsp;</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt'>At this point I need edit default.cfg, correct?</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt'>&nbsp;</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt'>What is the correct syntax for:&nbsp; </span><span style='font-size:10.0pt;font-family:"Courier New"'>home=/var/www/pycsw on Windows?&nbsp; Is it like: c:\path\to\defaul.cfg?</span><o:p></o:p></p><p class=MsoNormal>&nbsp;<o:p></o:p></p><p class=MsoNormal>Thank you for any assistance in getting this running on my Windows box.&nbsp; I really appreciate it.&nbsp; <o:p></o:p></p><p class=MsoNormal>&nbsp;<o:p></o:p></p><p class=MsoNormal>-Bruce<o:p></o:p></p><p class=MsoNormal>&nbsp;<o:p></o:p></p><p class=MsoNormal>&nbsp;<o:p></o:p></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman , serif","serif"'><br><br><br><br></span><o:p></o:p></p><pre>------------------------------------------------------------------------------<o:p></o:p></pre><pre>Keep Your Developer Skills Current with LearnDevNow!<o:p></o:p></pre><pre>The most comprehensive online learning library for Microsoft developers<o:p></o:p></pre><pre>is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,<o:p></o:p></pre><pre>Metro Style Apps, more. Free future releases when you subscribe now!<o:p></o:p></pre><pre><a href="http://p.sf.net/sfu/learndevnow-d2d">http://p.sf.net/sfu/learndevnow-d2d</a><o:p></o:p></pre><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman , serif","serif"'><br><br><br><br></span><o:p></o:p></p><pre>_______________________________________________<o:p></o:p></pre><pre>pycsw-devel mailing list<o:p></o:p></pre><pre><a href="mailto:pycsw-devel@lists.sourceforge.net">pycsw-devel@lists.sourceforge.net</a><o:p></o:p></pre><pre><a href="https://lists.sourceforge.net/lists/listinfo/pycsw-devel">https://lists.sourceforge.net/lists/listinfo/pycsw-devel</a><o:p></o:p></pre><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman , serif","serif"'><br><br><br><br></span><o:p></o:p></p><pre>-- <o:p></o:p></pre><pre>Angelos Tzotsos<o:p></o:p></pre><pre>Remote Sensing Laboratory<o:p></o:p></pre><pre>National Technical University of Athens<o:p></o:p></pre><pre><a href="http://users.ntua.gr/tzotsos">http://users.ntua.gr/tzotsos</a><o:p></o:p></pre><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><br><br><br><o:p></o:p></span></p><pre>-- <o:p></o:p></pre><pre>Angelos Tzotsos<o:p></o:p></pre><pre>Remote Sensing Laboratory<o:p></o:p></pre><pre>National Technical University of Athens<o:p></o:p></pre><pre><a href="http://users.ntua.gr/tzotsos">http://users.ntua.gr/tzotsos</a><o:p></o:p></pre></div></body></html>