Problems with Pymatgen

Hello *,

I’m trying to run the example KRR script via the ‘matminer_example’ repo with no luck. The problem seems to be related to Pymatgen:

$ python

/home/dennis/pymatgen/pymatgen/ UserWarning:

Pymatgen will drop Py2k support from v2019.1.1. Pls consult the documentation

at for more details.

at for more details.""")

Traceback (most recent call last):

File “”, line 11, in

from matminer.featurizers.structure import SineCoulombMatrix, OrbitalFieldMatrix

File “/usr/local/lib/python2.7/dist-packages/matminer/featurizers/”, line 17, in

from pymatgen.analysis.diffraction.xrd import XRDCalculator

File “/home/dennis/pymatgen/pymatgen/analysis/diffraction/”, line 15, in

from .core import DiffractionPattern, DiffractionPatternCalculator, \

File “/home/dennis/pymatgen/pymatgen/analysis/diffraction/”, line 50, in

class DiffractionPatternCalculator(abc.ABC):

AttributeError: ‘module’ object has no attribute ‘ABC’

Any Ideas?


Are you using Py3?

You can see the warning about features being dropped from Py2 as well as the installation docs for matminer: