Update vanilla library


#1

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


#2

Can you put the following into the macro window:

import vanilla
print vanilla
import sys
print sys.path

#3

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']


#4

having the same issue


#5

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


#6

no, there isn’t.


#7

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


#8

i can rw there as my user


#9

Hi all, i’ve the same issue.


#10

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


#11

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?


#12

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.


#13

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.


#14

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?


#15

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!


#16

Thanks for the research.


#17

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


#18

Can you check the macro window?


#19

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)?


#20

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