Re: Error when importing all terminologies
Posted by Mukund on
URL: http://owlready.306.s1.nabble.com/Error-when-importing-all-terminologies-tp3344p3402.html
Hello -
Was this (umls) terminology import issue ever resolved? I am trying to import UMLS 2024AA full zip file, running in to a similar error, wondering if anyone has worked around this issue?
Thank you, much appreciated!
---------------------On Python 3.10.12, Ubuntu 22 (WSL2)----------------------------------------
Full UMLS release - importing UMLS from inner Zip file 2024AA-full/2024aa-1-meta.nlm...
Parsing 2024AA/META/MRSTY.RRF.gz as MRSTY with encoding UTF-8
Parsing 2024AA/META/MRRANK.RRF.gz as MRRANK with encoding UTF-8
Parsing 2024AA/META/MRCONSO.RRF.aa.gz as MRCONSO with encoding UTF-8
Parsing 2024AA/META/MRCONSO.RRF.ab.gz as MRCONSO with encoding UTF-8
Parsing 2024AA/META/MRDEF.RRF.gz as MRDEF with encoding UTF-8
Full UMLS release - importing UMLS from inner Zip file 2024AA-full/2024aa-2-meta.nlm...
Parsing 2024AA/META/MRREL.RRF.aa.gz as MRREL with encoding UTF-8
Parsing 2024AA/META/MRREL.RRF.ab.gz as MRREL with encoding UTF-8
Parsing 2024AA/META/MRREL.RRF.ac.gz as MRREL with encoding UTF-8
Traceback (most recent call last):
File "/home/mukun/projects/umls/test/symp_cui.py", line 45, in <module>
import_umls("/mnt/c/Users/mukun/Downloads/umls-2024AA-full.zip", terminologies=["CUI", "SNOMEDCT_US", "ICD10"])
File "/home/mukun/.local/lib/python3.10/site-packages/owlready2/pymedtermino2/umls.py", line 710, in import_umls
parse_umls_zip(umls_inner_zip)
File "/home/mukun/.local/lib/python3.10/site-packages/owlready2/pymedtermino2/umls.py", line 684, in parse_umls_zip
remnants[table_name] = parser(PYM, terminologies, langs, importer,
File "/home/mukun/.local/lib/python3.10/site-packages/owlready2/pymedtermino2/umls.py", line 178, in parse_mrrel
remnant, previous = remnant_previous
TypeError: cannot unpack non-iterable NoneType object