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 kernel_ridge_SCM_OFM.py

/home/dennis/pymatgen/pymatgen/init.py:89: UserWarning:

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

at https://www.pymatgen.org for more details.

at https://www.pymatgen.org for more details.""")

Traceback (most recent call last):

File “kernel_ridge_SCM_OFM.py”, line 11, in

from matminer.featurizers.structure import SineCoulombMatrix, OrbitalFieldMatrix

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

from pymatgen.analysis.diffraction.xrd import XRDCalculator

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

from .core import DiffractionPattern, DiffractionPatternCalculator, \

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

class DiffractionPatternCalculator(abc.ABC):

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

Any Ideas?

-Dennis

Are you using Py3?

You can see the warning about features being dropped from Py2 as well as the installation docs for matminer: https://hackingmaterials.github.io/matminer/installation.html

···

Best,
Anubhav