[ase-users] test fail
Gaël Donval
G.Donval at bath.ac.uk
Fri May 19 21:10:54 CEST 2017
> Hello,
>
> I had ASE working 1.5 months ago and then I ran ase.test file again
> and got
> the following error messages. (see below). Can anyone help?
>
> Panus-MacBook-Air:site-packages Panu$ python -m ase.test
>
> Traceback (most recent call last):
>
> File
> "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions
> /2.7/lib/python2.7/runpy.py",
> line 163, in _run_module_as_main
>
> mod_name, _Error)
>
> File
> "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions
> /2.7/lib/python2.7/runpy.py",
> line 102, in _get_module_details
>
> loader = get_loader(mod_name)
>
> File
> "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions
> /2.7/lib/python2.7/pkgutil.py",
> line 464, in get_loader
>
> return find_loader(fullname)
>
> File
> "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions
> /2.7/lib/python2.7/pkgutil.py",
> line 474, in find_loader
>
> for importer in iter_importers(fullname):
>
> File
> "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions
> /2.7/lib/python2.7/pkgutil.py",
> line 430, in iter_importers
>
> __import__(pkg)
>
> File "ase/__init__.py", line 8, in <module>
>
> import numpy as np
>
> File "numpy/__init__.py", line 142, in <module>
>
> from . import add_newdocs
>
> File "numpy/add_newdocs.py", line 13, in <module>
>
> from numpy.lib import add_newdoc
>
> File "numpy/lib/__init__.py", line 8, in <module>
>
> from .type_check import *
>
> File "numpy/lib/type_check.py", line 11, in <module>
>
> import numpy.core.numeric as _nx
>
> File "numpy/core/__init__.py", line 36, in <module>
>
> from . import numeric
>
> File "numpy/core/numeric.py", line 3, in <module>
>
> import collections
>
> File
> "/Users/Panu/.local/lib/python2.7/site-
> packages/ase/collections/__init__.py",
> line 1, in <module>
>
> from ase.collections.collection import Collection
>
> File "ase/collections/__init__.py", line 1, in <module>
>
> from ase.collections.collection import Collection
>
> File "ase/collections/collection.py", line 3, in <module>
>
> from ase.db.row import AtomsRow
>
> File "ase/db/__init__.py", line 1, in <module>
>
> from ase.db.core import connect
>
> File "ase/db/core.py", line 8, in <module>
>
> from ase.atoms import Atoms, symbols2numbers
>
> File "ase/atoms.py", line 18, in <module>
>
> from ase.atom import Atom
>
> File "ase/atom.py", line 5, in <module>
>
> from ase.data import atomic_numbers, chemical_symbols,
> atomic_masses
>
> File "ase/data/__init__.py", line 3, in <module>
>
> from ase.data.vdw import vdw_radii
>
> File "ase/data/vdw.py", line 30, in <module>
>
> vdw_radii = np.array([
>
> AttributeError: 'module' object has no attribute 'array'
The import in ase/data/vdw.py is straight-forward, so I guess the
problem lies with numpy.
Could you open a terminal and type:
$ python2
>>> import numpy as np
>>> np.array([])
If that fails, you have a problem with numpy (which may be solved by
reinstalling it).
Gaël
>
>
> Thanks,
>
> Panu
> _______________________________________________
> ase-users mailing list
> ase-users at listserv.fysik.dtu.dk
> https://listserv.fysik.dtu.dk/mailman/listinfo/ase-users
More information about the ase-users
mailing list