Skip to content

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

@ssalaniwal

Description

@ssalaniwal

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions