Hongbin Yang
2017-05-31 09:06:16 UTC
Hi£¬
I installed openbabel via `conda install -c openbabel openbabel`.
I wanted to draw the molecule like`pybel.readstring('smi','c1ccccc1').draw()`
Then the error was raised:?C:\Users\yanya\Anaconda2\lib\site-packages\pybel.pyc in draw(self, show, filename, update, usecoords)
615 formatok = obconversion.SetOutFormat("_png2")
616 if not formatok:
--> 617 raise ImportError("PNG depiction support not found. You should "
618 "compile Open Babel with support for Cairo. See "
619 "installation instructions for more "
ImportError: PNG depiction support not found. You should compile Open Babel with support for Cairo. See installation instructions for more information.
The installed packages includes:libpng 1.6.28 vc9_0 [vc9] conda-forgepillow 4.0.0 py27_0pycairo 1.10.0 <pip>openbabel 2.4.1 py27_2 openbabelcairo 1.14.6 vc9_4 [vc9] conda-forge
I have both pillow and (py)cairo. Why can't I draw the molecule ?I guess that if I followed the suggestion and compile it with suport cairo it will work. But I have to work with conda. Is there any better way?
Sincerely,?
Hongbin Yang Ñîºë±ö
Research: Toxicophore and Chemoinformatics
Pharmaceutical Science, School of Pharmacy
East China University of Science and Technology?
I installed openbabel via `conda install -c openbabel openbabel`.
I wanted to draw the molecule like`pybel.readstring('smi','c1ccccc1').draw()`
Then the error was raised:?C:\Users\yanya\Anaconda2\lib\site-packages\pybel.pyc in draw(self, show, filename, update, usecoords)
615 formatok = obconversion.SetOutFormat("_png2")
616 if not formatok:
--> 617 raise ImportError("PNG depiction support not found. You should "
618 "compile Open Babel with support for Cairo. See "
619 "installation instructions for more "
ImportError: PNG depiction support not found. You should compile Open Babel with support for Cairo. See installation instructions for more information.
The installed packages includes:libpng 1.6.28 vc9_0 [vc9] conda-forgepillow 4.0.0 py27_0pycairo 1.10.0 <pip>openbabel 2.4.1 py27_2 openbabelcairo 1.14.6 vc9_4 [vc9] conda-forge
I have both pillow and (py)cairo. Why can't I draw the molecule ?I guess that if I followed the suggestion and compile it with suport cairo it will work. But I have to work with conda. Is there any better way?
Sincerely,?
Hongbin Yang Ñîºë±ö
Research: Toxicophore and Chemoinformatics
Pharmaceutical Science, School of Pharmacy
East China University of Science and Technology?