TalkingLeaves Bugs

Hello everyone,

I stumbled across the TalkingLeaves GitHub page quite by chance; I think it’s rather brilliant and I reckon it could be a great help with various projects. However, I can’t seem to install it. Glyphs is giving me the following error:

Une extension a causé une défaillance du logiciel
L’extension TalkingLeaves.glyphsPlugin a causé une défaillance du logiciel. Veuillez la mettre à jour avec le gestionnaire d’extensions ou encore la télécharger à nouveau. Détails:Traceback (most recent call last):

  File "plugin.py", line 49, in openWindow_
    self.tl = TalkingLeaves()
              ^^^^^^^^^^^^^^^

  File "__init__.py", line 102, in __init__
    self.data = data.Data()
                ^^^^^^^^^^^

  File "data.py", line 12, in __init__
    self.loadFromSource(DataSourceHyperglot)

  File "data.py", line 21, in loadFromSource
    ds = dataSource()
         ^^^^^^^^^^^^

  File "data.py", line 73, in __init__
    self.load()

  File "data.py", line 125, in load
    self.scripts[scriptId]['speakers'] += lang.get('speakers', 0) or 0

TypeError: unsupported operand type(s) for +=: 'int' and 'str'

Thank you so much for your help!!
Lucas

That would be better put in a issue in the TalkingLeaves GitHub page.

1 Like

I opened an issue about this more than month ago. Hyperglot changed the possible types for speaker data in the latest version. TalkingLeaves expects only integers, but now str is possible if the speaker nunber is unknown.

I fixed this in my local installation, but haven’t had a response from @justinpenner yet about the fix.

@luxpio @SCarewe Sorry for the long wait! This should be fixed now. Let me know if there’s still any issues.

1 Like

No worries, everything’s working now ;)) thank you sooo much!

Thanks, Justin!