Mark Simonson
-----------------------------------------
http://www.ms-studio.com
http://www.marksimonson.com
> Is it possible to use RoboFab with FontLab 5.1?
Yes, with a caveat. The dialogs provided with robofab.interface.all.dialogs are misbehaving/not working in Mac OS 10.7. We're actively trying to resolve that but making a single API for all of the various OS, OS version and application combinations is frustrating. Other than that it works as far as we know.
You'll need to install RoboFab from source. To do this you need to figure out which Python FontLab is using. I'd tell you which it is, but it changes frequently and I'm not 100% sure where things stand at the moment. To figure out the Python version, run this in the macro panel:
import sys
print sys.version
Once you have this report, you can figure out which Terminal command you need. If you see 2.5, your command will be python2.5. If you see 2.6 and you are running OS 10.6, your command will be python. If you see 2.6 and you are running OS 10.7, your command will probably be python2.6 (I'm not running OS 10.7, so I'm guessing here). If you see 2.7, you are almost certainly running OS 10.7 (otherwise you really messed up your system) and your command will be python.
Now follow these steps, replacing yourpythoncommand with your Python command as defined above.
1. If you don't have it already, get the "RoboFab + FontTools + DialogKit Combo" zip here:http://robofab.com/download/index.html
2. Unpack the zip and put it in a location where you want the files to live. For example /Applications/RoboFab.
3. Open Terminal.
4. Type "cd " (the space is required) and drag the FontTools folder to the Terminal window. This should give you something like "cd /Applications/RoboFab/FontTools". Hit return.
5. Type "sudo yourpythoncommand setup.py install". Hit return.
6. A bunch of installation notes should appear.
7. Type "sudo yourpythoncommand " (the space is required) and drag the install.py file in the RoboFab directory to the Terminal window. Hit return.
8. "Robofab is now installed." should appear along with some other text.
9. Type "sudo yourpythoncommand " (the space is required) and drag the install.py file in the DialogKit directory to the Terminal window. Hit return.
10. "dialogKit is now installed." should appear along with some other text.
11. Restart FontLab if you have it open.
Hopefully this will work. We'll likely try to make this easier when the dust settles.
Tal
Hopefully this will work. We'll likely try to make this easier when the dust settles.
>> Is it possible to use RoboFab with FontLab 5.1?
>
> Yes, with a caveat....
Would you mind if I posted these instructions on Typophile? The question came up, which is why I asked here in the first place.
Mark
> Would you mind if I posted these instructions on Typophile? The question came up, which is why I asked here in the first place.
That's fine. Or you can point them to the group archive.
Tal
Vanilla based dialogs works well in RoboFont and Glyphs. Fontlab 5.01 can use dialogKit. FontLab 5.1 on 10.6 has odd, hard to trace problems with vanilla. Sometimes it works, often they don't. I am leaning towards using dialogKit for 5.1 as well, though that raises other issues.
I have made some changes to my OSX installation that makes it easier to test in both 10,8 and 10.7.
I will keep you posted, I'm sorry it's taking so long.
Erik
> --
> You received this message because you are subscribed to the Google Groups "RoboFab" group.
> To post to this group, send email to rob...@googlegroups.com
> To unsubscribe from this group, send email to robofab-u...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/robofab?hl=en
>
> Messages from newly joined members are subject to moderation.
> Download RoboFab and documentation at http://robofab.com
Did you follow the instructions I posted to this list last week?
Tal
>>>
import sys
sys.path.append(Yourpathtorobofablibrary)
>>>
I'm almost sure there's a way to make it run automatically each time you launch FontLab. I run it manually as I'm not using it too much now.
I hope this help while a more clever solution comes.
Cheers,
Joancarles
> --
> You received this message because you are subscribed to the Google Groups "RoboFab" group.
> To post to this group, send email to rob...@googlegroups.com
> To unsubscribe from this group, send email to robofab-u...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/robofab?hl=en
>
> Messages from newly joined members are subject to moderation.
> Download RoboFab and documentation at http://robofab.com
••••••••••••••••••••••
casasin.com
••••••••••••••••••••••
cosesmeves.posterous.com
Any idea why the alias was set to 2.5 instead of 2.6? Is that a
result / artifact of the earlier "fake" 2.3 / 2.5 install from the
FontLab site?
> Any suggestions, anyone?
Is there any sign of a non-beta release of 5.1?
Erik
> I've followed Tal's instructions to the letter. The OS and FontLab
> both say they are using 2.6 and that is where the installation has put
> the files, but I'm not getting any RoboFab macros in FL 5.1 under OS X
> 10.6.8.
When you say "RoboFab macros," what do you mean? The macros that appear in the Maacro toolbar menu? If you run this in the Macro panel, do you get a traceback?
import robofab
Tal
>> When you say "RoboFab macros," what do you mean? The macros that appear in the Maacro toolbar menu?
>
> Yes, that's where I expected them to show up. There's nothing
> additional there. I now see I can run the RoboFab macros by opening
> and running them from the Edit Macros panel. Is this the correct way
> to run them?
Ah. The instructions I gave were for installing the RoboFab library, not the scripts. If you want to install the scripts you'll need to manually drag them to ~/library/application support/FontLab/whatever/whatever/whatever.
>> If you run this in the Macro panel, do you get a traceback?
>>
>> import robofab
>
> Just putting that into the Edit Macros panel and running it I get
> nothing, no errors, no response; nothing appears to happen.
Then RoboFab is installed.
Tal
> On Oct 23, 8:20 pm, Tal Leming <t...@typesupply.com> wrote:
>
>> When you say "RoboFab macros," what do you mean? The macros that appear in the Maacro toolbar menu?
>
> Yes, that's where I expected them to show up. There's nothing
> additional there. I now see I can run the RoboFab macros by opening
> and running them from the Edit Macros panel. Is this the correct way
> to run them?
Well, you can select and run directly without opening them from the macro Toolbar.
>> If you run this in the Macro panel, do you get a traceback?
>>
>> import robofab
>
> Just putting that into the Edit Macros panel and running it I get
> nothing, no errors, no response; nothing appears to happen.
If you don't get a Traceback it means it works...
------piece of code------------------------
from robofab.world import CurrentFont
f = CurrentFont()
print f
-------------------------------------------
You should get printed out in the output window the current font.
I'm exhausted with this issues, now with Build 4311 my ugly patch is neither working.
I add the robofab path to sys.path running a script and now I get a traceback
"""
File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/numpy/lib/polynomial.py", line 11, in <module>
import numpy.core.numeric as NX
AttributeError: 'module' object has no attribute 'core'
"""
It seems coming from numpy but I added it manually as I did before...
My Terminal is using Python 2.6.6 and FontLab is using Python 2.6.1, anyone knows how to fix this? Probably the problem is there around as I can use robofab through the Terminal...
Joancarles
[Really waiting for RoboFont 1.1 update]
••••••••••••••••••••••
casasin.com
••••••••••••••••••••••
cosesmeves.posterous.com
> I'm exhausted with this issues, now with Build 4311 my ugly patch is neither working.
> I add the robofab path to sys.path running a script and now I get a traceback
I'm still exhausted but now it's working.
Don't ask me why but it does, seems enough by now. Probably I won't install any other build...
jca
••••••••••••••••••••••
casasin.com
••••••••••••••••••••••
cosesmeves.posterous.com
> How did you get it working and was it on Lion? Lion uses 2.7 as
> default, I even tried 3.2 and still fail. At least with 4311 I can
> output an otf without a crash but I cannot export a UFO even though
> the script shows up, it fails.
Please provide us with a transcript of your activity in Terminal. (Make a new Terminal window, do the installation process, copy and paste all of the text in Terminal and send it to us.) It's impossible to figure out what went wrong without any info.
> Frustration mounts, but not running scripts :-/
Well, FontLab 5.1 is still beta software so you shouldn't expect everything to be frustration free. RoboFab is a bit of code that Erik and I wrote and now maintain on a strictly *volunteer* basis. We're quite busy with UFO 3 (another volunteer project) and WOFF (yet another volunteer project) these days. We are doing what we can when we can.
Tal
On 24 okt 2011, at 21:47, Dezcom wrote:
> How did you get it working and was it on Lion? Lion uses 2.7 as
> default, I even tried 3.2 and still fail. At least with 4311 I can
> output an otf without a crash but I cannot export a UFO even though
> the script shows up, it fails.
If you want to help, it might be useful to understand that given the dozens of modules and literally thousands of lines of code, we could be helped with more detail than "it fails". Given that FontLab 5.1 is a moving target, it is very difficult for me to build and rebuild installers for each new instance of the application. We've been busy updating parts of robofab (some of it documented here). I'd rather everyone is aware of the swamp we're all wading through and everyone would use a bit of common sense.
Aside: I'm not grumpy, I'm just tired and typing fast. I'm *not* saying a couple of things and that's about as far as my diplomacy goes this evening.
So here are some basics of finding your way around python. Not in any particular order, and not offered as a solution to any specifc problem.
A Junior Woodchucks Guidebook to survival in a beta FontLab:
When something goes wrong in Python, it prints a detailed message of what went wrong. This is called "a traceback". Sometimes tracebacks help to determine where the problem is. Copying such a traceback in an email is a very helpful step.
Keeping track of what you did is also good. Just keep a small log somewhere. Stuff like "October 24, 2011, installed Numpy 1112, from http//ccc.com. Instructiuons at http://zzzz.com I can import it in python 2.6.1". That will remind you how you ended up in a particular situation.
"it just stopped working" doesn't happen (well, it does crash, doesn't it?). But modules that were importable, and then they;re not means that you changed something, or did something. Computers rarely change these things themselves. If something breaks, you're probably involved. And that's ok too. But remember what you did, mention this in your report. Try to retrace the steps. Can you undo whatever it was? Can you repeat the problem? Unrepeatable problems are a lot less likely to be solved than repeatable ones.
In your Applications/Utilities folder there is an application called "Console". This is like FontLab's Macro output window, but this prints stuff from all applications that currently run. That means a lot of data passes by here and you wouldn't want to paste all of it in an email. Instead you can use the handy Search box at the top right. When I type "fontlab" in mine, I get entries like this:
22-10-11 12:42:02 com.apple.launchd.peruser.501[275] ([0x0-0x392392].com.fontlab.studio5[9559]) Exited: Terminated
This particular one is not very helpful, but sometimes there are interesting bits to be found. Just another place to keep an eye on, Even I forget sometimes.
#To find out which version of python you're using:
# On my 10.6.8 machine, here are some of the results:
# this is what I type in the macro window
import sys
print sys.version
# this is what prints to the output (I added the >> to indicate it is returned). It is not right or wrong, it's just the version. But it helps.
>> 2.5.4 (r254:67916, Aug 1 2011, 15:52:49)
>> [GCC 4.2.1 (Apple Inc. build 5646)]
# see that this is not necessarily "the newest"
# the good news is, this python is new enough so we can also talk to it using the Terminal.app.
# this will tell me the version of the application
from FL import *
print fl.version
>> 5.1/Mac(Build 4269)
# that might not be the newest, but there it is.
# if you want to see if robofab is installed, type:
import robofab
# if everything works, nothing is returned. It just works. if you want to see if FontLab's python (or any other python) can import a module, it is good to just try that one line code. If it works, try more complex things. If it doesn't, you have something to look into.
# you can then also try something like this to see where the module actually lives:
print robofab.__file__
>> /Users/erik/Develop/svn.robofab.com/trunk/Lib/robofab/__init__.pyc
As you can see, this list is not complete. It doesn't tell you what to do. We really want to urge *all* *you* *testers* to help us. Especially the ones that have something working. Not just wait until Tal or me somehow find time to magically fix everything. If you have discovered a working recipe, please post it here. Here are some subjects that would be very helpful for some of you to fill in:
1. a step by step list of how to install the current svn trunk from svn.robofab.com
2. a step by step list of how to install fontTools 2.3 from sourceforge,net
3. a step by step list of how to install numpy
4. a short (and possibly more polite) set of instructions of how to debug, and report problems in A Helpful Manner
5. I'm sure there will be a number 5.
Good luck Junior Woodchucks!
Erik
Okay, so these instructions work for 10.6 but it should work for 10.7 as well.
All of this requires some level of comfort with terminal.app
Luckily, most command line utilities you need will come preinstalled with your mac.
The only thing that would be handy to install additionally is Apple’s xCode, which installs a C(++) compiler. Some of the Python packages like numpy and fontTools have additional C stuff. (Although I never tried without xCode, so I”m not sure if it’s 100% prerequisite)
xCode comes on your installer DVD under extra software, or you can download it via http://dev.apple.com/
To install python modules, the easiest is to use easy_install:
sudo easy_install numpy
Fonttools is also in the python package index, but the version is outdated—maybe you can push a new package Just?
For now, download from http://sourceforge.net/projects/fonttools/
unpack, in the terminal, navigate to the folder, and run:
sudo python setup.py install
You need a directory to keep track of source code of programs you build from source.
If you don’t have such a directory, create a folder called src in your home folder.
Then, from the terminal
cd ~/src
svn checkout http://svn.robofab.com/
A new folder called svn.robofab.com will be created, containing the most recent code.
To install this version
cd svn.robofab.com/trunk
python install.py
to later update your version of robofab, you navigate to ~/src/svn.robofab.com and run
svn update
When having any error or issue try to send the traceback or errors printed out in the output window. It will help to understand what's going on.
On 24/10/2011, at 21:47, Dezcom wrote:
> How did you get it working and was it on Lion? Lion uses 2.7 as
> default, I even tried 3.2 and still fail. At least with 4311 I can
> output an otf without a crash but I cannot export a UFO even though
> the script shows up, it fails.
> Frustration mounts, but not running scripts :-/
jca
••••••••••••••••••••••
casasin.com
••••••••••••••••••••••
cosesmeves.posterous.com
I followed directions from the last site above and have installed
"homebrew", pip, and virtualenv, and the OSX gcc installer of Xcode4
just to try tofind a way to get "numPy" to work. Apparently, all
refernces to "pyton.world" are part of some numpy code
Dezcom-iMac:~ DezcomHome$ easy_install pip
error: can't create or remove files in install directory
The following error occurred while trying to add or remove files in
the
installation directory:
[Errno 13] Permission denied: '/Library/Python/2.7/site-packages/
test-easy-install-35814.write-test'
Somehow, I think that RoboFab, numPy, and FLS5.1 are not on the same
page? I just don't know why. FLS5.1 is obviously seeing enough that
the script is available for selection. FLS is just not connecting all
the dots to run it properly.
I have not noticed "svn" and am not even sure what that means ;-)
Each time I installed something, I entered its name and it responded
the name and version back. I assumed this was some kind of
verification that the newly installed stuff was found by python.
Just now, I tried reinstalling the entire RoboFab suite with
dependencies to no avail. Then, I just dragged and dropped the
"export to ufo script files" to the same location in my computers
"library" folder as the RMS tools live.
I tried this because RMX
tools works just fine. But, that did not work either. I still cannot
manage to get FontLab to make nice with any of the RoboFab tools. It
is still desperately looking for "robofab.world" and can't find it.
Thanks for giving it some thought, Erik. Now to sleep before the sun
So Frederik managed to rewrite two modules, fontTools.misc.arrayTools and fontTools.misc.bezierTools in python, without NumPy. Ideally those would move into the fontTools trunk at some point. For now, I've checked them into the robofab svn trunk at robofab.misc.arrayTools and robofab.misc.bezierTools. Imports of the fontTools versions in the robofab trunk have been diverted. Test and speed comparisons are in robofab.misc as well.