[Ifeffit] Athena crashing with "Larch_Server not found"

Bruce Ravel bravel at bnl.gov
Mon Nov 14 08:15:14 CST 2016


Hi Frederik,

Also sorry for the slow response.  I was away from the lab all of last week.

As Matt said, he and I are working on transitioning Demeter from using 
Ifeffit by default to using Larch by default.  If you were inclined to 
help us out by installing Larch and testing Demeter with Larch, we would 
be grateful.

I'll say that the benefits will pay off in the long run.  Having Larch 
behind Demeter will enable a lot of new features in Athena and Artemis. 
For example, I have some ideas for improving Athena's linear combination 
fitting in ways that cannot be done (or at least not easily) with 
Ifeffit.  It'll be cool.

That said, it is quite possible that the HEAD of the git repository 
could have problems.  I haven't properly documented this yet, but it is 
possible to force Demeter to skip the check for a Larch server and fall 
back to using Ifeffit (which will continue to be available even after we 
complete the switch to larch).

The easiest way to do so is to set a special environment variable.  Try 
starting Athena with this command:

    DEMETER_FORCE_IFEFFIT=1 && dathena

or, more permanently within a bash session

    export DEMETER_FORCE_IFEFFIT=1

then a normal "dathena" command will fall back on using Ifeffit.

This behavior may change with notice, but I will try to keep the 
documentation at the website up-to-date.

B


On 11/10/2016 02:02 PM, Frederik Eistrup wrote:
> Dear List,
>
> Recently installed Demeter on Ubuntu for a master's lab work at Bessy II
> (HZBerlin), with help from David Hughe's instructions
> (https://bruceravel.github.io/demeter/documents/SinglePage/demeter_nonroot.html).
>
>
> When I run  Athena ("dathena" in comand line) the interface window
> appears but command line has output:
>
>
> //
>
> /$ dathena
> Trying Larch server:
> /home/frederik/perl5/lib/perl5/x86_64-linux-gnu-thread-multi/Demeter/share/ini/larch_server.ini
> Trying Larch server:  larch_server -p 4966 start
> Can't exec "larch_server": No such file or directory at
> /home/frederik/perl5/lib/perl5/x86_64-linux-gnu-thread-multi/Larch.pm
> line 66.
> /
>
>
> Later, when i try to import a data-file, column selection windows shows
> up as it should, but after i've chosen numerator and press OK, the whole
> Athena crashes. Message on terminal (sorry I know its massive...)://
>
> /
> /
>
> //
>
> /Attribute (bkg_pre1) does not pass the type constraint because:
> Validation failed for 'LaxNum' with value 9997,000 at accessor
> Demeter::Data::bkg_pre1 (defined at
> /home/frederik/perl5/lib/perl5/x86_64-linux-gnu-thread-multi/Demeter/Data.pm
> line 258) line 7
>     Demeter::Data::bkg_pre1('Demeter::Data=HASH(0xd91e330)', '9997,000')
> called at
> /home/frederik/perl5/lib/perl5/x86_64-linux-gnu-thread-multi/Demeter/Data/Defaults.pm
> line 48
>
>  Demeter::Data::Defaults::resolve_defaults('Demeter::Data=HASH(0xd91e330)')
> called at
> /home/frederik/perl5/lib/perl5/x86_64-linux-gnu-thread-multi/Demeter/Data/Mu.pm
> line 290
>     Demeter::Data::Mu::initialize_e0('Demeter::Data=HASH(0xd91e330)')
> called at
> /home/frederik/perl5/lib/perl5/x86_64-linux-gnu-thread-multi/Demeter/Data/Mu.pm
> line 270
>     Demeter::Data::Mu::put_data('Demeter::Data=HASH(0xd91e330)') called
> at
> /home/frederik/perl5/lib/perl5/x86_64-linux-gnu-thread-multi/Demeter/Data.pm
> line 734
>     Demeter::Data::_update('Demeter::Data=HASH(0xd91e330)', 'all')
> called at
> /home/frederik/perl5/lib/perl5/x86_64-linux-gnu-thread-multi/Demeter/UI/Athena/IO.pm
> line 648
> //
>  Demeter::UI::Athena::IO::_group('Demeter::UI::Athena=HASH(0xbcd018)',
> 'Demeter::UI::Athena::ColumnSelection=HASH(0xd949d08)',
> 'Demeter::Data=HASH(0xd91e330)', 'HASH(0xd91a8e8)',
> '/home/frederik/Desktop/Spectroscopy with Synchrothron
> Radiation/Praktikum_results/nanoXANES/Prakt_W_XANES_E_d70_1.log',
> '/home/frederik/Desktop/Spectroscopy with Synchrothron
> Radiation/Praktikum_results/nanoXANES/Prakt_W_XANES_E_d70_1.log', 0, 0)
> called at
> /home/frederik/perl5/lib/perl5/x86_64-linux-gnu-thread-multi/Demeter/UI/Athena/IO.pm
> line 531
> //
>  Demeter::UI::Athena::IO::_data('Demeter::UI::Athena=HASH(0xbcd018)',
> '/home/frederik/Desktop/Spectroscopy with Synchrothron
> Radiation/Praktikum_results/nanoXANES/Prakt_W_XANES_E_d70_1.log',
> '/home/frederik/Desktop/Spectroscopy with Synchrothron
> Radiation/Praktikum_results/nanoXANES/Prakt_W_XANES_E_d70_1.log', 1, 0)
> called at
> /home/frederik/perl5/lib/perl5/x86_64-linux-gnu-thread-multi/Demeter/UI/Athena/IO.pm
> line 193
>
>  Demeter::UI::Athena::IO::Import('Demeter::UI::Athena=HASH(0xbcd018)')
> called at
> /home/frederik/perl5/lib/perl5/x86_64-linux-gnu-thread-multi/Demeter/UI/Athena.pm
> line 862
> //    Demeter::UI::Athena::OnMenuClick('Wx::Frame=HASH(0x9a617f0)',
> 'Wx::CommandEvent=SCALAR(0xc3a9480)',
> 'Demeter::UI::Athena=HASH(0xbcd018)') called at
> /home/frederik/perl5/lib/perl5/x86_64-linux-gnu-thread-multi/Demeter/UI/Athena.pm
> line 784
>     Demeter::UI::Athena::__ANON__('Wx::Frame=HASH(0x9a617f0)',
> 'Wx::CommandEvent=SCALAR(0xc3a9480)') called at
> /home/frederik/perl5/bin/dathena line 31
> //    eval {...} at /home/frederik/perl5/bin/dathena line 31/
>
> So, where is the problem? Can anyone helo with this?
>
> Made sure larch was installed through sudo apt-get install, but all
> stays the same.
>
>
> Thanks for any help!
>
>
> Frederik
>
> David Hughes' guide to Demeter Installation on Ubuntu ...
> <https://bruceravel.github.io/demeter/documents/SinglePage/demeter_nonroot.html>
> bruceravel.github.io
> David Hughes' guide to Demeter Installation on Ubuntu¶ These
> instructions cover a non-root manual build of Bruce Ravel's Demeter
> package under Ubuntu 12.04.
>
> Found out that Athena
>
>
>
> _______________________________________________
> 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
>


-- 
  Bruce Ravel  ------------------------------------ bravel at bnl.gov

  National Institute of Standards and Technology
  Synchrotron Science Group at NSLS-II
  Building 743, Room 114
  Upton NY, 11973

  Homepage:    http://bruceravel.github.io/home/
  Software:    https://github.com/bruceravel
  Demeter:     http://bruceravel.github.io/demeter/


More information about the Ifeffit mailing list