-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chem.Kekulize(mol) error #24
Comments
Thank you SO much! I have been stuck in the error for a long time. However, I still want to know whether something different would happen in the later judgement if I changed the code. |
Hi, I think I had the same issue. The error message I've got was Nokimann's suggestion works for me as well, but it would be great if the author or others confirm it. |
Just had the same issue as @purplerainf and @Nokimann's suggestion seemed to fix the issue. Thanks! |
Fixing reported error: wengong-jin#24 rdkit.Chem.rdchem.KekulizeException: Can't kekulize mol. Unkekulized atoms: 4 5 6 7 18
rdkit version: 2021.03.3
(didn't check in other versions)
Doing
python get_vocab.py --ncpu 16 < aromatic.txt > vocab.txt
with aromatic SMILES,an error occurs because of Chem.Kekulize function.
In chemutils.py,
Before:
After: adding
clearAromaticFlags=True
Solved.
The text was updated successfully, but these errors were encountered: