epam / Indigo

Universal cheminformatics toolkit, utilities and database search tools
http://lifescience.opensource.epam.com
Apache License 2.0
315 stars 105 forks source link

Technical issue regarding indigo renderer #1962

Open jjishizaki opened 4 months ago

jjishizaki commented 4 months ago

Hello, I am currently programming a project that draws line-angle diagrams of molecules. I initially installed indigo using pip install epam.indigo and followed the documentation on the indigo website. However, when I type code referencing indigo renderer, such as indigoRenderer.renderGridToFile(array, None, 2, 'result.png'), it says that indigo renderer is not defined and I don't get an image of the molecule. At the beginning of my code I have from indigo import *; indigo = Indigo() (2 lines of code) is this enough? How can I get indigo renderer to work to develop drawings of my molecules?

even1024 commented 4 months ago

there are plenty of rendering tests here:

https://github.com/epam/Indigo/tree/master/api/tests/integration/tests/rendering

jjishizaki commented 4 months ago

Hi, perhaps I don't have the necessary programming experience but I am wondering how these test files were able to get renderer to work. Even after typing from env_indigo import * and from rendering import * I am still getting issues saying the modules aren't recognized. I am also not well-versed with the errno, os, and sys modules. Does these files depend on there being other indigo-related files in the path?