datclass: parse error (only on Ubuntu 14.04)

Interactive and automated data processing tools (PRIMUS, GNOM, AUTORG).
Scattering from simple bodies (BODIES), peak analysis (PEAK), data plotting (SASPLOT) etc.
Post Reply
Message
Author
Alex
Active member
Posts: 692
Joined: 2007.08.09 21:10
Location: Planet Earth

datclass: parse error (only on Ubuntu 14.04)

#1 Post by Alex » 2017.03.21 22:45

I installed ATSAS 2.8.0 using synaptic package manager on ubuntu 14.04.

when using 'datclass' i get the following error:
$ /usr/bin/datclass --rg=2.96 --i0=88.2 bsa_00583.out
: parse error
$ /usr/bin/datclass --rg=2.96 --i0=88.2 bsa_00583.dat
: parse error

and ..:)
/usr/bin/datclass
: parse error

Other dattools seems to be ok.

Alex

franke
Administrator
Posts: 408
Joined: 2007.08.10 11:09
Contact:

Re: datclass: parse error (only on Ubuntu 14.04)

#2 Post by franke » 2017.03.21 23:29

Can't reproduce here:

Code: Select all

$ lsb_release -rd
Description:    Ubuntu 14.04.5 LTS
Release:        14.04
$ which datclass
/usr/bin/datclass
$ datclass -v
datclass, ATSAS 2.8.1 (r9338)
$ datclass /usr/share/doc/atsas-2.8.1/dammif/example/lyz.out 
compact         /usr/share/doc/atsas-2.8.1/dammif/example/lyz.out
To be fair, this is the 2.8.1 pre-release, but there weren't any changes in datclass in 2.8.1.
Since it says "parse error", could you try "strace datclass" to see which file it tries to open and parse? If it is the training file, you may try the "--training" flag and point it the right one (/usr/share/atsas/datclass/shape.txt). Maybe your ATSAS variable is set to the wrong place? Try unsetting it.

Alex
Active member
Posts: 692
Joined: 2007.08.09 21:10
Location: Planet Earth

Re: datclass: parse error (only on Ubuntu 14.04)

#3 Post by Alex » 2017.03.22 11:00

Hi Daniel
yeah, you are right - i started with installation using *tar.gz and had ATSAS variables
set in my bashrc, whereas then i switched to synaptic manager installation without reverting changes
in my bashrc.

thanks, Alex

Post Reply