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

Issue with latest code while importing chembl_webresource_client.new_client - svg+xml is not an available format (['xml', 'json', 'yaml', 'svg']) #75

Closed Vanisri-Chepuri closed 4 years ago

Vanisri-Chepuri commented 4 years ago
from chembl_webresource_client.new_client import new_client

File "/home/eagle/.local/share/virtualenvs/Chemical-1eNCJlg_/lib/python3.6/site-packages/chembl_webresource_client/new_client.py", line 67, in new_client = client_from_url(Settings.Instance().NEW_CLIENTURL + '/spore') File "/home/eagle/.local/share/virtualenvs/Chemical-1eNCJlg/lib/python3.6/site-packages/chembl_webresource_client/new_client.py", line 59, in client_from_url qs.set_format(defaultformat) File "/home/eagle/.local/share/virtualenvs/Chemical-1eNCJlg/lib/python3.6/site-packages/chembl_webresource_client/query_set.py", line 253, in set_format self.query.setformat(frmt) File "/home/eagle/.local/share/virtualenvs/Chemical-1eNCJlg/lib/python3.6/site-packages/chembl_webresource_client/url_query.py", line 236, in set_format raise Exception('{0} is not an available format ({1})'.format(frmt, available_formats)) Exception: svg+xml is not an available format (['xml', 'json', 'yaml', 'svg'])

sayonidas commented 4 years ago

This issue has been fixed in this thread: https://github.com/chembl/chembl_webresource_client/issues/71

eloyfelix commented 4 years ago

Hi Vanisri,

please update to 0.10.1 version

Vanisri-Chepuri commented 4 years ago

Thank you eloyfelix, i have updated 0.10.1 version and above mentioned issue closed. But now iam getting a new issue with few Chebi IDs which is mentioned below. Please do needful.

*****HTTPSConnectionPool(host='www.ebi.ac.uk', port=443): Max retries exceeded with url: /chembl/api/data/molecule/CHEMBL3990002 (Caused by ResponseError('too many 404 error responses',))