Hi,

I'm using OpenBabel 2.3.2 on Mac (installed via homebrew) and on Ubuntu 12.04 
(compiled from github tag 2.3.2 with cmake options -DRUN_SWIG=ON and 
-DPYTHON_BINDINGS=ON). In both these cases I'm having problems with the png 
format(s) from Python. The command line obabel (obabel -:c1ccncc1 -ismi -O 
test.png --gen2D) is working great, but when I'm trying to do the same from 
pybel there are some problems…
To start with, png2 is not in pybel.outputformats so mol.draw() won't work at 
all. If I try to use mol.write("png", "test.png") instead I get a Segmentation 
Fault. Finally, through the openbabel module in python 
conv.SetInAndOutFormats("smi", "png") yields a string 
('\x00\x00\x00\x11tEXtsmiles\x00c1cnccc1\t\n\xce\x88`\x8b') that I suppose is 
what would be included in the png created by the png2format and using 
conv.SetInAndOutFormats("smi", "png2") returns False, I suppose due to the fact 
that png2 can't be loaded.

Any ideas on what can have gone wrong?

Kind regards,
Fredrik
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

Reply via email to