FontLab Macros on Lion

Primary tabs

16 posts / 0 new
Last post
Michael Hochleitner's picture
Joined: 12 Nov 2007 - 7:36pm
FontLab Macros on Lion
0

I totally need help!

Updating to Lion – I know it was a bad idea – only brought trouble to my FontLab workflow.
Since the last build FontLab luckily works (maybe even better than on Snow Leopard), BUT I just can’t get my macros to work!

Here is the latest Error message I get:

Traceback (most recent call last):
File "", line 20, in
ImportError: No module named robofab.interface.all.dialogs

Robofab is installed. Python too. (I guess)

I am so thankful for tips, it’s driving me crazy,
plus I am obviously not able to wrap my mind around this myself.

Claus Eggers Sørensen's picture
Joined: 17 Jan 2007 - 5:49am
0

Try pulling the latest packages from SVN. SVN is pretty awesome, it keeps you up to date with code whenever you want.
It is installed on your Mac already. So all you have to do is: set up a folder where you want the distros to be

(I have ~/svn/)

Open a Terminal in that folder and type

svn co http://svn.robofab.com/svn update http://svn.typesupply.com/packages/dialogKit (press enter)

svn co https://fonttools.svn.sourceforge.net/svnroot/fonttools (press enter)
svn co http://svn.typesupply.com/packages/vanilla (press enter)
svn co http://svn.typesupply.com/packages/ufo2fdk (press enter)

SVN will download all the code from the specified sources.

Now all you have to do is tell Python where your code is:
Go to your Python directory(/ies):

Macintosh HD/Library/Python/2.6/site-packages/
(FL now uses 2.6, and I believe everything else as well, but you can do that for all the Python versions if you want.)

Locate the file robofab.pth, open it and change the contents (to the path you have dumped robofab to):
/Users/YOUR-USER-NAME/svn/svn.robofab.com/trunk/Lib

Locate the file dialogKit.pth, open it and change the contents (to the path you have dumped robofab to):
/Users/YOUR-USER-NAME/svn/dialogKit/trunk/Lib

Locate the file vanilla.pth, open it and change the contents (to the path you have dumped robofab to):
/Users/YOUR-USER-NAME/svn/vanilla/trunk/Lib

Locate the file robofab.pth, open it and change the contents (to the path you have dumped robofab to):
/Users/YOUR-USER-NAME/svn/fonttools/trunk/Lib

Now copy your .PTH files into all the different Python 'site-packages' folders like in my screenshot.

Now copy the Fontlab scripts from the Robofab SVN folder into your Fontlab script folder.

Restart Fontlab.

Awesome sauce.

Paul van der Laan's picture
Joined: 4 Mar 2007 - 8:56am
0

According to the error message RoboFab is not correctly installed. You might want to read these [[http://forum.fontlab.com/python-scripting/instructions-installing-robofa...|instructions for installing Robofab at the FontLab forums]].

-Paul

Claus Eggers Sørensen's picture
Joined: 17 Jan 2007 - 5:49am
0

~ means your home folder, so ~/Library is in fact = Macintosh HD:Users:YOUR-USER-NAME:Library

Claus Eggers Sørensen's picture
Joined: 17 Jan 2007 - 5:49am
0

To update the sources on a later date, execute these commands:

svn update http://svn.robofab.com/svn (press enter)
svn update http://svn.typesupply.com/packages/dialogKit (press enter)
svn update https://fonttools.svn.sourceforge.net/svnroot/fonttools (press enter)
svn update http://svn.typesupply.com/packages/vanilla (press enter)
svn update http://svn.typesupply.com/packages/ufo2fdk (press enter)

Frank Grießhammer's picture
Joined: 18 Nov 2008 - 6:57am
0

Wow, Claus is passing on the knowledge … :)

Lion and FL 5.1 are using a newer version of Python, so you just have to move over your Robofab folders to the newer Python (2.6 I believe?), or do a re-install.

Find the old stuff in /Library/Python/2.3/, reproduce in 2.6

Or do as Claus said and get the SVN.

Claus Eggers Sørensen's picture
Joined: 17 Jan 2007 - 5:49am
0

*shyyyys Frank* It's our little secret.

Claus Eggers Sørensen's picture
Joined: 17 Jan 2007 - 5:49am
0

Big thanks to Frank for the original recipe!

rui abreu's picture
Offline
Joined: 11 Apr 2006 - 11:50am
0

I got all the macros working when I found out that the users Library exists, but it is invisible. I was then able to copy the scripts properly.

Stickley's picture
Offline
Joined: 17 Apr 2009 - 10:08am
0

Thanks, Claus & Frank, this fixed all of my chaos as well. 5.1 broke the scripts in 10.6, upgrade to Lion didn't fix or harm, now it's all running smoothly. Such a relief.

Michael Hochleitner's picture
Joined: 12 Nov 2007 - 7:36pm
0

Thanks!

At first, everything worked fine again, but I still kept getting a "PendingDeprecationWarning" running Ben Kiel's betterGenerateFont.py. Then I noticed that I had an outdated version of Ben's script in my Macros folder. I downloaded the latest version (1.6) from http://www.benkiel.com/typeDesign/ and now, everything works as expected again.

Yeeeeeeeha!

Dario Manuel Muhafara's picture
Joined: 8 Jul 2005 - 5:01pm
0

Hi,
i am also crazy with this and finally here is an answer!, but i could install everything but the first part:
svn co http://svn.robofab.com/svn update http://svn.typesupply.com/packages/dialogKit
i get:
svn: URL 'http://svn.robofab.com/svn' doesn't exist

probably i am doing something realy silly, can someone help me?
thanks for the help and the post, d.

Eric's picture
Offline
Joined: 27 Apr 2008 - 7:10pm
0

1. The robofab URL was wrong. It should read:

svn co http://svn.robofab.com/

2. Why not svn co the complete typesupply stuff?

svn co http://svn.typesupply.com/

3. You can then update by cd'ing into the directory and typing svn update

PS: Also, in my case it's 2.7, not 2.6.

Dario Manuel Muhafara's picture
Joined: 8 Jul 2005 - 5:01pm
0

Hi mekka,

Thanks for the help, now I could download the robofab.
but I did my best and still cannot make it works.
Seems to have a problem with the directory.
I wrote in robofab.pth:
jeremias/daro/documents/svn/svn.robofab.com/trunk/Lib

. Jeremias is the name of the disk
. daro is my user name
. the svn folder is down documents directory.

also I edited the pth with TextEdit,

thanks again for the help!

Claus Eggers Sørensen's picture
Joined: 17 Jan 2007 - 5:49am
0

svn co http://svn.robofab.com/svn update http://svn.typesupply.com/packages/dialogKit

For some reason the shitty typophile CMS can't write that correctly. It's correctly written if I try to edit my post. Well, you figured it out.

Michael Hochleitner's picture
Joined: 12 Nov 2007 - 7:36pm
0

Now that I came to myself again:

@Claus: Thanks for typing this all in for me, it was very helpful.

@Paul: You where totally right that RoboFab wasn’t installed correctly anymore.

You all rock. Merry Christmas.