epam / epam/Indigo

IndigoException when generating a simple InChI from SMILES

Open
#2,112 0 comments 0 reactions 0 assignees View on GitHub
User`s Feedback
Dominant language
C++
Stars
406
Forks
134
Avg merge
2d 11h
Merged PRs (30d)
24

Description

**Summary**
Can't generate inchi for some simple molecules (e.g. "CCC")

**Steps to Reproduce**
```
from indigo import inchi, Indigo
indigo = Indigo()
indigo_inchi = inchi.IndigoInchi(indigo)

m = indigo.loadMolecule("CCC")

assert indigo_inchi.getInchi(m) is not None
assert indigo_inchi.getInchiKey(m) is not None
```
**Expected behavior**
`InChI=...` (proper inchi string for "CCC")

**Actual behavior**
IndigoException is raised:
```
indigo.indigo.indigo_exception.IndigoException: core: can not access object #2: _Map_base::at
```
**Environment details:**
- epam.indigo==1.18.0
- AWS EC2 r6g (arm64)
- python 3.11.7

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by running the Python reproduction with epam.indigo 1.18.0 on the reported environment, focusing on IndigoInchi.getInchi and getInchiKey for the SMILES "CCC". Trace the failing path that raises the _Map_base::at exception; done means both calls return a valid InChI string and key without raising IndigoException.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, python
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.