<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Exception raise during font generation]]></title><description><![CDATA[<p dir="auto">Hi Frederik,</p>
<p dir="auto">When our code calls "generate" to generate a TrueType font (in RobFont 1.6 build 1410152315),<br />
we sometimes get the following error :</p>
<pre><code class="language-console">File "lib/fontObjects/robofabWrapper.pyc", line 3834, in generate
File "lib/fontObjects/doodleFont.pyc", line 909, in generate
File "lib/fontObjects/doodleFontCompiler/ttfCompiler.pyc", line 575, in compile
File "shutil.pyc", line 256, in rmtree
File "shutil.pyc", line 254, in rmtree
OSError: [Errno 66] Directory not empty: '/var/folders/vk/6h2qct291rn53wdyxh2wzpw40000gp/T/tmppr3tfd'
</code></pre>
<p dir="auto">It seems a bit weird. I'm not sure if that's a bug in our code in RF.</p>
<p dir="auto">The path to the temporary directory is not generated by our code, so my guess is that it is generated by RoboFont.</p>
<p dir="auto">I hope you can take a few minutes to check if there may be some easy-to-fix bug in there? or maybe a workaround.</p>
<p dir="auto">Thank you,<br />
Samuel</p>
]]></description><link>https://forum.robofont.com/topic/383/exception-raise-during-font-generation</link><generator>RSS for Node</generator><lastBuildDate>Sat, 07 Mar 2026 02:23:55 GMT</lastBuildDate><atom:link href="https://forum.robofont.com/topic/383.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 10 Jun 2015 10:07:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Exception raise during font generation on Mon, 01 Jan 2018 14:19:59 GMT]]></title><description><![CDATA[<p dir="auto">Hi Frederik,</p>
<p dir="auto">When our code calls "generate" to generate a TrueType font (in RobFont 1.6 build 1410152315),<br />
we sometimes get the following error :</p>
<pre><code class="language-console">File "lib/fontObjects/robofabWrapper.pyc", line 3834, in generate
File "lib/fontObjects/doodleFont.pyc", line 909, in generate
File "lib/fontObjects/doodleFontCompiler/ttfCompiler.pyc", line 575, in compile
File "shutil.pyc", line 256, in rmtree
File "shutil.pyc", line 254, in rmtree
OSError: [Errno 66] Directory not empty: '/var/folders/vk/6h2qct291rn53wdyxh2wzpw40000gp/T/tmppr3tfd'
</code></pre>
<p dir="auto">It seems a bit weird. I'm not sure if that's a bug in our code in RF.</p>
<p dir="auto">The path to the temporary directory is not generated by our code, so my guess is that it is generated by RoboFont.</p>
<p dir="auto">I hope you can take a few minutes to check if there may be some easy-to-fix bug in there? or maybe a workaround.</p>
<p dir="auto">Thank you,<br />
Samuel</p>
]]></description><link>https://forum.robofont.com/post/382</link><guid isPermaLink="true">https://forum.robofont.com/post/382</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Mon, 01 Jan 2018 14:19:59 GMT</pubDate></item><item><title><![CDATA[Reply to Exception raise during font generation on Mon, 01 Jan 2018 14:20:48 GMT]]></title><description><![CDATA[<p dir="auto">By the way, the temporary directory mentioned in the error message still exists after the exception is raised.<br />
It contains an empty file:</p>
<pre><code class="language-console">$ ls -l tmppr3tfd
total 0
-rw-r--r--  1 username  usergroup  0 Jun 10 13:45 compile.otf
</code></pre>
]]></description><link>https://forum.robofont.com/post/1372</link><guid isPermaLink="true">https://forum.robofont.com/post/1372</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Mon, 01 Jan 2018 14:20:48 GMT</pubDate></item><item><title><![CDATA[Reply to Exception raise during font generation on Fri, 05 Jan 2018 22:17:52 GMT]]></title><description><![CDATA[<p dir="auto">weird, <code>shutil.rmtree</code> must be able to remove a directory that is not empty.</p>
<p dir="auto">but the file size is zero of that <code>compile.otf</code> file</p>
<p dir="auto">I guess something went wrong while generating, you can print out <code>font.generate(...)</code> to see what or where it failed</p>
<p dir="auto">good luck!</p>
]]></description><link>https://forum.robofont.com/post/1374</link><guid isPermaLink="true">https://forum.robofont.com/post/1374</guid><dc:creator><![CDATA[frederik]]></dc:creator><pubDate>Fri, 05 Jan 2018 22:17:52 GMT</pubDate></item><item><title><![CDATA[Reply to Exception raise during font generation on Mon, 01 Jan 2018 14:21:57 GMT]]></title><description><![CDATA[<p dir="auto">Looking at this StackOverflow: <a href="http://stackoverflow.com/a/21966211/2037879" rel="nofollow">http://stackoverflow.com/a/21966211/2037879</a><br />
It looks like this error is reported by default upon trying to delete non-empty directory and may be bypassed by setting <code>ignore_errors=True</code> in rmtree parameters.</p>
]]></description><link>https://forum.robofont.com/post/1375</link><guid isPermaLink="true">https://forum.robofont.com/post/1375</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Mon, 01 Jan 2018 14:21:57 GMT</pubDate></item><item><title><![CDATA[Reply to Exception raise during font generation on Fri, 05 Jan 2018 22:18:14 GMT]]></title><description><![CDATA[<p dir="auto">I'm aware of that option and this will be implemented, but still there is something wrong with the provided data to the binary ttf compiler...</p>
]]></description><link>https://forum.robofont.com/post/1376</link><guid isPermaLink="true">https://forum.robofont.com/post/1376</guid><dc:creator><![CDATA[frederik]]></dc:creator><pubDate>Fri, 05 Jan 2018 22:18:14 GMT</pubDate></item></channel></rss>