Skip to content

check-googlefonts fails with unhelpful error #5034

Description

@drj11

Observed behaviour

I just installed fontbakery 1.0.0 in a venv, without using the [googlefonts] extra, and now i get an error trying the check-googlefonts check. I guess i should be using the [googlefonts] extra, and i am about to, but the error message is unhelpful. (ironically, the older version that i was accidentally using gave a more helpful error message).

(venv) ; fontbakery check-googlefonts fonts/ttf/DorothyMatrixMLAB20250619-Regular.ttf
/Users/drj/prj/venv/lib/python3.10/site-packages/fontbakery/fonts_profile.py:103: UserWarning: Failed to load fontbakery.checks.vendorspecific.googlefonts.glyphsets.shape_languages: No module named 'shaperglot'
  warnings.warn("Failed to load %s: %s" % (import_path, e))
Traceback (most recent call last):
  File "/Users/drj/prj/venv/bin/fontbakery", line 8, in <module>
    sys.exit(main())
  File "/Users/drj/prj/venv/lib/python3.10/site-packages/fontbakery/cli.py", line 434, in main
    profile = profile_factory(get_module(args.profile))
  File "/Users/drj/prj/venv/lib/python3.10/site-packages/fontbakery/fonts_profile.py", line 151, in profile_factory
    add_checks_to_nascent_profile(
  File "/Users/drj/prj/venv/lib/python3.10/site-packages/fontbakery/fonts_profile.py", line 116, in add_checks_to_nascent_profile
    raise ValueError(f"Check '{check}' not found")
ValueError: Check 'googlefonts/glyphsets/shape_languages' not found
(venv) ; which fontbakery
/Users/drj/prj/venv/bin/fontbakery
(venv) ; fontbakery --version
1.0.0

Expected behaviour

Should give error message about installing with python -m pip install -U 'fontbakery[googlefonts]' or similar.

Resources and steps needed to reproduce

On macOS Python 3.10 but i doubt it matters.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions