ASE_ANI icon indicating copy to clipboard operation
ASE_ANI copied to clipboard

ModuleNotFoundError: No module named 'ase_interface'

Open UnixJunkie opened this issue 2 years ago • 3 comments

$ python3 examples/ani_quicktest.py 
Traceback (most recent call last):
  File "~/src/ASE_ANI/examples/ani_quicktest.py", line 6, in <module>
    from ase_interface import ANIENS
ModuleNotFoundError: No module named 'ase_interface'

UnixJunkie avatar Sep 26 '23 01:09 UnixJunkie

You can reproduce with this script:

#!/bin/bash

source bashrc_example.sh

export PATH=/usr/local/cuda-9.2/bin:${PATH}

export LD_LIBRARY_PATH=/usr/local/cuda-9.2/lib64:${HOME}/src/ASE_ANI/lib:${LD_LIBRARY_PATH}

python3 examples/ani_quicktest.py 

UnixJunkie avatar Sep 26 '23 02:09 UnixJunkie

export PYTHONPATH=${HOME}/src/ASE_ANI/lib:${PYTHONPATH} might solve this problem

UnixJunkie avatar Sep 26 '23 02:09 UnixJunkie

Fixed by:

#!/bin/bash

export PATH=/usr/local/cuda-9.2/bin:${PATH}

export LD_LIBRARY_PATH=/usr/local/cuda-9.2/lib64:${HOME}/src/ASE_ANI/lib:${LD_LIBRARY_PATH}

export PYTHONPATH=${HOME}/src/ASE_ANI/lib:${PYTHONPATH}

source bashrc_example.sh

python3 examples/ani_quicktest.py 

You might want to include this script and call it test.sh.

UnixJunkie avatar Sep 26 '23 02:09 UnixJunkie