Skip to content

Segmentation Fault with basic commands #100

@bkmi

Description

@bkmi
mol2 = Chem.MolFromSmiles("O")
atoms2 = rdkit2ase(mol2)
atoms = smiles2atoms("O")

These commands yield a Segmentation Fault (core dumped) in 0.2.2 installed from pip with Python 3.11.13

specifically this line

atoms = ase.Atoms(
    positions=mol.GetConformer().GetPositions(),
    numbers=[atom.GetAtomicNum() for atom in mol.GetAtoms()],
)

with rdkit==2025.9.1

even more specifically

mol.GetConformer().GetPositions()

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