I am attempting to reproduce phonon surface state calculations using the Wannier tools package. In the first step, I aim to obtain the phonon tight binding Hamiltonian from force constants or force sets by running the phonon_hr.py program. However, I encounter an error message stating: "cannot import name 'create_FORCE_SETS' from 'phonopy.interface' (.../python3.8/site-packages/phonopy/interface/init.py)".

Despite having successfully installed Phonopy, this error persists. Upon commenting out the line "from phonopy.interface import create_FORCE_SETS, read_crystal_structure" from the code, a new error arises: options, args = parser.parse_args() AttributeError: 'tuple' object has no attribute 'parse_args'.

I would greatly appreciate any insights or guidance on resolving these issues and successfully obtaining the phonon tight-binding Hamiltonian.

More Koushik R. Das's questions See All
Similar questions and discussions