On 05/05/2011 21:12, Geoffrey Hutchison wrote:
>> 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).

That's not quite right. On the Windows commandline and GUI, gzipped 
files are read ok.  It is writing of compressed files that is not 
supported because of this bug.

However I find the same problem as Adrià Cereto-Massagué
  when using Python on Windows with most gzipped files. The files are 
all read ok in the OpenBabel GUI. But strangely this file 
http://dalkescientific.com/writings/benzodiazepine.sdf.gz works ok for 
me. I'll open a bug report.

Chris

------------------------------------------------------------------------------
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

Reply via email to