Join Stack Overflow to learn, share knowledge, and build your career.
I'm trying to run this code, to run the same command (with little changes) with every frame that I have:
I run this and I get this error:
I searched in internet, but I can't find a good answer. | ||||
add a comment
|
The problem is with the \ char that should either be double escaped, i.e. changed to "\\" Or alternatively add an "r" before the string decleration: pml_cmd = r"pymol urei%s.pdb ..." You get this particular error since somewhere along the string there is a \0 which is interpreted as a NULL char | ||||
I was able to resolve this error by commenting out the
I could have done | |||
Your Answer
Post as a guest
Name
Email
|
By posting your answer, you agree to the privacy policy and terms of service.
Not the answer you're looking for? Browse other questions tagged python null byte os.system or ask your own question.
STACK OVERFLOW
STACK OVERFLOW
BUSINESS
COMPANY
site design / logo © 2018 Stack Exchange Inc; user contributions licensed under cc by-sa 3.0 with attribution required.rev 2018.2.7.28849