googlefonts / googlefonts/gftools

Fix-nonhinting produces ImportError: cannot import name 'parse' from 'gflanguages'

Open
#1,075 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
283
Forks
73
Avg merge
21h 25m
Merged PRs (30d)
8

Description

Hi, I am trying to run fix-nonhinting on a variable font and I am getting the following error:

Traceback (most recent call last):
File "/Users/kostas/Google_Drive_hi@kostasbartsokas.com/Foundry5_Fonts/Peridot/venv/bin/gftools", line 8, in
sys.exit(main())
File "/Users/kostas/Google_Drive_hi@kostasbartsokas.com/Foundry5_Fonts/Peridot/venv/lib/python3.9/site-packages/gftools/scripts/__init__.py", line 97, in main
mod = import_module(f".{module}", package)
File "/usr/local/Cellar/python@3.9/3.9.7_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 850, in exec_module
File "", line 228, in _call_with_frames_removed
File "/Users/kostas/Google_Drive_hi@kostasbartsokas.com/Foundry5_Fonts/Peridot/venv/lib/python3.9/site-packages/gftools/scripts/fix_nonhinting.py", line 53, in
from gftools.fix import fix_unhinted_font
File "/Users/kostas/Google_Drive_hi@kostasbartsokas.com/Foundry5_Fonts/Peridot/venv/lib/python3.9/site-packages/gftools/fix.py", line 15, in
from gftools.util.google_fonts import _KNOWN_WEIGHTS
File "/Users/kostas/Google_Drive_hi@kostasbartsokas.com/Foundry5_Fonts/Peridot/venv/lib/python3.9/site-packages/gftools/util/google_fonts.py", line 41, in
from gflanguages import LoadLanguages, parse
ImportError: cannot import name 'parse' from 'gflanguages' (/Users/kostas/Google_Drive_hi@kostasbartsokas.com/Foundry5_Fonts/Peridot/venv/lib/python3.9/site-packages/gflanguages/__init__.py)

Any ideas what is causing it?
I am running gftools 0.9.77.dev10+gb025165 and I haven't had issues with previous versions.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.