Module 'metapy.metapy.index' has no attribute 'IREval'


I am trying to run this tutorial

ev = metapy.index.IREval(cfg)

with python 3 and metapy installed

pip3 install metapy
Requirement already satisfied: metapy in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages

And get the error as:

Building or loading index...
Traceback (most recent call last):
  File "", line 55, in <module>
    ev = metapy.index.IREval(cfg)
AttributeError: module 'metapy.metapy.index' has no attribute 'IREval'

Can anyone help?


Uninstall and reinstall metapy fixed it…Thanks!