<div dir="ltr">Hi Yao-Hong,<div><br></div><div>Have you looked at this tutorial? <a href="http://blog.levilentz.com/?p=181">http://blog.levilentz.com/?p=181</a> </div><div><br></div><div>I'm assuming the qe2boltz.py you are using does not handle symmetry very well as described by Levi in the blog post above. It is likely that in the if-elif sequence right after "for lin in f_pw:" in the code, nsym never gets assigned a value, resulting in an error message when you call it in the line "for ir in range(nsym):". Levi in the blog post provides a modified qe2boltz.py <a href="http://levilentz.com/BoltzTraP/qe2boltz.py">http://levilentz.com/BoltzTraP/qe2boltz.py</a> that accounts for the scenario where no symmetry is found. Does this help?</div><div><br></div><div>Thanks,</div><div>--Suchit</div></div>