First I would suggest to update to USPEX 10.4.1
Then please check:
python version: python -V
installed general python programs: pip list
user-installed: pip list --user
You should have all the required programs, like ase, numpy, scipy, matplotlib, spglib, pysqlite3, Cython
(I hope I listed all, but please check the USPEX installation manual/README).
The settings may vary depending on the machine and version you are working on. Different versions of Unix and libraries may require slightly different settings/program versions.
then:
export LC_ALL=C.UTF-8
export LANG=C.UTF-8
I usually include these setting also in the script that will run VASP code.
Concerning VASP,
whether there are many environmental settings that I found could influence the way in which USPEX is running.
Sometimes the libstdc++.so.6 contained in the v91/sys/os/glnxa64 directory are creating problems.
You may try to move the library in a non-accessible directory, so that the corresponding library of the current machine will be used.
Sometimes also the libgcc_s.so.1 libgfortran.so.3 and libquadmath.so.0 may interfere as well.
You will have to try and test your local machine.
However, the NaN error should be mostly related to the impossibility for python to correctly read numbers from the output, and this is strictly related to the local settings of the unix machine.
At least this is my personal experience.
HTH,
Carlo