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

Pre-condition Violation Number of atom mismatch Violation occurred on line 564 in file Code\GraphMol\ROMol.cpp Failed Expression: conf->getNumAtoms() == this->getNumAtoms() RDKIT: 2017.09.1 BOOST: 1_56 #104

Open
ssalaniwal opened this issue Jan 5, 2022 · 2 comments

Comments

@ssalaniwal
Copy link

Hi,

When using Python Script node in Knime after the RDKit R-group Decomposition node, I am getting the following error message.

ERROR Python Script 0:54 Execute failed: Pre-condition Violation
Number of atom mismatch
Violation occurred on line 564 in file Code\GraphMol\ROMol.cpp
Failed Expression: conf->getNumAtoms() == this->getNumAtoms()
RDKIT: 2017.09.1
BOOST: 1_56

The python script only contains the following lines of code

_from rdkit import Chem
from rdkit.Chem import AllChem
import pandas as pd

mols = input_table_1['R1']
output_table_1 = input_table_1.copy()_

where R1 is generated by the RDkit R-group decomposition node.

If I feed the structures prior to R-group decomposition directly to the python script then it works just fine indicating that the Rgroup decomposition node output is likely the source of this error.

RDKIt G-Group decomp node configuration is as follows:

image

image

Knime: 4.5.0
Python: 2.7.18 installed as part of conda environment
OS: Windows 10


If you have a question about the RDKit or aren't sure if what you're seeing is the right behavior please use the Discussions tab above (https://github.com/rdkit/rdkit/discussions) instead of posting it here.

Please help us help you: We normally need the information below in order to answer questions or understand bug reports. If you do not provide the information requested we may not be able to help you and will probably close the issue.

PLEASE DELETE THIS SECTION AFTER YOU HAVE READ IT


Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior, feel free to paste a bit of Python in here.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Configuration (please complete the following information):

  • RDKit version:
  • OS: [e.g. Ubuntu 20.04]
  • Python version (if relevant):
  • Are you using conda?
  • If you are using conda, which channel did you install the rdkit from?
  • If you are not using conda: how did you install the RDKit?

Additional context
Add any other context about the problem here.

@greglandrum greglandrum transferred this issue from rdkit/rdkit Jan 5, 2022
@greglandrum
Copy link
Member

I transferred this to the knime-rdkit repo because it sounds like it's connected with the KNIME nodes.

@greglandrum
Copy link
Member

@ssalaniwal : you are using an ancient and unsupported version of the RDKit and (and Python itself, for that matter). It may be that the problem is due to that, but we'll see.

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