My question is a follow-up question to this question posted by Hemanth Haridas.
I ran the example .py script in Geoff Hutchison's answer for the above mentioned question to generate .png files from .xyz files in avogadro using python.
The script is available here : Script-Github
I ran the script on my local Mac OS. The python script is in the same directory as the .xyz files. This is the output for one file:
Opening mol2.xyz
b'{\n "id": 0,
\n "jsonrpc": "2.0",
\n "result": true\n}
\n'
b'{\n "error":
{\n "code": -32601,\n
"data":
{\n "request":
{\n "id": 0,
\n "jsonrpc": "2.0",\n
"method": "saveGraphic",
\n "params":
{\n
"fileName":
"/Users/aimun/
avogadroextract/mol2.png"\n }
\n }\n },\n
"message":
"Method not found"\n },\n
"id": 0,\n "jsonrpc": "2.0"\n}\n'
The same error is displayed for all the other .xyz files in the directory.
I have Avogadro 1.97.0 and Avogadro 1.2.0 installed in my mac. When I run the script, I see only the Avogadro 1.97.0 window being updated with the molecule structures, however, the files are not saved as .png.
According to json-rpc 2.0 specification, code: -32601
means 'The method does not exist / is not available'.
Any leads on how to address this will be highly appreciated.