abinit / abipy

Open-source library for analyzing the results produced by ABINIT
http://abinit.github.io/abipy
Other
117 stars 96 forks source link

Quick fix for loading the package #209

Closed fekad closed 3 years ago

fekad commented 3 years ago

Summary

The following line failed due to a missing object in the import:

from abipy import abilab, flowtk
fekad commented 3 years ago

Relevant part of the error message:

~/Work/surfascope/abipy/abipy/__init__.py in <module>
     16 #-----------------------------------------------------------------------------
     17 
---> 18 from abipy.core import release
     19 
     20 # Release data

~/Work/surfascope/abipy/abipy/core/__init__.py in <module>
      2 # flake8: noqa
      3 from .kpoints import *
----> 4 from .structure import *
      5 from .symmetries import *
      6 from .gsphere import *

~/Work/surfascope/abipy/abipy/core/structure.py in <module>
     27 from abipy.core.symmetries import AbinitSpaceGroup
     28 from abipy.iotools import as_etsfreader, Visualizer
---> 29 from abipy.flowtk.abiobjects import structure_from_abivars, structure_to_abivars, species_by_znucl
     30 
     31 

ImportError: cannot import name 'species_by_znucl' from 'abipy.flowtk.abiobjects' (/Users/fekad/Work/surfascope/abipy/abipy/flowtk/abiobjects.py)
fekad commented 3 years ago

Everything works with the latest version available in pip so closing without merging.