Update vanilla library

I keep asking to update the vanilla library everytime I open Glyphs. The update seems not working. How do I do it manually?

02%20PM

1 Like

Can you put the following into the macro window:

import vanilla
print vanilla
import sys
print sys.path

import vanilla
<module 'vanilla' from '/Library/Python/2.7/site-packages/vanilla/__init__.py'>

import sys
[u'/Users/user04/Library/Application Support/Glyphs/Repositories/StemThickness/StemThickness.glyphsReporter/Contents/Resources', u'/Users/user04/Library/Application Support/Glyphs/Repositories/Smart Plumblines/SmartPlumblines.glyphsReporter/Contents/Resources', u'/Users/user04/Library/Application Support/Glyphs/Repositories/Smart Plumblines/SmartPlumblines.glyphsReporter/Contents/Resources/lib/python2.6', u'/Users/user04/Library/Application Support/Glyphs/Repositories/Smart Plumblines/SmartPlumblines.glyphsReporter/Contents/Resources/lib/python2.6/lib-dynload', u'/Users/user04/Library/Application Support/Glyphs/Repositories/Smart Plumblines/SmartPlumblines.glyphsReporter/Contents/Resources/lib/python2.6/site-packages.zip', u'/Users/user04/Library/Application Support/Glyphs/Repositories/Smart Plumblines/SmartPlumblines.glyphsReporter/Contents/Resources/lib/python26.zip', u'/Users/user04/Library/Application Support/Glyphs/Repositories/ShowStems/ShowStems.glyphsReporter/Contents/Resources', u'/Users/user04/Library/Application Support/Glyphs/Repositories/ShowStems/ShowStems.glyphsReporter/Contents/Resources/lib/python2.6', u'/Users/user04/Library/Application Support/Glyphs/Repositories/ShowStems/ShowStems.glyphsReporter/Contents/Resources/lib/python2.6/lib-dynload', u'/Users/user04/Library/Application Support/Glyphs/Repositories/ShowStems/ShowStems.glyphsReporter/Contents/Resources/lib/python2.6/site-packages.zip', u'/Users/user04/Library/Application Support/Glyphs/Repositories/ShowStems/ShowStems.glyphsReporter/Contents/Resources/lib/python26.zip', u'/Users/user04/Library/Application Support/Glyphs/Repositories/ShowSiblings/ShowSiblings.glyphsReporter/Contents/Resources', u'/Users/user04/Library/Application Support/Glyphs/Repositories/ShowSiblings/ShowSiblings.glyphsReporter/Contents/Resources/lib/python2.6', u'/Users/user04/Library/Application Support/Glyphs/Repositories/ShowSiblings/ShowSiblings.glyphsReporter/Contents/Resources/lib/python2.6/lib-dynload', u'/Users/user04/Library/Application Support/Glyphs/Repositories/ShowSiblings/ShowSiblings.glyphsReporter/Contents/Resources/lib/python2.6/site-packages.zip', u'/Users/user04/Library/Application Support/Glyphs/Repositories/ShowSiblings/ShowSiblings.glyphsReporter/Contents/Resources/lib/python26.zip', u'/Users/user04/Library/Application Support/Glyphs/Repositories/ShowRotated/ShowRotated.glyphsReporter/Contents/Resources', u'/Users/user04/Library/Application Support/Glyphs/Repositories/ShowRotated/ShowRotated.glyphsReporter/Contents/Resources/lib/python2.6', u'/Users/user04/Library/Application Support/Glyphs/Repositories/ShowRotated/ShowRotated.glyphsReporter/Contents/Resources/lib/python2.6/lib-dynload', u'/Users/user04/Library/Application Support/Glyphs/Repositories/ShowRotated/ShowRotated.glyphsReporter/Contents/Resources/lib/python2.6/site-packages.zip', u'/Users/user04/Library/Application Support/Glyphs/Repositories/ShowRotated/ShowRotated.glyphsReporter/Contents/Resources/lib/python26.zip', u'/Users/user04/Library/Application Support/Glyphs/Repositories/ShowInterpolation/ShowInterpolation.glyphsReporter/Contents/Resources', u'/Users/user04/Library/Application Support/Glyphs/Repositories/ShowHandlesEverywhere/ShowHandlesEverywhere.glyphsReporter/Contents/Resources', u'/Users/user04/Library/Application Support/Glyphs/Repositories/ShowDistanceAndAngleOfNodes/ShowDistanceAndAngleOfNodes.glyphsReporter/Contents/Resources', u'/Users/user04/Library/Application Support/Glyphs/Repositories/ShowBlackFill/ShowBlackFill.glyphsReporter/Contents/Resources', u'/Users/user04/Library/Application Support/Glyphs/Repositories/ShowBlackFill/ShowBlackFill.glyphsReporter/Contents/Resources/lib/python2.6', u'/Users/user04/Library/Application Support/Glyphs/Repositories/ShowBlackFill/ShowBlackFill.glyphsReporter/Contents/Resources/lib/python2.6/lib-dynload', u'/Users/user04/Library/Application Support/Glyphs/Repositories/ShowBlackFill/ShowBlackFill.glyphsReporter/Contents/Resources/lib/python2.6/site-packages.zip', u'/Users/user04/Library/Application Support/Glyphs/Repositories/ShowBlackFill/ShowBlackFill.glyphsReporter/Contents/Resources/lib/python26.zip', u'/Users/user04/Library/Application Support/Glyphs/Repositories/ShowAllBackgrounds/ShowAllBackgrounds.glyphsReporter/Contents/Resources', u'/Users/user04/Library/Application Support/Glyphs/Repositories/Shadow/Shadow.glyphsFilter/Contents/Resources', u'/Users/user04/Library/Application Support/Glyphs/Repositories/InsertInflections/InsertInflections.glyphsFilter/Contents/Resources', u'/Users/user04/Library/Application Support/Glyphs/Repositories/Erode/Erode.glyphsFilter/Contents/Resources', u'/Users/user04/Library/Application Support/Glyphs/Repositories/Erode/Erode.glyphsFilter/Contents/Resources/lib/python2.6', u'/Users/user04/Library/Application Support/Glyphs/Repositories/Erode/Erode.glyphsFilter/Contents/Resources/lib/python2.6/lib-dynload', u'/Users/user04/Library/Application Support/Glyphs/Repositories/Erode/Erode.glyphsFilter/Contents/Resources/lib/python2.6/site-packages.zip', u'/Users/user04/Library/Application Support/Glyphs/Repositories/Erode/Erode.glyphsFilter/Contents/Resources/lib/python26.zip', u'/Users/user04/Library/Application Support/Glyphs/Repositories/DeleteSmallPaths/DeleteSmallPaths.glyphsFilter/Contents/Resources', u'/Users/user04/Library/Application Support/Glyphs/Plugins/CurveEQ.glyphsFilter/Contents/Resources', u'/Users/user04/Library/Application Support/Glyphs/Repositories/BroadNibber/BroadNibber.glyphsFilter/Contents/Resources', u'/Users/user04/Library/Application Support/Glyphs/Repositories/GaugeTool/GaugeTool.glyphsTool/Contents/Resources', u'/Users/user04/Library/Application Support/Glyphs/Repositories/GaugeTool/GaugeTool.glyphsTool/Contents/Resources/lib/python2.6', u'/Users/user04/Library/Application Support/Glyphs/Repositories/GaugeTool/GaugeTool.glyphsTool/Contents/Resources/lib/python2.6/lib-dynload', u'/Users/user04/Library/Application Support/Glyphs/Repositories/GaugeTool/GaugeTool.glyphsTool/Contents/Resources/lib/python2.6/site-packages.zip', u'/Users/user04/Library/Application Support/Glyphs/Repositories/GaugeTool/GaugeTool.glyphsTool/Contents/Resources/lib/python26.zip', u'/Users/user04/Library/Application Support/Glyphs/Repositories/Touche\u0301/Touche.glyphsPlugin/Contents/Resources', u'/Users/user04/Library/Application Support/Glyphs/Repositories/RotateView/RotateView.glyphsPlugin/Contents/Resources', '/Applications/Glyphs.app/Contents/Scripts', '/Users/user04/Library/Application Support/Glyphs/Scripts', '/Library/Application Support/Glyphs/Scripts', '/Network/Library/Application Support/Glyphs/Scripts', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages', '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload', '/Users/user04/Library/Python/2.7/lib/python/site-packages', '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC', '/Library/Python/2.7/site-packages']

having the same issue

Can you check if there is a vanilla folder in the Scripts folder?

no, there isnā€™t.

Can you verify file permissions for the Scripts folder? It did install vanilla etc. in there for me.

i can rw there as my user

Hi all, iā€™ve the same issue.

Is your user not the admin? Then you may need to install manually, see the parallel thread in this forum.

I installed vanilla manually in Scripts folder and it is there
This is the output message from macro window after installation if I run
import vanilla
print vanilla
<module ā€˜vanillaā€™ from ā€˜/Library/Python/2.7/site-packages/vanilla-0.1-py2.7.egg/vanilla/init.pycā€™>
Is possible change the path from where Glyphs import vanilla?

That is possible by making sure by sorting the sys.paths. It will pick the library that it finds first when going through all the paths.
So, check sys.path and are you sure you installed it correctly? Only the content of the Lib folder should go to the scripts folder.

When I try to update vanilla, I get this traceback in Console.app:

Traceback (most recent call last):
  File "InstallLibraries.py", line 76, in <module>
  File "InstallLibraries.py", line 57, in downloadLib
  File "InstallLibraries.py", line 38, in downloadFile
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 431, in open
    response = self._open(req, data)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 449, in _open
    '_open', req)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1240, in https_open
    context=self._context)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1197,<ā€¦>

Glyphs Version 2.5.1 (1140), macOS Sierra 10.12.6 (16G1314)
For now, I solved it by manually installing vanilla into the Scripts folder.

I was experiencing the same problem (although first install of modules, not upgrade).

I traced the problem to a console message complaining about using old security protocols which I traced to python

    Glyphs[13714]: Traceback (most recent call last):
  File "InstallLibraries.py", line 76, in <module>
  File "InstallLibraries.py", line 57, in downloadLib
  File "InstallLibraries.py", line 38, in downloadFile
 ...........   REMOVED LINES   ............
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1197, in do_open
    raise URLError(err)
**URLError: <urlopen error [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590)>**

As of May 1st, 2018 a new version of SSL is required (throughout the internet from what I understand). And apparently python is still using the old versionā€¦

After some research I found a solution to that problem by running:

pip install 'requests[security]'

However, that apparently only affected the python I installed with Homebrew. As the traceback shows Glyphs seems to be calling the python installed in the system folder; which donā€™t know how to modify- or if thatā€™s even possible.

This is by no means my area of expertise here; I could be off-base here. And this may not really have anything to do with the problemā€¦ BUT it seems to me that to resolve this problem Iā€™ve got to get Glyphs to use the Homebrew installed python (which now has its security upgraded) instead of the native System python. I donā€™t know if that is something I can ā€œsetā€ (and if so how to do it), or if this is a change which will require an update to Glyphs. OR, Iā€™ve got perform the same upgrade on the system python- if possible. That is assuming, of course, that Iā€™m not out in left field with this notion.

Does anyone a bit more knowledgeable have any thoughts on this? Ideas? Possible solutions?

BTW, I successfully installed Vanilla manually. Although, Iā€™m not sure where to find the other modules that need to be installed and exactly how to install them.

Plus, the manual install seems like a bandaid, not a cure/solution to the issue.

If the root of this problem does turn out to be this SSL issue, then Iā€™m assuming/hoping that should lead to a real fix.

However, I do have some reservations about this because the other thread referenced above pre-dates the SSL version deadline (although, I may have misunderstood or mixed up some information there- I was skimming over all the technical details in search of a practical solution).

Anyway, I apologize if Iā€™ve dragged you guys down my empty rabbit hole!

Thanks for the research.

I have the same issue as otherviews. Thereā€™s no Vanilla folder in Scripts and the Scripts folder has rw permissions.

Can you check the macro window?

Speaking as a complete programming dumbfuck: Why do I need to update this vanilla thing and why does everything work fine anyway without doing so (besides getting me annoyed at every start up)?

1 Like

You get annoyed anyway because the old version takes 8 second to load. Did you try this: Manually installing vanilla module

1 Like