Plugin Manager even if checked does not work

Hello guys,

I could not see the plugins on Plugin Manager to work even if checked on current Glyphs version 2.6.2 (1243) and current conditions — MacOS v.10.14.6 (18G95).

However the scripts from github are working fine, i…e the vanilla addson is fine.

Do you know where is the problem?

Thanks in advance,
Nikolay

What do you mean with the Plugin Manager does not work? Is the window not showing up or isn’t it installing the plugins. The later most likely means that you have no working git installation.

The Plugin Manager window shows up, the installation goes right and later the installed plugins have check marks positions on the Reporter.
But even if these are checked they do not show themselves within the Edit View. E.g. the circle on the screenshot does not have left extreme, but the plugin Red Arrows does not indicate nothing. As it happens with Stem Thickness, Tops and Bottoms etc.

Is there any error message in macro panel?

There was a problem in the vanilla module. That is fixed now. Please update the modules in Preferences > Addons.

Concerning vanilla there is no problem now. When I write the code:

import vanilla
print vanilla

The result is fine:

<module ‘vanilla’ from ‘/Users/niki/Library/Application Support/Glyphs/Scripts/vanilla/init.pyc’>

However, still the plugins don’t show proper function.


Yesterday I updated the Glyphs from zero (as CleanMyMac deleted everything) by installing all the plugins, scripts etc.
So at opening Glyphs it gave me such error message at the macro which led me to the Color Lable plugin, so I later deinstalled it.

Traceback (most recent call last):
File “main.py”, line 16, in
_run(‘plugin.py’)
File “main.py”, line 14, in _run
exec(compile(source, path, ‘exec’), globals(), globals())
File “plugin.py”, line 83, in
shutil.copy(GLYPHS_PLIST_FILE, FLM_BACKUP_ORIGINAL_FILE)
File “shutil.py”, line 119, in copy
copyfile(src, dst)
File “shutil.py”, line 82, in copyfile
with open(src, ‘rb’) as fsrc:
IOError: [Errno 2] No such file or directory: ‘/Users/niki/Library/Application Support/Glyphs/CustomFilter.plist’
Traceback (most recent call last):
File “”, line 5, in
UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xcc in position 93: ordinal not in range(128)
init: argument of type ‘NoneType’ is not iterable

Later by opening Glyphs it gave me this error message:
Plugins_Traceback (most recent call last).zip (1.7 KB)

Traceback (most recent call last):
File “main.py”, line 16, in
_run(‘plugin.py’)
File “main.py”, line 14, in _run
exec(compile(source, path, ‘exec’), globals(), globals())
File “plugin.py”, line 83, in
shutil.copy(GLYPHS_PLIST_FILE, FLM_BACKUP_ORIGINAL_FILE)
File “shutil.py”, line 119, in copy
copyfile(src, dst)
File “shutil.py”, line 82, in copyfile
with open(src, ‘rb’) as fsrc:
IOError: [Errno 2] No such file or directory: ‘/Users/niki/Library/Application Support/Glyphs/CustomFilter.plist’
Traceback (most recent call last):
File “boot.py”, line 47, in
_run(‘plugin.py’)
File “boot.py”, line 45, in _run
execfile(path, globals(), globals())
File “plugin.py”, line 14, in
import KernKraftModule as KKM
File “KernKraftModule.py”, line 37, in
from vanilla import *
File “init.py”, line 1, in
from vanilla.vanillaBase import VanillaBaseObject, VanillaBaseControl, VanillaError
File “vanillaBase.py”, line 4, in
from AppKit import NSFont, NSRegularControlSize, NSSmallControlSize, NSMiniControlSize,
ImportError: cannot import name NSLayoutAttributeLastBaseline
Traceback (most recent call last):
File “main.py”, line 11, in
_run(‘plugin.py’)
File “main.py”, line 9, in _run
execfile(path, globals(), globals())
File “plugin.py”, line 17, in
from vanilla import *
File “init.py”, line 1, in
from vanilla.vanillaBase import VanillaBaseObject, VanillaBaseControl, VanillaError
File “vanillaBase.py”, line 4, in
from AppKit import NSFont, NSRegularControlSize, NSSmallControlSize, NSMiniControlSize,
ImportError: cannot import name NSLayoutAttributeLastBaseline
Traceback (most recent call last):
File “main.py”, line 11, in
_run(‘plugin.py’)
File “main.py”, line 9, in _run
execfile(path, globals(), globals())
File “plugin.py”, line 19, in
from SkedgeModule import CodeEditor
File “SkedgeModule.py”, line 161, in
from vanilla import *
File “init.py”, line 1, in
from vanilla.vanillaBase import VanillaBaseObject, VanillaBaseControl, VanillaError
File “vanillaBase.py”, line 4, in
from AppKit import NSFont, NSRegularControlSize, NSSmallControlSize, NSMiniControlSize,
ImportError: cannot import name NSLayoutAttributeLastBaseline
Traceback (most recent call last):
File “plugin.py”, line 7, in
from toucheTool import ToucheTool
File “toucheTool.py”, line 3, in
from Touche import Touche
File “Touche.py”, line 3, in
import SegmentsPen
File “SegmentsPen.py”, line 3, in
from fontTools.pens.basePen import BasePen
File “init.py”, line 1, in
from fontTools.misc.py23 import *
File “init.py”, line 3, in
from fontTools.misc.py23 import *
File “py23.py”, line 6, in
from contextlib import redirect_stderr, redirect_stdout
ImportError: cannot import name redirect_stderr
Traceback (most recent call last):
File “main.py”, line 11, in
_run(‘plugin.py’)
File “main.py”, line 9, in _run
execfile(path, globals(), globals())
File “plugin.py”, line 16, in
from vanilla import *
File “init.py”, line 1, in
from vanilla.vanillaBase import VanillaBaseObject, VanillaBaseControl, VanillaError
File “vanillaBase.py”, line 4, in
from AppKit import NSFont, NSRegularControlSize, NSSmallControlSize, NSMiniControlSize,
ImportError: cannot import name NSLayoutAttributeLastBaseline
Traceback (most recent call last):
File “main.py”, line 16, in
_run(‘plugin.py’)
File “main.py”, line 14, in _run
exec(compile(source, path, ‘exec’), globals(), globals())
File “plugin.py”, line 15, in
from vanilla import *
File “init.py”, line 1, in
from vanilla.vanillaBase import VanillaBaseObject, VanillaBaseControl, VanillaError
File “vanillaBase.py”, line 4, in
from AppKit import NSFont, NSRegularControlSize, NSSmallControlSize, NSMiniControlSize,
ImportError: cannot import name NSLayoutAttributeLastBaseline
Traceback (most recent call last):
File “main.py”, line 11, in
_run(‘plugin.py’)
File “main.py”, line 9, in _run
execfile(path, globals(), globals())
File “plugin.py”, line 13, in
from vanilla import *
File “init.py”, line 1, in
from vanilla.vanillaBase import VanillaBaseObject, VanillaBaseControl, VanillaError
File “vanillaBase.py”, line 4, in
from AppKit import NSFont, NSRegularControlSize, NSSmallControlSize, NSMiniControlSize,
ImportError: cannot import name NSLayoutAttributeLastBaseline
Traceback (most recent call last):
File “main.py”, line 17, in
_run(‘plugin.py’)
File “main.py”, line 15, in _run
exec(compile(source, script, ‘exec’), globals(), globals())
File “plugin.py”, line 21, in
File “world.py”, line 102, in
from robofab.objects.objectsRF import CurrentFont, CurrentGlyph, RFont, RGlyph, OpenFont, NewFont, AllFonts
File “objectsRF.py”, line 4, in
from robofab.objects.objectsBase import BaseFont, BaseKerning, BaseGroups, BaseInfo, BaseFeatures, BaseLib,
File “objectsBase.py”, line 25, in
from robofab import ufoLib
File “ufoLib.py”, line 38, in
from robofab.glifLib import GlyphSet, READ_MODE, WRITE_MODE
File “glifLib.py”, line 19, in
from robofab.pens.pointPen import AbstractPointPen
File “pointPen.py”, line 145, in
from fontTools.pens.basePen import AbstractPen
File “init.py”, line 1, in
from fontTools.misc.py23 import *
File “init.py”, line 3, in
from fontTools.misc.py23 import *
File “py23.py”, line 6, in
from contextlib import redirect_stderr, redirect_stdout
ImportError: cannot import name redirect_stderr
Traceback (most recent call last):
File “boot.py”, line 47, in
_run(‘plugin.py’)
File “boot.py”, line 45, in _run
execfile(path, globals(), globals())
File “plugin.py”, line 16, in
from vanilla import *
File “init.py”, line 1, in
from vanilla.vanillaBase import VanillaBaseObject, VanillaBaseControl, VanillaError
File “vanillaBase.py”, line 4, in
from AppKit import NSFont, NSRegularControlSize, NSSmallControlSize, NSMiniControlSize,
ImportError: cannot import name NSLayoutAttributeLastBaseline
Traceback (most recent call last):
File “boot.py”, line 47, in
_run(‘plugin.py’)
File “boot.py”, line 45, in _run
execfile(path, globals(), globals())
File “plugin.py”, line 15, in
from vanilla import *
File “init.py”, line 1, in
from vanilla.vanillaBase import VanillaBaseObject, VanillaBaseControl, VanillaError
File “vanillaBase.py”, line 4, in
from AppKit import NSFont, NSRegularControlSize, NSSmallControlSize, NSMiniControlSize,
ImportError: cannot import name NSLayoutAttributeLastBaseline
Traceback (most recent call last):
File “”, line 5, in
UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xcc in position 117: ordinal not in range(128)

So I deleted all plugins and tried only with Reporter Toggle, Red Arrows, Stem Thickness, Tops and Bottoms and at the macro it gives me only the proper installing of vanilla nothing more.
Still the plugins do not show indication of functioning.

Best,
N.

The last error message shows the vanilla error.
Try

from vanilla import *

that should show the error.

If I type the command as one line it does not give any outcome in the macro panel.
If I type it on two lines as here:

from vanilla
import *

it produces this:

Typing as two lines doesn’t make sense.

Do you still get the long error message. Maybe restarting Glyphs fixed it?

Typing it as one line does not give any result, neither the long one.

The plugins (e.g. Red Arrows & Stem Thickness) still do not show functionality even after restarting Glyphs.

If there is no error message, it worked. If you want to see a result, you could try:

from vanilla import *
print vanilla