CocoaDialog.app not used any more in Mac Sierra

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

CocoaDialog.app not used any more in Mac Sierra

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.

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


------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/fontforge-users
http://fontforge.10959.n7.nabble.com/User-f8781.html
Reply | Threaded
Open this post in threaded view
|

Re: CocoaDialog.app not used any more in Mac Sierra

Frank Trampe
Hmm. I'll look into that soon.


On Wed, Dec 14, 2016 at 11:14 AM, Claudio Beccari <[hidden email]> wrote:
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


------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/fontforge-users
http://fontforge.10959.n7.nabble.com/User-f8781.html


------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/fontforge-users
http://fontforge.10959.n7.nabble.com/User-f8781.html
Reply | Threaded
Open this post in threaded view
|

Re: CocoaDialog.app not used any more in Mac Sierra

Michael Sharpe
In reply to this post by Claudio Beccari

> On Dec 14, 2016, at 9:14 AM, Claudio Beccari <[hidden email]> wrote:
>
> 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
>

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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/fontforge-users
http://fontforge.10959.n7.nabble.com/User-f8781.html
Reply | Threaded
Open this post in threaded view
|

Re: CocoaDialog.app not used any more in Mac Sierra

Claudio Beccari
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

On 14/12/2016 19:03, Michael Sharpe wrote:

>> On Dec 14, 2016, at 9:14 AM, Claudio Beccari <[hidden email]> wrote:
>>
>> 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
>>
> 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
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/fontforge-users
> http://fontforge.10959.n7.nabble.com/User-f8781.html


------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/fontforge-users
http://fontforge.10959.n7.nabble.com/User-f8781.html