Skip to content
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

RDkit error #3

Closed
hwidong-na opened this issue May 28, 2021 · 2 comments
Closed

RDkit error #3

hwidong-na opened this issue May 28, 2021 · 2 comments

Comments

@hwidong-na
Copy link

Hi,

Thanks for sharing your work.

I got this error after fixing issue #2.

  File "/home/leona/anaconda3/envs/chemprop/lib/python3.8/multiprocessing/pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
  File "/home/leona/anaconda3/envs/chemprop/lib/python3.8/multiprocessing/pool.py", line 48, in mapstar
    return list(map(*args))
  File "/home/leona/anaconda3/envs/chemprop/lib/python3.8/site-packages/molevol-0.0.1-py3.8.egg/MolEvol/local_search/local_searcher_explain.py", line 114, in local_for_one_molecule
    subgraph_smiles = extract_selected_subgraph_for_gcn(smiles, selected_atoms)
  File "/home/leona/anaconda3/envs/chemprop/lib/python3.8/site-packages/molevol-0.0.1-py3.8.egg/MolEvol/common/fingerprint.py", line 163, in extract_selected_subgraph_for_gcn
    minimum_smiles, _ = extract_subgraph(smiles, selected_atoms)
  File "/home/leona/github.sec.samsung.net/multiobj-rationale/multiobj_rationale/fuseprop/chemutils.py", line 259, in extract_subgraph
    subgraph = Chem.MolToSmiles(subgraph, kekuleSmiles=True)
rdkit.Chem.rdchem.AtomKekulizeException: Aromatic bonds on non aromatic atom 10

I think this is related to the rdkit version. Which version did you used?

Bests regards,
Hwidong

@binghong-ml
Copy link
Owner

We used Rdkit 2020.03.4. Will upload a Conda env requirement soon. Thanks!

@hwidong-na
Copy link
Author

Thanks for your prompt reply! The error doesn't appear with rdkit version you mentioned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants