On Mar 15, 2011, at 5:37 AM, wascm wrote:
Dear sir:
Thanks for the detailed reply!
When the following code was added to the start of sciprt:
import chimeraInit
chimeraInit.init(nogui=True, silent=True)
The interpreter print the following confused error:
---------------------------------------------
Traceback (most recent call last):
File "./xx.py", line 5, in <module>
chimeraInit.init(nogui=True, silent=True)
TypeError: init() takes at least 1 argument (2 given)
There was an oversight in the code Greg provided: chimeraInit.init takes a mandatory "argv" argument, which is exactly like sys.argv.
Yes. Use a --script argument, like this: