chembl / chembl_webresource_client

Official Python client for accessing ChEMBL API
https://www.ebi.ac.uk/chembl/api/data/docs
Other
368 stars 95 forks source link

TypeError: 'NoneType' object cannot be interpreted as an integer #80

Closed sorenwacker closed 3 months ago

sorenwacker commented 4 years ago
from chembl_webresource_client.new_client import new_client as cwc

molecule = cwc.molecule
res = molecule.search('viagra')
res

First time this works, then is throws this error:

TypeError: 'NoneType' object cannot be interpreted as an integer

sorenwacker commented 4 years ago
target = cwc.target
target.filter(target_synonym__icontains='hERG')

TypeError: 'NoneType' object cannot be interpreted as an integer