Hi again,
I just realized (after creating an identical patch myself…) that this was fixed
in commit df59c4a630cf753723d1318c40479d48b7507e1c although that one isn't in
the 2.3.2 tag… Anyway, applying those changes to pybel makes everything work as
usual.
/Fredrik
24 jun 2013 kl. 15:13 skrev Fredrik Wallner <[email protected]>:
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/openbabel-discuss
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
OpenBabel-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss