Hi all,
I have a script that runs fine on my old computer, but crashes on my new computer with the error message:
IndentationError: unexpected indent
This script is (amongst other things) calling the softwatre Coot such as:
subprocess.call(["""coot --no-graphics<<end/n
(handle-read-draw-molecule-with-recentre \""""+str(inf)+"""\" 1)
(set-refinement-immediate-replacement 1)
(set-refine-max-residues 40)
(regularize-zone 0 \" \" """+str(res1-2)+""" """+str(res3)+"""\" \")
(accept-regularizement)
(regularize-zone 0 \" \" """+str(res3)+""" """+str(res2+2)+"""\" \")
(accept-regularizement)
(write-pdb-file 0 \""""+str(outf)+"""\")
(coot-real-exit 0)"""], shell=True)
which is ok on my old system. I am trying to find the most likely source of this error. Here are the differences:
- OLD cctbx = uses Python 2.7.10, NEW cctbx 2.7.14
- OLD OSX = 10.10.5 (i.e. Yosemite), NEW OSX = 10.11.5 (i.e. El Capitan)
- OLD Coot = vers 0.8, NEW Coot = vers 0.8.8 [old Coot install was from Fink but this shouldn’t matter I think]
Perhaps someone has encountered something similar or has an educated guess on whether different cctbx versions can cause such errors?
Thanks,
Magnus
####
Magnus Andersson, Docent, Ph.D.
Email: magnus.andersson(a)scilifelab.se
Phone: 0769469872
Mailing address:
Science For Life Laboratory
Alpha 6
Box 1031
171 21 Solna
Visiting address:
Tomtebodavägen 23A
171 65 Solna