I’ve installed pymatgen in a fresh docker. I can run a jupyter notebook in that docker. Most of pymatgen works, but there are some weird problems that some parts of pymatgen are not visible, or can’t be imported. The notebook ran for the student that created in, so it must by some sort of python-related thing.
This doesn’t work:
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-20-2965e9c89935> in <module>
1 from ase.db import connect # api for connecting to the atoms database
2 import pymatgen.analysis.phase_diagram as PD
----> 3 from pymatgen import Element
4 #
ImportError: cannot import name 'Element' from 'pymatgen' (unknown location)
but this does:
import pymatgen
pymatgen.core.Element(....
And this function does not seem to exist, but worked for my student:
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-13-46de504dce8b> in <module>
----> 1 stables = pd.get_stable_entries_normed()
2
3 for struct in stables:
4 print(struct.attribute)
AttributeError: 'PhaseDiagram' object has no attribute 'get_stable_entries_normed'