<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=windows-1252">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello, <br>
    <br>
    there seems to be a problem with "Creating scripts and running them
    from the toolbox": Output into a file didn't work: the tag "output
    file" produces an error and the Python script doesn't load. <br>
    <div class="moz-signature"><br>
      Is it a bug?<br>
      <br>
      Jörg Höttges<br>
      <br>
      <font face="Courier New, Courier, monospace">test example:<br>
        <br>
        ##file_to_write_ascii=output file<br>
        with open(file_to_write_ascii ,'w') as fw:<br>
            fw.write("hello\n")<br>
        <br>
        <br>
        Python-Error:<br>
        <br>
        Traceback (most recent call last):<br>
          File "C:/Program
        Files/QGISBR~1/apps/qgis/./python/plugins\processing\gui\ProcessingToolbox.py",
        line 214, in executeAlgorithm<br>
            action.execute()<br>
          File "C:/Program
        Files/QGISBR~1/apps/qgis/./python/plugins\processing\script\AddScriptFromFileAction.py",
        line 50, in execute<br>
            script = ScriptAlgorithm(filename)<br>
          File "C:/Program
        Files/QGISBR~1/apps/qgis/./python/plugins\processing\script\ScriptAlgorithm.py",
        line 75, in __init__<br>
            self.defineCharacteristicsFromFile()<br>
          File "C:/Program
        Files/QGISBR~1/apps/qgis/./python/plugins\processing\script\ScriptAlgorithm.py",
        line 100, in defineCharacteristicsFromFile<br>
            'Problem with line: %d', 'ScriptAlgorithm') %
        (self.descriptionFile, line))<br>
        TypeError: %d format: a number is required, not str<br>
        <br>
      </font><br>
      <br>
      <table
        style="font-family:Verdana,Arial,Helvetica,sans-serif;font-size:80%">
        <tbody>
          <tr>
            <td style="vertical-align:top" width="50"><img
                src="cid:part1.01060303.01070507@fh-aachen.de" alt="FH
                Aachen" height="128" width="38"></td>
            <td width="500">
              <div class="vcard">
                <div style="font-weight:bold" class="fn n"> <span
                    class="title" style="">Prof. Dr.-Ing.</span> <span
                    class="given-name" style="">Jörg</span> <span
                    class="family-name" style="">Höttges</span> </div>
                <div>Fachbereich 2 - Bauingenieurwesen</div>
                Wasserwirtschaft und Bauinformatik<br>
                <div class="org" style="margin-top:1em">FH Aachen<br>
                  University of Applied Sciences</div>
                <div class="adr">
                  <!-- <span class="type" style="display:none">work</span> -->
                  <div class="street-address">Bayernallee 9</div>
                  <div> <span class="postal-code"
                      style="display:inline;margin-right:0.2em">52066</span>
                    <span class="locality" style="display:inline">Aachen</span>
                    | <span class="country-name"
                      style="display:inline;">Germany</span> </div>
                </div>
                <div class="tel" style="margin-top:1em"> T <span
                    class="value">+49 (0)241 6009-51176</span> </div>
                <div class="tel"> F <span class="value">+49 (0)241
                    6009-51206</span> </div>
                <a class="url" style="color:#00b5ad"
                  href="http://www.fh-aachen.de/hoettges/">http://www.fh-aachen.de/hoettges/</a><br>
                <a class="email" style="display:block;color:#00b5ad"
                  href="mailto:hoettges@fh-aachen.de">hoettges@fh-aachen.de</a>
              </div>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>