Open nghiencuuthuoc opened 3 years ago
I am afraid that you have to downgrade the version of RDKit. Because in the previous version, I always use Chem but not Allchem module to invoke MolFromSmiles().
I am afraid that you have to downgrade the version of RDKit. Because in the previous version, I always use Chem but not Allchem module to invoke MolFromSmiles().
but it appears the same error, my rdkit version is 2020.03.
hahahah, MolFromSmiles() spelled wrong in the enrivon.py
PyCharm did no remind me of this error. I have changed in the "environ.py". Thank you very much!
With rdkit 2021.03.4 Error in file environ.py,
--> 387 test_x = utils.Predictor.calc_fp([Chem.MolFromSimles(mol) for mol in test.index]) 388 data_x = utils.Predictor.calcfp([Chem.MolFromSimles(mol) for mol in data.index]) 389 out = 'output/single/%s%s_%s' % (alg, 'REG' if reg else 'CLS', feat)
AttributeError: module 'rdkit.Chem' has no attribute 'MolFromSimles'
Change code "Chem.MolFromSimles" to "AllChem.MolFromSmiles"