[gpaw-users] The error ZipExtFile when running gapw
Marcin Dulak
Marcin.Dulak at fysik.dtu.dk
Wed Aug 27 15:41:23 CEST 2014
Hi,
On 08/27/2014 03:35 PM, anyy zsj wrote:
> Thank you!
> After check my PYTHONPATH I found there is a directory "io" in my
> PYTHONPATH located at:
> .../python-ase-3.6.0.2515/ase
PYTHONPATH must not contain: ...pathtodir.../python-ase-3.6.0.2515/ase
only: ...pathtodir.../python-ase-3.6.0.2515
ASE 3.6.0 is very old - consider updating.
Best regards,
Marcin
> The error remains whereever I issued the "gpaw-test" command. So any
> more suggestions?
>
> 2014-08-27 18:06 GMT+08:00 Marcin Dulak <Marcin.Dulak at fysik.dtu.dk>:
>> 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
>>>
>>>
>>
>
--
***********************************
Marcin Dulak
Technical University of Denmark
Department of Physics
Building 307, Room 229
DK-2800 Kongens Lyngby
Denmark
Tel.: (+45) 4525 3157
Fax.: (+45) 4593 2399
email: Marcin.Dulak at fysik.dtu.dk
***********************************
More information about the gpaw-users
mailing list