title: Python: FileNotFoundError: [Errno 2] No such file or directory:
body: <p>I am using docxtpl and format function to generate a several of word documents but I got the following error message:</p>
  <pre><code>Traceback (most recent call last):
  File &quot;D:\Final report Card\Final Report Card.py&quot;, line 68, in &lt;module&gt;
  tpl.save(&quot;./final Report Cards/{}_Final Report Cards.docx&quot;.format(file_name))
  File &quot;C:\Users\AppData\Roaming\Python\Python39\site-packages\docxtpl\__init__.py&quot;, line 632, in save self.docx.save(filename, *args, **kwargs)
  File &quot;C:\Users\AppData\Roaming\Python\Python39\site-packages\docx\document.py&quot;, line 135, in save self._part.save(path_or_stream)
  File &quot;C:\Users\AppData\Roaming\Python\Python39\site-packages\docx\parts\document.py&quot;, line 111, in save self.package.save(path_or_stream)
  File &quot;C:\Users\AppData\Roaming\Python\Python39\site-packages\docx\opc\package.py&quot;, line 172, in save PackageWriter.write(pkg_file, self.rels, self.parts)
  File &quot;C:\Users\AppData\Roaming\Python\Python39\site-packages\docx\opc\pkgwriter.py&quot;, line 32, in write phys_writer = PhysPkgWriter(pkg_file)
  File &quot;C:\Users\AppData\Roaming\Python\Python39\site-packages\docx\opc\phys_pkg.py&quot;, line 141, in __init__self._zipf = ZipFile(pkg_file, 'w', compression=ZIP_DEFLATED)
  File &quot;C:\Program Files\Python39\lib\zipfile.py&quot;, line 1239, in __init__self.fp = io.open(file, filemode)
  FileNotFoundError: [Errno 2] No such file or directory: './final Report Cards/Tester_111111_A1B _Final Report Cards.docx'
  </code></pre>
  <p>The code is:</p>
  <pre><code>os.mkdir(&quot;./Final Report Cards_{}&quot;.format(context[&quot;cohort&quot;]))
    for context in contexts:
    tpl = DocxTemplate(&quot;Final report card  template for Pathway.docx&quot;)
    tpl.render(context)
    file_name = str(context[&quot;name&quot;]) + &quot;_&quot; + str(context[&quot;student_number&quot;]) + &quot;_&quot; + str(context[&quot;cohort&quot;])
    tpl.save(&quot;./final Report Cards/{}_Final Report Cards.docx&quot;.format(file_name))
  </code></pre>
  <p>Thank you!</p>