Error when running the process_crossdock.py
See original GitHub issueGreat 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:
- Created a year ago
- Comments:7
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
Thanks again for your patience, I have updated the code with the error-catching part.