typedb-osi / typedb-bio

TypeDB Bio: Biomedical Knowledge Graph
73 stars 30 forks source link

TypeError: 'type' object is not subscriptable #32

Closed raven44099 closed 9 months ago

raven44099 commented 9 months ago

Dear friends,

I recognized there is a big update here on TypeDB Bio!

I run into a problem when running python loader.py, it's coming from loader.semmed.pipeline.

ERROR:

Traceback (most recent call last):
  File "loader.py", line 13, in <module>
    from loader.semmed.pipeline import load_semmed
  File "/home/ubuntuds64/D_programs/typedb-bio/loader/semmed/pipeline.py", line 6, in <module>
    from loader.semmed.fetch import fetch_data
  File "/home/ubuntuds64/D_programs/typedb-bio/loader/semmed/fetch.py", line 11, in <module>
    def _fetch_metadata_from_api(pm_ids: list[str]) -> tuple[dict, int]:

Thank you for your reply.

james-whiteside commented 9 months ago

Hi, what version of Python are you running? This looks like a common issue with < 3.9 so I'd recommend upgrading to the latest version. If you are unable to, you could try one of the solutions here. Please let us know if this solves your issue.