Gftools builder: AttributeError: 'FoundANone' object has no attribute 'argv'
See original GitHub issueI’m trying to export a font which is quite simple (one weight axes, a regular and an italic), and I still have this error when I use gftools builder. You can find the files here: [https://github.com/emmamarichal/Familjen-Grotesk] Last commit: 24fd988
Thanks 😃 cc @RosaWagner
Error report
I run gftools builder config.yaml
INFO:fontmake.font_project:Building master UFOs and designspace from Glyphs source INFO:fontmake.font_project:Building variable font …/fonts/variable/FamiljenGrotesk-VF.ttf Traceback (most recent call last): File “/Users/marichalemma/Google/env/lib/python3.9/site-packages/fontmake/font_project.py”, line 968, in run_from_designspace self._run_from_designspace_interpolatable( File “/Users/marichalemma/Google/env/lib/python3.9/site-packages/fontmake/font_project.py”, line 1048, in _run_from_designspace_interpolatable self.build_variable_font( File “/Users/marichalemma/Google/env/lib/python3.9/site-packages/fontmake/font_project.py”, line 339, in build_variable_font font = ufo2ft.compileVariableTTF( File “/Users/marichalemma/Google/env/lib/python3.9/site-packages/ufo2ft/init.py”, line 554, in compileVariableTTF varfont = varLib.build( File “/Users/marichalemma/Google/env/lib/python3.9/site-packages/fontTools/varLib/init.py”, line 926, in build _merge_OTL(vf, model, master_fonts, axisTags) File “/Users/marichalemma/Google/env/lib/python3.9/site-packages/fontTools/varLib/init.py”, line 619, in _merge_OTL merger.mergeTables(font, master_fonts, [‘GSUB’, ‘GDEF’, ‘GPOS’]) File “/Users/marichalemma/Google/env/lib/python3.9/site-packages/fontTools/varLib/merger.py”, line 139, in mergeTables self.mergeThings(font[tag], [m[tag] if tag in m else None File “/Users/marichalemma/Google/env/lib/python3.9/site-packages/fontTools/varLib/merger.py”, line 1044, in mergeThings super(VariationMerger, self).mergeThings(out, lst) File “/Users/marichalemma/Google/env/lib/python3.9/site-packages/fontTools/varLib/merger.py”, line 127, in mergeThings self.mergeObjects(out, lst) File “/Users/marichalemma/Google/env/lib/python3.9/site-packages/fontTools/varLib/merger.py”, line 102, in mergeObjects mergerFunc(self, value, values) File “/Users/marichalemma/Google/env/lib/python3.9/site-packages/fontTools/varLib/merger.py”, line 1044, in mergeThings super(VariationMerger, self).mergeThings(out, lst) File “/Users/marichalemma/Google/env/lib/python3.9/site-packages/fontTools/varLib/merger.py”, line 127, in mergeThings self.mergeObjects(out, lst) File “/Users/marichalemma/Google/env/lib/python3.9/site-packages/fontTools/varLib/merger.py”, line 102, in mergeObjects mergerFunc(self, value, values) File “/Users/marichalemma/Google/env/lib/python3.9/site-packages/fontTools/varLib/merger.py”, line 1044, in mergeThings super(VariationMerger, self).mergeThings(out, lst) File “/Users/marichalemma/Google/env/lib/python3.9/site-packages/fontTools/varLib/merger.py”, line 127, in mergeThings self.mergeObjects(out, lst) File “/Users/marichalemma/Google/env/lib/python3.9/site-packages/fontTools/varLib/merger.py”, line 102, in mergeObjects mergerFunc(self, value, values) File “/Users/marichalemma/Google/env/lib/python3.9/site-packages/fontTools/varLib/merger.py”, line 1044, in mergeThings super(VariationMerger, self).mergeThings(out, lst) File “/Users/marichalemma/Google/env/lib/python3.9/site-packages/fontTools/varLib/merger.py”, line 129, in mergeThings self.mergeLists(out, lst) File “/Users/marichalemma/Google/env/lib/python3.9/site-packages/fontTools/varLib/merger.py”, line 112, in mergeLists self.mergeThings(value, values) File “/Users/marichalemma/Google/env/lib/python3.9/site-packages/fontTools/varLib/merger.py”, line 1044, in mergeThings super(VariationMerger, self).mergeThings(out, lst) File “/Users/marichalemma/Google/env/lib/python3.9/site-packages/fontTools/varLib/merger.py”, line 125, in mergeThings mergerFunc(self, out, lst) File “/Users/marichalemma/Google/env/lib/python3.9/site-packages/fontTools/varLib/merger.py”, line 833, in merge merger.mergeLists(self.SubTable, subtables) File “/Users/marichalemma/Google/env/lib/python3.9/site-packages/fontTools/varLib/merger.py”, line 112, in mergeLists self.mergeThings(value, values) File “/Users/marichalemma/Google/env/lib/python3.9/site-packages/fontTools/varLib/merger.py”, line 1044, in mergeThings super(VariationMerger, self).mergeThings(out, lst) File “/Users/marichalemma/Google/env/lib/python3.9/site-packages/fontTools/varLib/merger.py”, line 125, in mergeThings mergerFunc(self, out, lst) File “/Users/marichalemma/Google/env/lib/python3.9/site-packages/fontTools/varLib/merger.py”, line 267, in merge merger.mergeThings(self.Value, [v.Value for v in lst]) File “/Users/marichalemma/Google/env/lib/python3.9/site-packages/fontTools/varLib/merger.py”, line 1038, in mergeThings raise FoundANone(self, got=lst) fontTools.varLib.errors.FoundANone: <exception str() failed>
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File “/Users/marichalemma/Google/env/lib/python3.9/site-packages/gftools/builder/init.py”, line 289, in build_variable output_files = self.run_fontmake(source, args) File “/Users/marichalemma/Google/env/lib/python3.9/site-packages/gftools/builder/init.py”, line 329, in run_fontmake FontProject().run_from_glyphs(source, **args) File “/Users/marichalemma/Google/env/lib/python3.9/site-packages/fontmake/font_project.py”, line 719, in run_from_glyphs self.run_from_designspace(designspace_path, **kwargs) File “/Users/marichalemma/Google/env/lib/python3.9/site-packages/fontmake/font_project.py”, line 982, in run_from_designspace raise FontmakeError( fontmake.errors.FontmakeError: <exception str() failed>
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File “/Users/marichalemma/Google/env/bin/gftools-builder.py”, line 83, in <module> builder.build() File “/Users/marichalemma/Google/env/lib/python3.9/site-packages/gftools/builder/init.py”, line 186, in build self.build_variable() File “/Users/marichalemma/Google/env/lib/python3.9/site-packages/gftools/builder/init.py”, line 294, in build_variable self.logger.error(“Could not build variable font: %s” % e) File “/Users/marichalemma/Google/env/lib/python3.9/site-packages/fontmake/errors.py”, line 33, in str cause = str(self.cause) if self.cause is not None else None File “/Users/marichalemma/Google/env/lib/python3.9/site-packages/fontTools/varLib/errors.py”, line 61, in str offender_index, offender = self.offender File “/Users/marichalemma/Google/env/lib/python3.9/site-packages/fontTools/varLib/errors.py”, line 105, in offender cause = self.argv[0] AttributeError: ‘FoundANone’ object has no attribute ‘argv’
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (7 by maintainers)
Top GitHub Comments
Great - now I can reproduce, but I have no idea what this error means… 😃
because they disabled the manual kern feature with this commit https://github.com/Familjen-Sthlm/Familjen-Grotesk/commit/0399c721c994393fb6aac4646ce9cd26bdba07dc
try checking out just before that