-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Loading Glyphs file failed: 'str' object has no attribute 'read' #1033
Comments
I suspect it might be related to these changes googlefonts/glyphsLib#932 released with glyphsLib 6.3.0. I'll take a look, thank you |
actually I tried this locally and all tests pass even with latest glyphsLib 6.3.0 so I don't think it's that. |
also try use |
In Debian 12, glyphslib is old version 6.0.6+ds1-1. But there are other test not pass, I also think that it is caused by old software verison in Debian 12.
|
the minimum required versions of fontmake (as with any python project) at any given time are listed in its setup.py's |
In Debian 12, when I build , test has many errors:
cd .pybuild/cpython3_3.11/build
python3.11 -m pytest tests
`
FAILED tests/test_main.py::test_main_export_custom_ufo_structure[package-False] - SystemExit: fontmake: Error: In 'tests/data/GlyphsUnitTestSans.glyphs': Loading Glyphs file failed: 'str' object has no attribute 'read'
FAILED tests/test_main.py::test_main_export_custom_ufo_structure[package-True] - SystemExit: fontmake: Error: In 'tests/data/GlyphsUnitTestSans.glyphs': Loading Glyphs file failed: 'str' object has no attribute 'read'
FAILED tests/test_main.py::test_main_export_custom_ufo_structure[zip-False] - SystemExit: fontmake: Error: In 'tests/data/GlyphsUnitTestSans.glyphs': Loading Glyphs file failed: 'str' object has no attribute 'read'
FAILED tests/test_main.py::test_main_export_custom_ufo_structure[zip-True] - SystemExit: fontmake: Error: In 'tests/data/GlyphsUnitTestSans.glyphs': Loading Glyphs file failed: 'str' object has no attribute 'read'
============================================== 39 failed, 38 passed, 6 skipped, 6 warnings in 8.39s ==============================================
`
The text was updated successfully, but these errors were encountered: