I have installed lammps in a remote machine through apt-get.
Following were the commands:
$ sudo add-apt-repository ppa:gladky-anton/lammps
$ sudo add-apt-repository ppa:openkim/latest
$ sudo apt-get update
$ sudo apt-get install lammps-stable
lmp_stable is the executable. It works fine. However I can not find the python tools like logplot.py, log2txt.py etc.
So in order to use them I copied logplot.py and pizza folder from my local machine and put it in the remote machine. Then I tried python <location>/logplot.py <log file from lammps <thermo keyword 1- Step> <thermo keyword 2- Temp>
and it did not work. Error was
File "/home/ubuntu/multiscale/bin/logplot.py", line 12, in <module>
path = os.environ["LAMMPS_PYTHON_TOOLS"]
File "/usr/lib/python2.7/UserDict.py", line 40, in __getitem__
raise KeyError(key)
KeyError: 'LAMMPS_PYTHON_TOOLS'
Then I tried to make the environment variable LAMMPS_PYTHON_TOOLS=<location of python files>/pizza/
It still shows same error.
So my question is, how to access the tools/python/ files when I install lammps using apt-get and in case I copy the files from somewhere else, then how to make it work?