materialsproject / pymatgen

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.
https://pymatgen.org
Other
1.53k stars 868 forks source link

calling pmg command line interface throws exception when using Python 2.7 #1533

Closed jdagdelen closed 5 years ago

jdagdelen commented 5 years ago

Describe the bug calling pmg command line interface throws exception To Reproduce Steps to reproduce the behavior:

  1. Install pymatgen for system python (python 2.7)
  2. 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):

Additional context Add any other context about the problem here.

jdagdelen commented 5 years ago

Pymatgen no longer supports Python 2.X.