DSV to PSF files

I am trying to generate PCA maps using PDB, PSF, and DCD files from DS, however, when I generate the PSF files in DS and try to run my script in other software, is not possible because the lengths of input data are not all equal. 
Did anyone face this problem?