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.

TypeError: '<' not supported between instances of 'int' and 'UFOFormatVersion'

See original GitHub issue

I’m getting this error from checkoutlinesufo after updating FonTools:

$ checkoutlinesufo -e -q tests/checkoutlinesufo_data/input/ufo2.ufo
Traceback (most recent call last):
  File "python/afdko/checkoutlinesufo.py", line 1109, in <module>
    main()
  File "python/afdko/checkoutlinesufo.py", line 1103, in main
    run(sys.argv[1:])
  File "python/afdko/checkoutlinesufo.py", line 1092, in run
    font_file.save()
  File "python/afdko/checkoutlinesufo.py", line 136, in save
    layerName=PROCD_GLYPHS_LAYER_NAME, defaultLayer=False)
  File "/fonttools/Lib/fontTools/ufoLib/__init__.py", line 1440, in getGlyphSet
    self._formatVersion < UFOFormatVersion.FORMAT_3_0
TypeError: '<' not supported between instances of 'int' and 'UFOFormatVersion'

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
josh-hadleycommented, May 19, 2020

I know full well why that hack is there, it’s just for RF UFO2’s layers that was a hack, you can’t get around that, so…hack on.

AFDKO will “hack on”, but not forever: https://github.com/adobe-type-tools/afdko/issues/1135

0reactions
khaledhosnycommented, May 18, 2020

Not really a FontTools bug.

Read more comments on GitHub >

github_iconTop Results From Across the Web

' not supported between instances of 'int' and 'function' - Stack ...
I added int(0) thinking it would help, obvs not. It is not 100% complete as I want to fix this error before moving...
Read more >
TypeError: < not supported between instances of str and int
The Python TypeError: '<' not supported between instances of 'str' and 'int' occurs when we use a comparison operator between values of type...
Read more >
' not supported between instances of 'int' and 'bytes'
Hi,. I am getting this error when I am starting a participant in demo. This is the traceback: Exception in ASGI application.
Read more >
TypeError: '>' not supported between instances of 'int ... - GitHub
Informations Qiskit version: 0.20.0 Python version: 3.7.8 Operating system: posix What is the current behavior?
Read more >
Solve typeerror not supported between instances of str and int ...
Problem. When comparing two numbers, typically using an IF statement in Python3, you get the following error: typeerror <, > , <= not...
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