'NotImplementedError' with PyMedTermino2

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

'NotImplementedError' with PyMedTermino2

Nobu
Hi, I get the following error when I follow the tutorial of PyMedTermino2 on readthedocs:

>>> concept.descendant_concepts()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/elias/.local/lib/python3.6/site-packages/owlready2/util.py", line 144, in __repr__
    self.populate()
  File "/home/elias/.local/lib/python3.6/site-packages/owlready2/util.py", line 140, in populate
    list.__init__(self, self._get_content())
  File "/home/elias/.local/lib/python3.6/site-packages/owlready2/util.py", line 137, in _get_content
    def _get_content(self): raise NotImplementedError
NotImplementedError

Whereas the other methods works (label, parents, children, ancestor_concepts()).

I tried with different concepts ("Entire heart", "Asthma" and "Alzheimer's disease") but I always get this error message.

By the way I'm under Python 3.6.8 and I've installed umls-2020AA-metathesaurus.zip file.

Thanks by advance.
Reply | Threaded
Open this post in threaded view
|

Re: 'NotImplementedError' with PyMedTermino2

Jiba
Administrator
Hi,

I think this problem is fixed in the development version on Bitbucket since a few weeks.
Could you try it please?

Jiba