question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Gftools builder: AttributeError: 'FoundANone' object has no attribute 'argv'

See original GitHub issue

I’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:open
  • Created 2 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
simoncozenscommented, Feb 25, 2022

Great - now I can reproduce, but I have no idea what this error means… 😃

0reactions
anthrotypecommented, Feb 25, 2022

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

'module' object has no attribute 'argv'" when using Python.h ...
Conceptually, sys.argv should contain the arguments that Python was called with (and what it was called under). What should it have if it ......
Read more >
Issue 839151: attempt to access sys.argv when it doesn\'t exist
msg18953 ‑ (view) Author: Bram Moolenaar (vimboss) Date: 2003‑11‑10 10:56 msg18954 ‑ (view) Author: Neal Norwitz (nnorwitz) * Date: 2003‑11‑10 15:02 msg18955 ‑ (view) Author:...
Read more >
[Solved] AttributeError: 'module' object has no attribute
Click here to subscribe - https://www.youtube.com/channel/UCeVMnSShP_Iviwkknt83cww▻Instagram ...
Read more >
fontmake - bytemeta
Gftools builder : AttributeError: 'FoundANone' object has no attribute 'argv' · Error with ttf autohint · CompatibilityChecker: improve output.
Read more >
Googlefonts Fontmake Statistics & Issues - Codesti
Gftools builder : AttributeError: 'FoundANone' object has no attribute 'argv', open, 11, 2022-02-18, 2022-07-30, -. Error with ttf autohint, closed ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found