Re: [Ifeffit] Installation problems for Demeter on Ubuntu 16.04

2019-11-13 Thread Jo Melville
Thank you for your advice, Bruce. After trying a few things that didn't
work (I already had Wx installed through apt, so that wasn't the culprit),
I attempted to remove Demeter entirely and reinstall it from scratch. This
proved to be a serious mistake, as I presumably failed to completely purge
my system, and now cannot even get any installed programs to run at all.
Running ./Build Test produces lines upon lines of Dubious, test returned 2
(wstat 512, 0x200), and attempting to run dathena outputs this garbage:

Can't locate PerlIO/utf8_strict.pm in @INC (you may need to install the
> PerlIO::utf8_strict module) (@INC contains:
> /home/melville/perl5/lib/perl5/5.22.1/x86_64-linux-gnu-thread-multi
> /home/melville/perl5/lib/perl5/5.22.1
> /home/melville/perl5/lib/perl5/x86_64-linux-gnu-thread-multi
> /home/melville/perl5/lib/perl5 /etc/perl
> /usr/local/lib/x86_64-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1
> /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5
> /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22
> /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at
> /usr/local/share/perl/5.22.1/Mixin/Linewise/Readers.pm line 9.
> BEGIN failed--compilation aborted at
> /usr/local/share/perl/5.22.1/Mixin/Linewise/Readers.pm line 9.
> Compilation failed in require at
> /usr/local/share/perl/5.22.1/Config/INI/Reader.pm line 5.
> BEGIN failed--compilation aborted at
> /usr/local/share/perl/5.22.1/Config/INI/Reader.pm line 5.
> Compilation failed in require at /usr/share/perl/5.22/parent.pm line 20.
> BEGIN failed--compilation aborted at
> /usr/local/lib/x86_64-linux-gnu/perl/5.22.1/Demeter/IniReader.pm line 2.
> Compilation failed in require at
> /usr/local/lib/x86_64-linux-gnu/perl/5.22.1/Demeter/Config.pm line 31.
> BEGIN failed--compilation aborted at
> /usr/local/lib/x86_64-linux-gnu/perl/5.22.1/Demeter/Config.pm line 31.
> Compilation failed in require at
> /usr/local/lib/x86_64-linux-gnu/perl/5.22.1/Demeter.pm line 191.
> BEGIN failed--compilation aborted at
> /usr/local/lib/x86_64-linux-gnu/perl/5.22.1/Demeter.pm line 191.
> Compilation failed in require at
> /usr/local/lib/x86_64-linux-gnu/perl/5.22.1/Demeter/UI/Athena.pm line 24.
> BEGIN failed--compilation aborted at
> /usr/local/lib/x86_64-linux-gnu/perl/5.22.1/Demeter/UI/Athena.pm line 24.
> Compilation failed in require at /usr/local/bin/dathena line 31.
> BEGIN failed--compilation aborted at /usr/local/bin/dathena line 31.
> Use of uninitialized value $Larch::larch_exe in concatenation (.) or
> string at /usr/local/lib/x86_64-linux-gnu/perl/5.22.1/Larch.pm line 288.
> Can't exec "-q": No such file or directory at
> /usr/local/lib/x86_64-linux-gnu/perl/5.22.1/Larch.pm line 288.
>

I've attached a full error log from the build test, but I'm hardly
optimistic I can clean up my mess at this point. My current plan is to
create a 19.10 partition just to run Demeter. Such is the life of a
mediocre Linux user.

Thanks,
Jo Melville



On Wed, Nov 13, 2019 at 4:12 PM Jo Melville  wrote:

> Hello all,
>
> I am having some troubles successfully building Demeter from source on my
> Linux machine. All dependencies appeared to install correctly -- a few
> errors pop up upon running ./Build test (full error report attached), but
> as best I could discern, the errors produced were the same as those
> reported in this recent message
> 
> (
> https://www.mail-archive.com/ifeffit@millenia.cars.aps.anl.gov/msg06782.html
> ).
>
> Athena appear to install correctly and even start correctly, but upon
> attempting to import *any* data file into Athena, the following error
> message pops up (screenshot also attached):
>
>
>> 03:50:59 PM: Unknown warnings category 'experimental::script_run' at
>> /usr/share/perl/5.22/warnings.pm line 254.
>> warnings::Croaker("Unknown warnings category 'experimental::script_run'")
>> called at /usr/share/perl/5.22/warnings.pm line 332
>> warnings::unimport("warnings", "experimental::script_run") called at
>> (eval 2455) line 1
>> Pod::Simple::BlackBox::BEGIN() called at (eval 2455) line 1
>> eval {...} called at (eval 2455) line 1
>> eval 'no warnings "experimental::script_run";
>>   qr/(*script_run: ^ .* $ )/x' called at
>> /usr/local/share/perl/5.22.1/Pod/Simple/BlackBox.pm line 74
>> require Pod/Simple/BlackBox.pm called at
>> /usr/local/share/perl/5.22.1/Pod/Simple/LinkSection.pm line 7
>> Pod::Simple::LinkSection::BEGIN() called at (eval 2455) line 1
>> eval {...} called at (eval 2455) line 1
>> require Pod/Simple/LinkSection.pm called at
>> /usr/local/share/perl/5.22.1/Pod/Simple.pm line 9
>> Pod::Simple::BEGIN() called at (eval 2455) line 1
>> eval {...} called at (eval 2455) line 1
>> require Pod/Simple.pm called at /usr/share/perl/5.22/Pod/Text.pm line 34
>> Pod::Text::BEGIN() called at (eval 2455) line 1
>> eval {...} called at (eval 2455) line 1
>> require Pod/Text.pm called at
>> 

Re: [Ifeffit] Installation problems for Demeter on Ubuntu 16.04

2019-11-13 Thread Ravel, Bruce

Hi Jo,

I am sorry this is proving so difficult.  Just the other day, I 
installed everything on a machine with Ubuntu 19.10 and saw none of 
these problems.

The problem you are seeing is not one I have ever run into, so it;s a 
bit hard to comment on.  It is clearly a Wx problem.  Your traceback 
identifies it as a Wx problem.

If upgrading your machine to 19.10 is not an option (I /am/ pretty happy 
with the 19.10...) then I have a suggestion for you to try.  This 
suggestion assumes that you let Demeter's build script install the 
perl/Wx interface for you.  This will be a little hands-on -- sorry for 
that, but it's hard to do better from afar

First uninstall some of the things that Demeter installed.  I think the 
best way to do this will be:

cpanp uninistall Wx

"cpanp" is a program that comes with perl itself.  Yo willprobably have 
to sudo that command.

Now use Ubuntu's package manager to satisfy the wxperl requirement:

sudo apt install libwx-perl

say yes to all of the dependencies.  Now try building and installing 
Demeter again.  Do:

./Build dist-clean

then

perl -I. Build.PL
./Build
./Build test
./Build install

No guarantee that this will actually improve the situation.  Wx is a 
difficult thing to build.  It seems more reliable to use the one already 
built by the Ubuntu package manager.

Good luck!
B





On 11/13/19 4:12 PM, Jo Melville wrote:
> Hello all,
> 
> I am having some troubles successfully building Demeter from source on 
> my Linux machine. All dependencies appeared to install correctly -- a 
> few errors pop up upon running ./Build test (full error report 
> attached), but as best I could discern, the errors produced were the 
> same as those reported in this recent message 
> 
>  
> (https://www.mail-archive.com/ifeffit@millenia.cars.aps.anl.gov/msg06782.html 
> ).
> 
> Athena appear to install correctly and even start correctly, but upon 
> attempting to import /any/ data file into Athena, the following error 
> message pops up (screenshot also attached):
> 
> 03:50:59 PM: Unknown warnings category 'experimental::script_run' at
> /usr/share/perl/5.22/warnings.pm
> 
> 
> line 254.
> warnings::Croaker("Unknown warnings category
> 'experimental::script_run'") called at
> /usr/share/perl/5.22/warnings.pm
> 
> 
> line 332
> warnings::unimport("warnings", "experimental::script_run") called at
> (eval 2455) line 1
> Pod::Simple::BlackBox::BEGIN() called at (eval 2455) line 1
> eval {...} called at (eval 2455) line 1
> eval 'no warnings "experimental::script_run";
>                            qr/(*script_run: ^ .* $ )/x' called at
> /usr/local/share/perl/5.22.1/Pod/Simple/BlackBox.pm line 74
> require Pod/Simple/BlackBox.pm called at
> /usr/local/share/perl/5.22.1/Pod/Simple/LinkSection.pm line 7
> Pod::Simple::LinkSection::BEGIN() called at (eval 2455) line 1
> eval {...} called at (eval 2455) line 1
> require Pod/Simple/LinkSection.pm called at
> /usr/local/share/perl/5.22.1/Pod/Simple.pm line 9
> Pod::Simple::BEGIN() called at (eval 2455) line 1
> eval {...} called at (eval 2455) line 1
> require Pod/Simple.pm called at /usr/share/perl/5.22/Pod/Text.pm line 34
> Pod::Text::BEGIN() called at (eval 2455) line 1
> eval {...} called at (eval 2455) line 1
> require Pod/Text.pm called at
> 
> /usr/local/lib/x86_64-linux-gnu/perl/5.22.1/Demeter/UI/Athena/PluginRegistry.pm
> line 13
> Demeter::UI::Athena::PluginRegistry::BEGIN() called at (eval 2455)
> line 1
> eval {...} called at (eval 2455) line 1
> require Demeter/UI/Athena/PluginRegistry.pm called at
> /usr/local/lib/x86_64-linux-gnu/perl/5.22.1/Demeter/UI/Athena.pm
> line 2114
> Demeter::UI::Athena::make_page(Demeter::UI::Athena=HASH(0x28f21b0),
> "PluginRegistry") called at
> 

[Ifeffit] Installation problems for Demeter on Ubuntu 16.04

2019-11-13 Thread Jo Melville
Hello all,

I am having some troubles successfully building Demeter from source on my
Linux machine. All dependencies appeared to install correctly -- a few
errors pop up upon running ./Build test (full error report attached), but
as best I could discern, the errors produced were the same as those
reported in this recent message

(
https://www.mail-archive.com/ifeffit@millenia.cars.aps.anl.gov/msg06782.html
).

Athena appear to install correctly and even start correctly, but upon
attempting to import *any* data file into Athena, the following error
message pops up (screenshot also attached):


> 03:50:59 PM: Unknown warnings category 'experimental::script_run' at
> /usr/share/perl/5.22/warnings.pm line 254.
> warnings::Croaker("Unknown warnings category 'experimental::script_run'")
> called at /usr/share/perl/5.22/warnings.pm line 332
> warnings::unimport("warnings", "experimental::script_run") called at (eval
> 2455) line 1
> Pod::Simple::BlackBox::BEGIN() called at (eval 2455) line 1
> eval {...} called at (eval 2455) line 1
> eval 'no warnings "experimental::script_run";
>   qr/(*script_run: ^ .* $ )/x' called at
> /usr/local/share/perl/5.22.1/Pod/Simple/BlackBox.pm line 74
> require Pod/Simple/BlackBox.pm called at
> /usr/local/share/perl/5.22.1/Pod/Simple/LinkSection.pm line 7
> Pod::Simple::LinkSection::BEGIN() called at (eval 2455) line 1
> eval {...} called at (eval 2455) line 1
> require Pod/Simple/LinkSection.pm called at
> /usr/local/share/perl/5.22.1/Pod/Simple.pm line 9
> Pod::Simple::BEGIN() called at (eval 2455) line 1
> eval {...} called at (eval 2455) line 1
> require Pod/Simple.pm called at /usr/share/perl/5.22/Pod/Text.pm line 34
> Pod::Text::BEGIN() called at (eval 2455) line 1
> eval {...} called at (eval 2455) line 1
> require Pod/Text.pm called at
> /usr/local/lib/x86_64-linux-gnu/perl/5.22.1/Demeter/UI/Athena/PluginRegistry.pm
> line 13
> Demeter::UI::Athena::PluginRegistry::BEGIN() called at (eval 2455) line 1
> eval {...} called at (eval 2455) line 1
> require Demeter/UI/Athena/PluginRegistry.pm called at
> /usr/local/lib/x86_64-linux-gnu/perl/5.22.1/Demeter/UI/Athena.pm line 2114
> Demeter::UI::Athena::make_page(Demeter::UI::Athena=HASH(0x28f21b0),
> "PluginRegistry") called at
> /usr/local/lib/x86_64-linux-gnu/perl/5.22.1/Demeter/UI/Athena/IO.pm line 260
> Demeter::UI::Athena::IO::test_plugins(Demeter::UI::Athena=HASH(0x28f21b0),
> "/home/melville/Documents/XAFS/Sample Projects/Athena and Arte"...) called
> at /usr/local/lib/x86_64-linux-gnu/perl/5.22.1/Demeter/UI/Athena/IO.pm line
> 168
> Demeter::UI::Athena::IO::Import(Demeter::UI::Athena=HASH(0x28f21b0))
> called at /usr/local/lib/x86_64-linux-gnu/perl/5.22.1/Demeter/UI/Athena.pm
> line 890
> Demeter::UI::Athena::OnMenuClick(Wx::Frame=HASH(0xab38570),
> Wx::CommandEvent=SCALAR(0xdaee6e0), Demeter::UI::Athena=HASH(0x28f21b0))
> called at /usr/local/lib/x86_64-linux-gnu/perl/5.22.1/Demeter/UI/Athena.pm
> line 808
> Demeter::UI::Athena::__ANON__(Wx::Frame=HASH(0xab38570),
> Wx::CommandEvent=SCALAR(0xdaee6e0)) called at /usr/local/bin/dathena line 35
> eval {...} called at /usr/local/bin/dathena line 35
>
> 03:50:59 PM: Unknown warnings category 'experimental::script_run' at
> /usr/share/perl/5.22/warnings.pm line 254.
> warnings::Croaker("Unknown warnings category 'experimental::script_run'")
> called at /usr/share/perl/5.22/warnings.pm line 332
> warnings::unimport("warnings", "experimental::script_run") called at (eval
> 2455) line 1
> Pod::Simple::BlackBox::BEGIN() called at (eval 2455) line 1
> eval {...} called at (eval 2455) line 1
> eval 'no warnings "experimental::script_run";
>   qr/(*script_run: ^ .* $ )/x' called at
> /usr/local/share/perl/5.22.1/Pod/Simple/BlackBox.pm line 74
> require Pod/Simple/BlackBox.pm called at
> /usr/local/share/perl/5.22.1/Pod/Simple/LinkSection.pm line 7
> Pod::Simple::LinkSection::BEGIN() called at (eval 2455) line 1
> eval {...} called at (eval 2455) line 1
> require Pod/Simple/LinkSection.pm called at
> /usr/local/share/perl/5.22.1/Pod/Simple.pm line 9
> Pod::Simple::BEGIN() called at (eval 2455) line 1
> eval {...} called at (eval 2455) line 1
> require Pod/Simple.pm called at /usr/share/perl/5.22/Pod/Text.pm line 34
> Pod::Text::BEGIN() called at (eval 2455) line 1
> eval {...} called at (eval 2455) line 1
> require Pod/Text.pm called at
> /usr/local/lib/x86_64-linux-gnu/perl/5.22.1/Demeter/UI/Athena/PluginRegistry.pm
> line 13
> Demeter::UI::Athena::PluginRegistry::BEGIN() called at (eval 2455) line 1
> eval {...} called at (eval 2455) line 1
> require Demeter/UI/Athena/PluginRegistry.pm called at
> /usr/local/lib/x86_64-linux-gnu/perl/5.22.1/Demeter/UI/Athena.pm line 2114
> Demeter::UI::Athena::make_page(Demeter::UI::Athena=HASH(0x28f21b0),
> "PluginRegistry") called at
> /usr/local/lib/x86_64-linux-gnu/perl/5.22.1/Demeter/UI/Athena/IO.pm line 260
>