google-code-export / ccc-gistemp

Automatically exported from code.google.com/p/ccc-gistemp
Other
0 stars 0 forks source link

Fails on Python 2.7 #91

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Checked out revision 618.
$ cd ccc-gistemp
$ nice python tool/run.py 
MISSING: input/antarc1.list
MISSING: input/antarc1.txt
MISSING: input/antarc2.list
MISSING: input/antarc2.txt
MISSING: input/antarc3.list
MISSING: input/antarc3.txt
MISSING: input/t_hohenpeissenberg_200306.txt_as_received_July17_2003
MISSING: input/ushcn2.tbl
MISSING: input/ushcnV2_cmb.tbl
MISSING: input/mcdw.tbl
MISSING: input/ushcn2.tbl
MISSING: input/sumofday.tbl
MISSING: input/v2.inv
MISSING: input/oisstv2_mod4.clim.gz
MISSING: input/v2.mean
MISSING: input/ushcnv2
MISSING: input/SBBX.HadR2
Attempting to fetch missing files: antarc1.list antarc1.txt antarc2.list 
antarc2.txt antarc3.list antarc3.txt 
t_hohenpeissenberg_200306.txt_as_received_July17_2003 ushcn2.tbl 
ushcnV2_cmb.tbl mcdw.tbl ushcn2.tbl sumofday.tbl v2.inv oisstv2_mod4.clim.gz 
v2.mean ushcnv2 SBBX.HadR2
Traceback (most recent call last):
  File "tool/run.py", line 280, in <module>
    sys.exit(main())
  File "tool/run.py", line 222, in main
    preflight.checkit(sys.stderr)
  File "/Users/drj/ccc-gistemp/tool/preflight.py", line 102, in checkit
    import fetch
  File "/Users/drj/ccc-gistemp/tool/fetch.py", line 44, in <module>
    import zipfile
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/zipfile.py", line 456, in <module>
    class ZipExtFile(io.BufferedIOBase):
AttributeError: 'module' object has no attribute 'BufferedIOBase'

Original issue reported on code.google.com by d...@ravenbrook.com on 12 Nov 2010 at 3:27

GoogleCodeExporter commented 9 years ago
It's probably tool/io.py, which conflicts with a Python 2.7 module named 'io'.

Original comment by d...@ravenbrook.com on 12 Nov 2010 at 3:28

GoogleCodeExporter commented 9 years ago
Fixed by r619 which renames io.py as gio.py

Original comment by d...@ravenbrook.com on 15 Nov 2010 at 8:35