Closed ardunn closed 2 years ago
from matminer.featurizers.structure import DensityFeatures densityf = DensityFeatures() densityf.feature_labels() TypeError Traceback (most recent call last) in ----> 1 from matminer.featurizers.structure import DensityFeatures 2 3 densityf = DensityFeatures() 4 densityf.feature_labels() /data/miniconda/envs/matminer/lib/python3.8/site-packages/matminer/featurizers/structure.py in 32 33 from matminer.featurizers.base import BaseFeaturizer —> 34 from matminer.featurizers.site import OPSiteFingerprint, 35 CoordinationNumber, LocalPropertyDifference, CrystalNNFingerprint, 36 AverageBondAngle, AverageBondLength /data/miniconda/envs/matminer/lib/python3.8/site-packages/matminer/featurizers/site.py in 63 64 cn_motif_op_params = {} —> 65 with open(os.path.join(os.path.dirname( 66 pymatgen.analysis.file), ‘cn_opt_params.yaml’), ‘r’) as f: 67 cn_motif_op_params = yaml.safe_load(f) /data/miniconda/envs/matminer/lib/python3.8/posixpath.py in dirname(p) 150 def dirname(p): 151 “”“Returns the directory component of a pathname”"" → 152 p = os.fspath(p) 153 sep = _get_sep(p) 154 i = p.rfind(sep) + 1 TypeError: expected str, bytes or os.PathLike object, not NoneType
From https://matsci.org/t/strange-error-in-densityfeatures-import/36274
this is resolved now, was a previous problem with pymatgen
From https://matsci.org/t/strange-error-in-densityfeatures-import/36274