[gpaw-users] The error ZipExtFile when running gapw
Marcin Dulak
Marcin.Dulak at fysik.dtu.dk
Wed Aug 27 12:06:55 CEST 2014
Hi,
On 08/27/2014 11:01 AM, anyy wrote:
> 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()
do you have an io.py file in your PYTHONPATH or current directory?
Please do not run any tests from within gpaw or ase source.
Best regards,
Marcin
>
>
>
> Shijun Zhao
> Peking University
> _______________________________________________
> gpaw-users mailing list
> gpaw-users at listserv.fysik.dtu.dk
> https://listserv.fysik.dtu.dk/mailman/listinfo/gpaw-users
>
>
More information about the gpaw-users
mailing list