<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Thanks, Andrew.  So now we know that errno is EACCES, which corresponds to a Windows filesystem error of ERROR_ACCESS_DENIED or ERROR_SHARING_VIOLATION.  I strongly suspect the latter.</div><div dir="ltr"><br></div><div>So there are two options:</div><div><br></div><div>1) retry a few times (e.g. 5 times over 5 seconds), in the hope that the sharing violation will clear up, which it probably will because antivirus software only takes a fraction of a second to scan a small file.</div><div><br></div><div>2) write to a temporary file which is then renamed to ..Python.cxx (in which case the 'rename' operation has to retry if it encounters a sharing violation).</div><div><br></div><div>The latter is what CMake does (its "cmSystemTools::RenameFile()" function retries, so cmake doesn't seem to have any magic that makes retries unnecessary).</div><div><br></div><div>I'm tempted to go with (1) due to its simplicity, and because if we used a random temporary file we'd have to find some way to remove that file if vtkWrapPython didn't exit cleanly.</div><div><br></div><div> - David</div><div><br></div><div dir="ltr"><br><div class="gmail_quote"><div dir="ltr">On Thu, Sep 27, 2018 at 10:14 PM Andrew Maclean <<a href="mailto:andrew.amaclean@gmail.com">andrew.amaclean@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div style="font-size:small">Just did a build and I have one failure:</div><div style="font-size:small"><div>[381/4832] Python Wrapping - generating vtkRungeKutta2Python.cxx</div><div>FAILED: Wrapping/Python/vtkRungeKutta2Python.cxx </div><div>cmd.exe /C "cd /D C:\Users\amaclean\Development\Kitware\build\VTK-Release\Wrapping\Python && C:\Users\amaclean\Development\Kitware\build\VTK-Release\bin\vtkWrapPython-9.0.exe @C:/Users/amaclean/Development/Kitware/build/VTK-Release/Wrapping/Python/vtkCommonMathPython.Release.args -o C:/Users/amaclean/Development/Kitware/build/VTK-Release/Wrapping/Python/vtkRungeKutta2Python.cxx C:/Users/amaclean/Development/Kitware/src/VTK/Common/Math/vtkRungeKutta2.h"</div><div>Error 13 opening output file C:/Users/amaclean/Development/Kitware/build/VTK-Release/Wrapping/Python/vtkRungeKutta2Python.cxx: Permission denied<br></div></div></div></div>
</blockquote></div></div></div></div></div></div>