[Ifeffit] Larch single-file installers problem on Mac

Matt Newville newville at cars.uchicago.edu
Tue Sep 17 08:59:07 CDT 2019


Hi Youchiuan,

I believe you installed to /anaconda3 and then got prompted for an
administrator password.  Unfortunately, with the MacOS Package Installer
this is the default.  But you should remove /anaconda3 and
/Users/willie/.larch (which will probably require  Administrator privilege)
and then re-run the installer and explicitly select "Install only for me".
 (FWIW, my understanding is that this cannot be the default).  This will
install to /Users/willie/xraylarch, and I believe that this will then work.
Also, make sure you get the latest installer -- it should say "0.9.46", not
"0.9.46rc1".

On Tue, Sep 17, 2019 at 8:29 AM 朱宥銓 <f07223103 at ntu.edu.tw> wrote:

> Hi everyone,
> I had a problem when I tried to launch XAS software “Larch” on Mac through
> single-file installers. After I followed the tutorial and  installed it
> (double click the dmg file), when I typed the command “larch”, the terminal
> showed the followings:
>
> could not read history from /Users/willie/.larch/history.lar
> [Errno 13] Permission denied: '/Users/willie/.larch/init.lar'
> [Errno 13] Permission denied: '/Users/willie/.larch/history.lar'
> [Errno 13] Permission denied: '/Users/willie/.larch/history_larchgui.lar'
> [Errno 13] Permission denied: '/Users/willie/.larch/matplotlib/README'
> [Errno 13] Permission denied: '/Users/willie/.larch/dlls'
> [Errno 2] No such file or directory: '/Users/willie/.larch/dlls/README'
> [Errno 13] Permission denied: '/Users/willie/.larch/modules'
> [Errno 2] No such file or directory: '/Users/willie/.larch/modules/README'
> [Errno 13] Permission denied: '/Users/willie/.larch/plugins'
> [Errno 2] No such file or directory: '/Users/willie/.larch/plugins/README'
> Traceback (most recent call last):
>   File "//anaconda3/bin/larch", line 11, in <module>
>     load_entry_point('xraylarch==0.9.46rc1', 'console_scripts', 'larch')()
>   File "//anaconda3/lib/python3.7/site-packages/larch/apps.py", line 230,
> in run_larch
>     cli = shell(quiet=options.quiet, with_wx=with_wx)
>   File "//anaconda3/lib/python3.7/site-packages/larch/shell.py", line 56,
> in __init__
>     maxhistory=maxhist)
>   File "//anaconda3/lib/python3.7/site-packages/larch/interpreter.py",
> line 177, in __init__
>     for pname in sorted(os.listdir(plugins_dir)):
> FileNotFoundError: [Errno 2] No such file or directory:
> '/Users/willie/.larch/plugins’
>
> Does anyone face this problem as well? How can I fix this problem?
>
> Thank you,
>
> Youchiuan
> _______________________________________________
> Ifeffit mailing list
> Ifeffit at millenia.cars.aps.anl.gov
> http://millenia.cars.aps.anl.gov/mailman/listinfo/ifeffit
> Unsubscribe: http://millenia.cars.aps.anl.gov/mailman/options/ifeffit
>


--Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://millenia.cars.aps.anl.gov/pipermail/ifeffit/attachments/20190917/193bc379/attachment-0001.html>


More information about the Ifeffit mailing list