sckott / pytaxize

python port of taxize (taxonomy toolbelt) for R
https://sckott.github.io/pytaxize/
MIT License
34 stars 13 forks source link

vascan_search giving 'HTTPResponse' object is not callable #38

Closed ghoshbishakh closed 8 years ago

ghoshbishakh commented 8 years ago

`

import pytaxize pytaxize.vascan_search(q = ["Helianthus annuus"]) Traceback (most recent call last): File "", line 1, in File "/usr/lib/python3.5/site-packages/pytaxize-0.4.9900-py3.5.egg/pytaxize/tax.py", line 86, in vascan_search File "/usr/lib/python3.5/site-packages/pytaxize-0.4.9900-py3.5.egg/pytaxize/refactor.py", line 44, in raw TypeError: 'HTTPResponse' object is not callable `

ghoshbishakh commented 8 years ago

however other methods like res = pytaxize.Ids('Poa annua', db='col') res.get_colid()

are working fine

ghoshbishakh commented 8 years ago

https://github.com/sckott/pytaxize/blob/b99aa5dc7196919c4404b9873f0bb73ccd4d698b/pytaxize/refactor.py#L44

raw() is not a valid response object method i guess

sckott commented 8 years ago

hi @ghoshbishakh thanks for this report. looks like a bug, will fix

ghoshbishakh commented 8 years ago

@sckott can I work on it? I think replacing .raw with .text can be helpful?

sckott commented 8 years ago

yes, go for it!