fonttools / fontbakery

šŸ§ A font quality assurance tool for everyone
https://fontbakery.readthedocs.io
Apache License 2.0
534 stars 99 forks source link

Problem with fontbakery.com #4639

Closed schriftgestalt closed 2 months ago

schriftgestalt commented 2 months ago

When I open fontbakery.com, after a few seconds I get this:

Traceback (most recent call last):
  File "/lib/python311.zip/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "", line 1209, in _gcd_import
  File "", line 1181, in _find_and_load
  File "", line 1152, in _find_and_load_unlocked
  File "", line 690, in _load_unlocked
  File "", line 940, in exec_module
  File "", line 241, in _call_with_frames_removed
  File "/home/pyodide/fbwebapi.py", line 33, in 
    import glyphsets
  File "/lib/python3.11/site-packages/glyphsets/__init__.py", line 34, in 
    assert type(GLYPHDATA) is glyphsLib.glyphdata.GlyphData
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError
guidoferreyra commented 2 months ago

Same here.

yanone commented 2 months ago

@felipesanches This code got introduced way back when I startet revamping glyphsets, so pinning it to 0.6.17 doesn't even help. (And also the error persists on fontbakery.com)

In any case, this code was a workaround for GLYPHDATA in glyphsLib not properly loading unless a get_glyph() command was issued first. I removed the lines now and glyphsets own CI passes. Do you have a way to test the repo code in fontbakery.com before me releasing a new package? Can you link to the repo directly?

felipesanches commented 2 months ago

I'm afraid we don't have an easy way of testing fontbakery.com with a dependency installed from a git repo. Maybe @simoncozens knows some way of doing it?

simoncozens commented 2 months ago

Yep, we can check out the gh-pages branch locally and change the pip commands. I'll have a go later.

felipesanches commented 2 months ago

great, thanks!

simoncozens commented 2 months ago

I can confirm the git version works fine. (It wasn't as simple as pointing micropip at the repo, because it doesn't support loading packages from git - I had to build a wheel and copy that into the gh-pages directory and then have it load that. But hey, it works.)

@yanone I would consider removing all those commented out lines; GLYPHDATA doesn't seem to be used in glyphsets at all.

felipesanches commented 2 months ago

thanks, @simoncozens

@yanone, I'll update pyproject.toml to unpin glyphsets once we get a new version of it released

guidoferreyra commented 2 months ago

TN profile is failing now and it shows the following: imagen

Iā€™m not getting that error either on the latest commit nor latest stable release (0.12.1)

felipesanches commented 2 months ago

TN profile is failing now and it shows the following: imagen

Iā€™m not getting that error either on the latest commit nor latest stable release (0.12.1)

Are you running the web-version via a checkout of gh-pages locally on your computer?

Or is it a screenshot of the publicly deployed fontbakery.com?

felipesanches commented 2 months ago

What is puzzling to me right now is that this screenshot has an ImportError for DecomposingFilterPointPen from fontTools.pens.filterPen.

So, I cannot see how would it be possible for this to go wrong, considering the resolution of all these dependency requirements.

felipesanches commented 2 months ago

I've just released FontBakery v0.12.2 and fontbakery.com seems to be working nicely. But I will leave this issue open for a while, to discuss @guidoferreyra's problem which sounds to me like a broken dependency resolution on his local environment.

guidoferreyra commented 2 months ago

Are you running the web-version via a checkout of gh-pages locally on your computer?

Or is it a screenshot of the publicly deployed fontbakery.com?

Sorry I didnā€˜t add much context, thatā€™s screenshot is from Fontbakery.com.

Web version is working for other profiles, but if you select TNā€˜s, drop a font and wait a bit you will see the error message.

felipesanches commented 2 months ago

I am unable to replicate the problem here. Can you still get that error now that v0.12.2 was released?

guidoferreyra commented 2 months ago

Now I see it only happens with one specific font. Unfortunately I canā€˜t share that font. Anyway I gues this is fixed, I will keep an eye in case the error is raised for another font.

Thanks!!

felipesanches commented 2 months ago

thanks!