Skip to content

smiles attribute is empty #138

@fjaskolski-dot

Description

@fjaskolski-dot

Using pubchempy 1.0.4 (updated) with Spyder 6 (also updated), I can't get 'smiles' form a get_compound request...
See exemple below :

import pubchempy as pcp

for compound in pcp.get_compounds("glucose", 'name'):
print(compound.cid)
print(compound.smiles)

5793

AttributeError Traceback (most recent call last)
Cell In[53], line 3
1 for compound in pcp.get_compounds("glucose", 'name'):
2 print(compound.cid)
----> 3 print(compound.smiles)

AttributeError: 'Compound' object has no attribute 'smiles'

Any other with such an issue ?
Many thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions