Skip to content

ot_ws_wrapper NoneType #137

Description

@mkandziora

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'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions