Re: [Rdkit-discuss] Error writing gzipped sdf

2018-09-02 Thread Sharky El Sharko
Hi Paolo, Perfect!  Grazie mille.  I can't thank you enough. Kind regards, Steve On 02/09/18 15:50, Paolo Tosco wrote: Hi Steve, sorry, my bad. Use "wt+". p. On 02/09/2018 15:26, Sharky El Sharko wrote: Hi Paolo, I'm afraid I get the same error with 'wb+'. S On 02/09/18 15:24,

Re: [Rdkit-discuss] Error writing gzipped sdf

2018-09-02 Thread Paolo Tosco
Hi Steve, sorry, my bad. Use "wt+". p. On 02/09/2018 15:26, Sharky El Sharko wrote: Hi Paolo, I'm afraid I get the same error with 'wb+'. S On 02/09/18 15:24, Paolo Tosco wrote: Hi Steve, Try replacing “w+” with “wb+” to open the file as a binary stream. Cheers, p. On 2 Sep 2018, at

Re: [Rdkit-discuss] Error writing gzipped sdf

2018-09-02 Thread Sharky El Sharko
Hi Paolo, I'm afraid I get the same error with 'wb+'. S On 02/09/18 15:24, Paolo Tosco wrote: Hi Steve, Try replacing “w+” with “wb+” to open the file as a binary stream. Cheers, p. On 2 Sep 2018, at 16:13, Sharky El Sharko > wrote: Hi, Please can

Re: [Rdkit-discuss] Error writing gzipped sdf

2018-09-02 Thread Paolo Tosco
Hi Steve, Try replacing “w+” with “wb+” to open the file as a binary stream. Cheers, p. > On 2 Sep 2018, at 16:13, Sharky El Sharko wrote: > > Hi, > > Please can someone tell me why I am getting an error writing a gzipped sdf, > and how to fix it. I am running python 3.6.5 with the latest