Adding USER-COLVARS package

Dear LAMMPS Users

I have tried to follow the instructions on http://lammps.sandia.gov/doc/Section_packages.html to add USER-COLVARS package.
However, when I am in src direction and do:

make lib-colvars args="-m mpi"

I have encountered the following error:

Installing lib colvars

Building libcolvars.a …

Traceback (most recent call last):

File “Install.py”, line 135, in

print(subprocess.check_output(cmd, shell=True).decode(‘UTF-8’))

AttributeError: ‘module’ object has no attribute ‘check_output’

I am not very familiar with adding packages that requires extra libraries, and I would be grateful for any help.

Best Wishes

Lunna

Dear LAMMPS Users

I have tried to follow the instructions on
http://lammps.sandia.gov/doc/Section_packages.html to add USER-COLVARS
package.
However, when I am in src direction and do:

make lib-colvars args="-m mpi"

I have encountered the following error:

Installing lib colvars

Building libcolvars.a ...

Traceback (most recent call last):

  File "Install.py", line 135, in <module>

    print(subprocess.check_output(cmd, shell=True).decode('UTF-8'))

AttributeError: 'module' object has no attribute 'check_output'

I am not very familiar with adding packages that requires extra libraries,
and I would be grateful for any help.

this has nothing to do with building, this is an error stemming from
you having a rather old python.
this python script is included for convenience, but you can find in
the documentation instructions for how to compile the library directly
without the Install.py script.

axel.

Dear Axel

Thanks very much for your advice. I have installed the package successfully.

Best Wishes
Lunna