Looks like the problem opening the file with the extra parameters used ('t+') 
as the gzip module just sticks a 'b' on the end of the opening mode

if mode and 'b' not in mode:
mode += 'b'

The test should run if line 3033 is changed from
 outf = gzip.open(tempfile.mktemp(),'wt+')
to
 outf = gzip.open(tempfile.mktemp(),'wb+')

which I would put right but I still have zero idea how to use git :)

The more interesting question is why does this work on Unix/Mac but not on 
Windows, and why do you get this error when it's not in the gzip code?


Best,
Nick

Nicholas C. Firth | PhD Student | Cancer Therapeutics
The Institute of Cancer Research | 15 Cotswold Road | Belmont | Sutton | Surrey 
| SM2 5NG
T 020 8722 4033 | E [email protected]<mailto:[email protected]> | 
W www.icr.ac.uk<http://www.icr.ac.uk/> | Twitter 
@ICRnews<https://twitter.com/ICRnews>
Facebook 
www.facebook.com/theinstituteofcancerresearch<http://www.facebook.com/theinstituteofcancerresearch>
Making the discoveries that defeat cancer

[cid:[email protected]]

On 13 Jul 2015, at 15:16, James Davidson 
<[email protected]<mailto:[email protected]>> wrote:

gzip.pyc


The Institute of Cancer Research: Royal Cancer Hospital, a charitable Company 
Limited by Guarantee, Registered in England under Company No. 534147 with its 
Registered Office at 123 Old Brompton Road, London SW7 3RP.

This e-mail message is confidential and for use by the addressee only.  If the 
message is received by anyone other than the addressee, please return the 
message to the sender by replying to it and then delete the message from your 
computer and network.
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Rdkit-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

Reply via email to