-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ot_ws_wrapper NoneType #137
Comments
I'm having trouble re-creating this bug. It seems like it may be due to the version of the python-opentree dependency. Could you paste the output of |
I realized I run this one on an older commit - rerunning it on one from last weekend. Nevertheless, this is my pip freeze output (for the virtualenv I created and setup physcraper a couple of weeks ago): alabaster==0.7.12 Editable install with no version control (Physcraper==0.1)-e /root/physcraper_27072020/physcraper-main |
Thanks! Let me know how it goes on the newer commit. The python-opentree version looks fine, which is what I had guessed might be the issue. |
command:
physcraper_run.py -s ot_350 -t Tr53297 -tb -db PATH_TO_LOCAL -as "nexus" -o ot_350
File "/root/physcraper_27072020/venv3/bin/physcraper_run.py", line 7, in
exec(compile(f.read(), file, 'exec'))
File "/root/physcraper_27072020/physcraper-main/bin/physcraper_run.py", line 220, in
scraper.calculate_final_tree(boot_reps = boot_reps)
File "/root/physcraper_27072020/physcraper-main/physcraper/scrape.py", line 1218, in calculate_final_tree
self.replace_tre(sumtreepath, schema="nexus")
File "/root/physcraper_27072020/physcraper-main/physcraper/scrape.py", line 959, in replace_tre
rooted_tre = root_tree_from_synth(newtre, self.data.otu_dict)
File "/root/physcraper_27072020/physcraper-main/physcraper/opentree_helpers.py", line 54, in root_tree_from_synth
tax_mrca = OT.taxon_mrca(spp).response_dict['mrca']['ott_id']
File "/root/physcraper_27072020/venv3/src/opentree/opentree/ot_object.py", line 263, in taxon_mrca
call_record = self.ws.taxonomy_mrca(ott_ids=ott_ids)
File "/root/physcraper_27072020/venv3/src/opentree/opentree/ot_ws_wrapper.py", line 79, in taxonomy_mrca
d = {"ott_ids": [int(i) for i in ott_ids]}
File "/root/physcraper_27072020/venv3/src/opentree/opentree/ot_ws_wrapper.py", line 79, in
d = {"ott_ids": [int(i) for i in ott_ids]}
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
The text was updated successfully, but these errors were encountered: