El 5 de maig de 2011 22:12, Geoffrey Hutchison <[email protected]> ha
escrit:
> > I was writing an application in python which reads and writes some data
> stored in gzipped sdf and mol2 files. These files are gzipped, and I can use
> them directly with pybel.readfile in linux without problems with OB 2.3.
> However, when I try the same on MS Windows with OB 2.3 and python 2.7.1,
> when I try to read a sdf file I just get a warning like this:
>
> There is no support for gzip on Windows -- the C++ code used for libz has a
> known bug. (Our intent is that we'll switch to the Boost::Iostreams, which
> offers a much more robust gzip and bzip2 implementation).
>
> Since you're accessing from Python, I'd suggest using Python to un-gzip and
> then read from that string using OBConversion::ReadString().
>
> Hope that helps,
> -Geoff
Thank you for your reply.
I think i'm going to simply tell the user that gzipped files are not
supported on windows,as they can be quite large files (like 15 MB), which
would use quite a lot of RAM. Or maybe I can work out a different
workaround, like writing the unzipped files to a temporary place...
Anyways, thank you for your answer, it helped :)
Adrià Cereto-Massagué
--
*Adrià Cereto Massagué*
Biotechnology student
Universitat Rovira i Virgili
Languages: Català, Español, English, Français, Deutsch, Português, Esperanto
Nota importante
<http://www.gnu.org/philosophy/no-word-attachments.es.html>| Important
Notice <http://www.gnu.org/philosophy/no-word-attachments.html>
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today. Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
OpenBabel-scripting mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbabel-scripting