Installation#

Here we briefly describe how to install the aiida-vasp plugin. The plugin is available on PyPI and can be installed using pip. However, it is recommended to install the plugin from the source code if you plan to contribute to its development.

Prerequisites#

Before starting to use this plugin, please make sure the following prerequisites are met:

  • A working AiiDA version >= 2.3 installation.

  • A configured profile in AiiDA.

  • VASP is installed on some computer, for instance a remote HPC cluster. Ideally also on the computer running this plugin so you can run some quick calculations to explore.

  • VASP >= 5.4.4 is used. The plugin has been tested with both VASP 5.4.4 and VASP 6 versions.

  • A computer where VASP is installed and that you can SSH to that computer without using a password. This can be your local computer.

For details on how to install and configure AiiDA, please consult its own online documentation. In the documentation you will also find details on how to setup a profile, Computer and Code.

VASP is licensed software and you need to obtain your own VASP license. If you need to install VASP yourself or need to assist someone, for instance HPC maintenance staff, please consult the VASP wiki.

Install the plugin#

In most cases, AiiDA is installed into a virtual environment. Activate the virtual environment associated with it:

Assuming uv has been installed (if not, follow this guide).

First, create a virtual environment using:

   $ uv venv <path_to_venv>

then activate it with

   $ source <path_to_venv>/bin/activate

Assuming the virtual environment is installed in ~/env/aiida-vasp, activate it using:

   $ source ~/env/aiida-vasp/bin/activate

Assuming the conda environment is named aiida-vasp, activate it using:

   $ conda activate aiida-vasp

The aiida-vasp plugin can now be installed using pip:

   $ (aiida-vasp) uv pip install aiida-vasp
   $ (aiida-vasp) pip install aiida-vasp

However, it is likely that the PyPI version is not up to date with the latest development version. In this case, you can install the plugin from the source code using:

   $ (aiida-vasp) git clone https://github.com/aiida-vasp/aiida-vasp.git
   $ (aiida-vasp) cd aiida-vasp
   $ (aiida-vasp) uv pip install -e ".[pre-commit,testing]"
   $ (aiida-vasp) git clone https://github.com/aiida-vasp/aiida-vasp.git
   $ (aiida-vasp) cd aiida-vasp
   $ (aiida-vasp) pip install -e ".[pre-commit,testing]"

This is also the recommended way to install the plugin if you plan to contribute to its development.

Note that in both cases, the dependencies of the plugin will also be installed automatically.

To verify the installation, you can run the following command:

   $ verdi plugin list aiida.calculations

and the printed list should include the vasp.vasp entry:

Registered entry points for aiida.calculations:
* core.arithmetic.add
* core.templatereplacer
* core.transfer
* vasp.immigrant
* vasp.neb
* vasp.vasp
* vasp.vasp2w90