Python Materials Genomics (pymatgen) is a robust materials analysis code that defines classes for structures and molecules with support for many electronic structure codes. It powers the Materials Project.
Describe the bug
calling pmg command line interface throws exception
To Reproduce
Steps to reproduce the behavior:
Install pymatgen for system python (python 2.7)
On command line, enter "pmg -h"
Expected behavior
pmg cli displays help information.
Error Message
usr/local/lib/python2.7/site-packages/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 "/usr/local/bin/pmg", line 7, in
from pymatgen.cli.pmg import main
File "/usr/local/lib/python2.7/site-packages/pymatgen/cli/pmg.py", line 19, in
from pymatgen.cli.pmg_plot import plot
File "/usr/local/lib/python2.7/site-packages/pymatgen/cli/pmg_plot.py", line 13, in
from pymatgen.analysis.diffraction.xrd import XRDCalculator
File "/usr/local/lib/python2.7/site-packages/pymatgen/analysis/diffraction/xrd.py", line 15, in
from .core import DiffractionPattern, DiffractionPatternCalculator, \
File "/usr/local/lib/python2.7/site-packages/pymatgen/analysis/diffraction/core.py", line 50, in
class DiffractionPatternCalculator(abc.ABC):
AttributeError: 'module' object has no attribute 'ABC'
Desktop (please complete the following information):
OS: MacOS
Additional context
Add any other context about the problem here.
Describe the bug calling pmg command line interface throws exception To Reproduce Steps to reproduce the behavior:
Expected behavior pmg cli displays help information.
Error Message usr/local/lib/python2.7/site-packages/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 "/usr/local/bin/pmg", line 7, in
from pymatgen.cli.pmg import main
File "/usr/local/lib/python2.7/site-packages/pymatgen/cli/pmg.py", line 19, in
from pymatgen.cli.pmg_plot import plot
File "/usr/local/lib/python2.7/site-packages/pymatgen/cli/pmg_plot.py", line 13, in
from pymatgen.analysis.diffraction.xrd import XRDCalculator
File "/usr/local/lib/python2.7/site-packages/pymatgen/analysis/diffraction/xrd.py", line 15, in
from .core import DiffractionPattern, DiffractionPatternCalculator, \
File "/usr/local/lib/python2.7/site-packages/pymatgen/analysis/diffraction/core.py", line 50, in
class DiffractionPatternCalculator(abc.ABC):
AttributeError: 'module' object has no attribute 'ABC'
Desktop (please complete the following information):
Additional context Add any other context about the problem here.