Discussion:
[fontforge-users] CocoaDialog.app not used any more in Mac Sierra
Claudio Beccari
2016-12-14 17:14:53 UTC
Permalink
I am sorry to inform you that running the Mac-package-installed
FontForge.app (downloaded from your site) on a Mac-Sierra-operated
MacBookPro does not work when the program is called by the python script
mftrace.

The error message is as such:

PKGBASE: /Users
/Users/claudio/bin/fontforge: line 23:
/Users/claudio/bin/CocoaDialog.app/Contents/MacOS/CocoaDialog: No such
file or directory
Traceback (most recent call last):
File "/Users/claudio/bin/mftrace", line 1426, in <module>
main()
File "/Users/claudio/bin/mftrace", line 1422, in main
do_file (filename)
File "/Users/claudio/bin/mftrace", line 1407, in do_file
shutil.copy2 (basename + '.' + format, origdir)
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py",
line 130, in copy2
copyfile(src, dst)
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py",
line 82, in copyfile
with open(src, 'rb') as fsrc:

The relvant line is:

/Users/claudio/bin/fontforge: line 23:
/Users/claudio/bin/CocoaDialog.app/Contents/MacOS/CocoaDialog: No such
file or directory

Of course, not finding it anywhere else, mftrace looks for CocoaDialog
in my $HOME/bin directory; but the .app ins not present anywhere in the
disk; searching for CocoaDialog.app on the Apple site does not give any
result.

But while FontForge.app apparently works fine as a standolaone GUI
within X11, apparently it does not work when called from a python script
such as mftrace.

Best regards
Claudio
Frank Trampe
2016-12-14 17:20:08 UTC
Permalink
Hmm. I'll look into that soon.
Post by Claudio Beccari
I am sorry to inform you that running the Mac-package-installed
FontForge.app (downloaded from your site) on a Mac-Sierra-operated
MacBookPro does not work when the program is called by the python script
mftrace.
PKGBASE: /Users
/Users/claudio/bin/CocoaDialog.app/Contents/MacOS/CocoaDialog: No such
file or directory
File "/Users/claudio/bin/mftrace", line 1426, in <module>
main()
File "/Users/claudio/bin/mftrace", line 1422, in main
do_file (filename)
File "/Users/claudio/bin/mftrace", line 1407, in do_file
shutil.copy2 (basename + '.' + format, origdir)
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/
lib/python2.7/shutil.py",
line 130, in copy2
copyfile(src, dst)
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/
lib/python2.7/shutil.py",
line 82, in copyfile
/Users/claudio/bin/CocoaDialog.app/Contents/MacOS/CocoaDialog: No such
file or directory
Of course, not finding it anywhere else, mftrace looks for CocoaDialog
in my $HOME/bin directory; but the .app ins not present anywhere in the
disk; searching for CocoaDialog.app on the Apple site does not give any
result.
But while FontForge.app apparently works fine as a standolaone GUI
within X11, apparently it does not work when called from a python script
such as mftrace.
Best regards
Claudio
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
fontforge-users mailing list
https://lists.sourceforge.net/lists/listinfo/fontforge-users
http://fontforge.10959.n7.nabble.com/User-f8781.html
Michael Sharpe
2016-12-14 18:03:43 UTC
Permalink
Post by Claudio Beccari
I am sorry to inform you that running the Mac-package-installed
FontForge.app (downloaded from your site) on a Mac-Sierra-operated
MacBookPro does not work when the program is called by the python script
mftrace.
PKGBASE: /Users
/Users/claudio/bin/CocoaDialog.app/Contents/MacOS/CocoaDialog: No such
file or directory
File "/Users/claudio/bin/mftrace", line 1426, in <module>
main()
File "/Users/claudio/bin/mftrace", line 1422, in main
do_file (filename)
File "/Users/claudio/bin/mftrace", line 1407, in do_file
shutil.copy2 (basename + '.' + format, origdir)
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py",
line 130, in copy2
copyfile(src, dst)
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py",
line 82, in copyfile
/Users/claudio/bin/CocoaDialog.app/Contents/MacOS/CocoaDialog: No such
file or directory
Of course, not finding it anywhere else, mftrace looks for CocoaDialog
in my $HOME/bin directory; but the .app ins not present anywhere in the
disk; searching for CocoaDialog.app on the Apple site does not give any
result.
But while FontForge.app apparently works fine as a standolaone GUI
within X11, apparently it does not work when called from a python script
such as mftrace.
Best regards
Claudio
Do you have /Applications/FontForge.app/Contents/MacOS included in your PATH? That is required by mftrace in order to find and run the FontForge script, and the same folder contains CocoaDialog.app.

Michael
Claudio Beccari
2016-12-14 19:03:02 UTC
Permalink
Yes, I have FontForge.app in ~/Applications/ and mftrace finds it.
CocoaDialog.app is in FontForge/Contents/MacOS/ but mftrace does not
find it.

I admit my ignorance, but I do not have the vaguest idea about how to
put the contents of an app into the search path, when that contents is
not even visible by Finder, unless one clicks the suitable menu entry
after control-clicking on the app itself.
No other path in $PATH points to the contents of an app. Maybe in my
ignorance I did not even imagine that one could set a path to the inside
of an app.
May be a couple of warning lines for the ignorant Mac users as myself,
that install the FontForge app from the FontForge download link, would
be a useful help.

Thanks a lot; now I am going to fix the $PATH.
Claudio
Post by Michael Sharpe
Post by Claudio Beccari
I am sorry to inform you that running the Mac-package-installed
FontForge.app (downloaded from your site) on a Mac-Sierra-operated
MacBookPro does not work when the program is called by the python script
mftrace.
PKGBASE: /Users
/Users/claudio/bin/CocoaDialog.app/Contents/MacOS/CocoaDialog: No such
file or directory
File "/Users/claudio/bin/mftrace", line 1426, in <module>
main()
File "/Users/claudio/bin/mftrace", line 1422, in main
do_file (filename)
File "/Users/claudio/bin/mftrace", line 1407, in do_file
shutil.copy2 (basename + '.' + format, origdir)
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py",
line 130, in copy2
copyfile(src, dst)
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py",
line 82, in copyfile
/Users/claudio/bin/CocoaDialog.app/Contents/MacOS/CocoaDialog: No such
file or directory
Of course, not finding it anywhere else, mftrace looks for CocoaDialog
in my $HOME/bin directory; but the .app ins not present anywhere in the
disk; searching for CocoaDialog.app on the Apple site does not give any
result.
But while FontForge.app apparently works fine as a standolaone GUI
within X11, apparently it does not work when called from a python script
such as mftrace.
Best regards
Claudio
Do you have /Applications/FontForge.app/Contents/MacOS included in your PATH? That is required by mftrace in order to find and run the FontForge script, and the same folder contains CocoaDialog.app.
Michael
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
fontforge-users mailing list
https://lists.sourceforge.net/lists/listinfo/fontforge-users
http://fontforge.10959.n7.nabble.com/User-f8781.html
Loading...