I used the interactive “Binder” notebook, preinstalled with Materials Project software, and get the below errors when I run the sample code snippet to retrieve the data.
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Input In [5], in <module>
7 structure = mpr.get_structure_by_material_id('mp-998908')
9 # important to use the conventional structure to ensure
10 # that peaks are labelled with the conventional Miller indices
---> 11 sga = SpacegroupAnalyzer(structure)
12 conventional_structure = sga.get_conventional_standard_structure()
14 # this example shows how to obtain an XRD diffraction pattern
15 # these patterns are calculated on-the-fly from the structure
File /srv/conda/envs/notebook/lib/python3.9/site-packages/pymatgen/symmetry/analyzer.py:59, in SpacegroupAnalyzer.__init__(self, structure, symprec, angle_tolerance)
57 self._angle_tol = angle_tolerance
58 self._structure = structure
---> 59 self._siteprops = structure.site_properties
60 latt = structure.lattice.matrix
61 positions = structure.frac_coords
AttributeError: 'NoneType' object has no attribute 'site_properties'