mcs07 / PubChemPy

Python wrapper for the PubChem PUG REST API.
http://pubchempy.readthedocs.io
MIT License
379 stars 106 forks source link

Certain compounds cannot be retrieved by name anymore #81

Open gmboyer opened 8 months ago

gmboyer commented 8 months ago

At some point, certain compounds have become irretrievable by their names. For example, this compound: https://pubchem.ncbi.nlm.nih.gov/substance/318704449

When I attempt to retrieve it by name, I get an empty list:

import pubchempy as pcp
pcp.get_compounds("2,3-Bis[[(2E,6E,10E)-3,7,11,15-tetramethylhexadeca-2,6,10,14-tetraenyl]oxy]-1-propanol", "name")

The pubchempy package was previously able to retrieve this compound by name, but no longer. One of my codes used this as an example in an educational tutorial. However, sometime in the past few months it stopped working. Any idea why?

Edit: I'm running pubchempy v 1.0.4 on ubuntu.