The plugin written can be used in glyphs3, but cannot be used in glyphs2

It can be displayed and used in glyphs3, but not displayed in glyphs3 with an error:

Traceback (most recent call last):
File "__boot__.py", line 1, in <module>
t# def _ site_ packages():
NameError: name 't' is not defined
Traceback (most recent call last):
File "<macro>", line 5, in <module>
UnicodeDecodeError: 'ascii' codec can't decode byte 0xcc in position 96: ordinal not in range(128)
Traceback (most recent call last):
File "GlyphsApp/GlyphsApp/plugins.py", line 414, in init
File "plugin.py", line 25, in settings
callback=self.clikUp_, value=Glyphs.defaults['com.jingmingtao.Addpart.up'])
File "vanillaCheckBox.py", line 75, in __ init__
self.set(value)
File "vanillaCheckBox.py", line 83, in set
self._ nsObject.setState_ (value)
ValueError: depythonifying 'long long', got 'NoneType'
Traceback (most recent call last):
File "GlyphsApp/GlyphsApp/plugins.py", line 155, in init
File "plugin.py", line 44, in settings
self.w.group = Group("auto")
File "vanillaWindows.py", line 203, in __ setattr__
_ setAtt

It looks like you are doing string processing. The way strings behave is quite different between Python 2 and Python 3. Glyphs 2 uses Python 2 and Glyphs 3 uses Python 3. You would probably need to write the related code twice, once for Python 2 and once for Python 3, but it’s hard to tell without seeing code directly.

thanks very much!!!