[gpaw-users] The error ZipExtFile when running gapw

anyy zsjanyy at gmail.com
Wed Aug 27 11:01:32 CEST 2014


Dear all:
After installation of gpaw, I start to test the code but with the
following error. After google a lot I realize that the problem may be
originated from python 2.7. But how to fix it? I have no idea and Could
you give me some suggestions? Thank you!



Traceback (most recent call last):
File "./spinpol.py", line 2, in <module>
from gpaw import GPAW
File
"/home/zhao/GPAW/source/gpaw-0.9.0.8965/build/lib.linux-x86_64-2.7/gpaw/__init__.py",
line 211, in <module>
from gpaw.aseinterface import GPAW
File
"/home/zhao/GPAW/source/gpaw-0.9.0.8965/build/lib.linux-x86_64-2.7/gpaw/aseinterface.py",
line 12, in <module>
from gpaw.paw import PAW
File
"/home/zhao/GPAW/source/gpaw-0.9.0.8965/build/lib.linux-x86_64-2.7/gpaw/paw.py",
line 36, in <module>
from gpaw.setup import Setups
File
"/home/zhao/GPAW/source/gpaw-0.9.0.8965/build/lib.linux-x86_64-2.7/gpaw/setup.py",
line 21, in <module>
from gpaw.setup_data import SetupData
File
"/home/zhao/GPAW/source/gpaw-0.9.0.8965/build/lib.linux-x86_64-2.7/gpaw/setup_data.py",
line 22, in <module>
import gzip
File "/usr/lib/python2.7/gzip.py", line 10, in <module>
import io
File "/home/zhao/GPAW/install/python-ase-3.6.0.2515/ase/io/__init__.py",
line 4, in <module>
from zipfile import is_zipfile
File "/usr/lib/python2.7/zipfile.py", line 464, in <module>
class ZipExtFile(io.BufferedIOBase):
AttributeError: 'module' object has no attribute 'BufferedIOBase'
GPAW CLEANUP for serial binary: <type 'exceptions.AttributeError'>
occured. Calling sys.exit()



Shijun Zhao
Peking University


More information about the gpaw-users mailing list