question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when running the process_crossdock.py

See original GitHub issue

Great work! I’m having a little trouble when I run the data processing program.

****
Invariant Violation
inconsistent state
Violation occurred on line 311 in file /home/conda/feedstock_root/build_artifacts/rdkit_1649923731950/work/Code/GraphMol/Canon.cpp
Failed Expression: ((firstFromAtom2->getBeginAtomIdx() == atom2->getIdx()) ^ (secondFromAtom2->getBeginAtomIdx() == atom2->getIdx()))
****


16957/16957 successful:  17%|█████████▎                                             | 16957/99929 [00:26<02:07, 649.32it/s]
Traceback (most recent call last):
  File "process_crossdock.py", line 378, in <module>
    train_smiles = compute_smiles(lig_coords, lig_one_hot, lig_mask)
  File "process_crossdock.py", line 126, in compute_smiles
    mol = Chem.MolToSmiles(mol)
RuntimeError: Invariant Violation
	inconsistent state
	Violation occurred on line 311 in file Code/GraphMol/Canon.cpp
	Failed Expression: ((firstFromAtom2->getBeginAtomIdx() == atom2->getIdx()) ^ (secondFromAtom2->getBeginAtomIdx() == atom2->getIdx()))
	RDKIT: 2022.03.1
	BOOST: 1_74

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:7

github_iconTop GitHub Comments

2reactions
HBioquantcommented, Oct 29, 2022

I also meet the trouble. ** Open Babel Warning in PerceiveBondOrders Failed to kekulize aromatic bonds in OBMol::PerceiveBondOrders (title is /tmp/tmp6d1d0i03)

[04:06:37]


Invariant Violation inconsistent state Violation occurred on line 306 in file /home/conda/feedstock_root/build_artifacts/rdkit_1603468918536/work/Code/GraphMol/Canon.cpp Failed Expression: ((firstFromAtom2->getBeginAtomIdx() == atom2->getIdx()) ^ (secondFromAtom2->getBeginAtomIdx() == atom2->getIdx()))


16957/16957 successful: 17%|█████▎ | 16957/99929 [00:50<04:08, 333.78it/s] Traceback (most recent call last): File “process_crossdock.py”, line 378, in <module> train_smiles = compute_smiles(lig_coords, lig_one_hot, lig_mask) File “process_crossdock.py”, line 126, in compute_smiles mol = Chem.MolToSmiles(mol) RuntimeError: Invariant Violation inconsistent state Violation occurred on line 306 in file Code/GraphMol/Canon.cpp Failed Expression: ((firstFromAtom2->getBeginAtomIdx() == atom2->getIdx()) ^ (secondFromAtom2->getBeginAtomIdx() == atom2->getIdx())) RDKIT: 2020.09.1 BOOST: 1_74

0reactions
yuanqiducommented, Dec 22, 2022

Thanks again for your patience, I have updated the code with the error-catching part.

Read more comments on GitHub >

github_iconTop Results From Across the Web

RuntimeError on windows trying python multiprocessing
In my case it was a simple bug in the code, using a variable before it was created. Worth checking that out before...
Read more >
py-spy on host unable to trace python process running in ...
From the host, I tried to trace a python process running in a docker container. It failed with the following error. # py-spy...
Read more >
Fix FileNotFoundError With Multiprocessing in Python
example of a common error when using processes. from time import sleep. from multiprocessing import set_start_method.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found