FieldStorage(None, None, [MiniFieldStorage('planabbrv', 'ant'), MiniFieldStorage('agentnum', 'BLHGLKJVPY'), MiniFieldStorage('agentname', 'Alan Anderson'), MiniFieldStorage('agency', 'Alan Anderson Insurance Agency, Inc.'), MiniFieldStorage('addr', '40585 Corte Los Pajaros'), MiniFieldStorage('city', 'Indio'), MiniFieldStorage('state', 'CA'), MiniFieldStorage('zip', '92203'), MiniFieldStorage('fax', '9493881316'), MiniFieldStorage('phone', '9493882630'), MiniFieldStorage('email', 'rates4u@icloud.com'), MiniFieldStorage('license', '0D44023')])
city --- Indio
fax --- 9493881316
license --- 0D44023
addr --- 40585 Corte Los Pajaros
zip --- 92203
planabbrv --- ant
agency --- Alan Anderson Insurance Agency, Inc.
agentnum --- BLHGLKJVPY
phone --- 9493882630
state --- CA
agentname --- Alan Anderson
email --- rates4u@icloud.com --> -->
 
 
<type 'exceptions.IOError'>
Python 2.7.9: C:\Python27\python.exe
Fri Jul 21 11:30:24 2017

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 C:\xampp\cgi-bin\stampgrpapp\ant\stampgrpmas.py in ()
    100     rc = rc + '</head><body>Reloading</body></html>';
    101     print rc
    102 
    103 if __name__ == '__main__':
=>  104     main()
main = <function main>
 C:\xampp\cgi-bin\stampgrpapp\ant\stampgrpmas.py in main()
     57     """
     58 
=>   59     template = mktemplate(tdict)
     60     output = PdfFileWriter()
     61     input2 = PdfFileReader(file("/htdocs/template.pdf","rb"))
template undefined, global mktemplate = <function mktemplate>, tdict = {'addr': '40585 Corte Los Pajaros', 'agency': 'Alan Anderson Insurance Agency, Inc.', 'agentname': 'Alan Anderson', 'agentnum': 'BLHGLKJVPY', 'city': 'Indio', 'email': 'rates4u@icloud.com', 'fax': '9493881316', 'license': '0D44023', 'phone': '9493882630', 'planabbrv': 'ant', ...}
 C:\xampp\cgi-bin\stampgrpapp\ant\stampgrpmas.py in mktemplate(tdict={'addr': '40585 Corte Los Pajaros', 'agency': 'Alan Anderson Insurance Agency, Inc.', 'agentname': 'Alan Anderson', 'agentnum': 'BLHGLKJVPY', 'city': 'Indio', 'email': 'rates4u@icloud.com', 'fax': '9493881316', 'license': '0D44023', 'phone': '9493882630', 'planabbrv': 'ant', ...})
     35     if 'fax' in tdict:
     36             c.drawString(200,293,tdict['fax'])
=>   37     c.save()
     38 
     39 def main():
c = <reportlab.pdfgen.canvas.Canvas instance>, c.save = <bound method Canvas.save of <reportlab.pdfgen.canvas.Canvas instance>>
 C:\Python27\lib\site-packages\reportlab\pdfgen\canvas.py in save(self=<reportlab.pdfgen.canvas.Canvas instance>)
   1235            After this operation the canvas must not be used further."""
   1236         if len(self._code): self.showPage()
=> 1237         self._doc.SaveToFile(self._filename, self)
   1238 
   1239     def getpdfdata(self):
self = <reportlab.pdfgen.canvas.Canvas instance>, self._doc = <reportlab.pdfbase.pdfdoc.PDFDocument object>, self._doc.SaveToFile = <bound method PDFDocument.SaveToFile of <reportlab.pdfbase.pdfdoc.PDFDocument object>>, self._filename = '/htdocs/template.pdf'
 C:\Python27\lib\site-packages\reportlab\pdfbase\pdfdoc.py in SaveToFile(self=<reportlab.pdfbase.pdfdoc.PDFDocument object>, filename=u'/htdocs/template.pdf', canvas=<reportlab.pdfgen.canvas.Canvas instance>)
    216             myfile = 1
    217             filename = makeFileName(filename)
=>  218             f = open(filename, "wb")
    219         data = self.GetPDFData(canvas)
    220         if isUnicode(data):
f undefined, builtin open = <built-in function open>, filename = u'/htdocs/template.pdf'

<type 'exceptions.IOError'>: [Errno 2] No such file or directory: u'/htdocs/template.pdf'
      args = (2, 'No such file or directory')
      errno = 2
      filename = u'/htdocs/template.pdf'
      message = ''
      strerror = 'No such file or directory'