biolink / biolink-model-toolkit

A collection of useful python functions for looking up information and working with the Biolink Model
https://biolink.github.io/biolink-model-toolkit/
BSD 3-Clause "New" or "Revised" License
20 stars 11 forks source link

Toolkit import error using 0.6.0 distro for BMT #41

Closed GregHydeDartmouth closed 3 years ago

GregHydeDartmouth commented 3 years ago

I'm having trouble importing the Toolkit from bmt on a fresh python environment using Python 3.8.8.

I installed with: pip install bmt

Then when I try: from bmt import Toolkit I get the following error:

Traceback (most recent call last): File "", line 1, in File "/home/ghyde/test1/testbmt/bmt_test/lib/python3.8/site-packages/bmt/init.py", line 1, in from bmt.toolkit import Toolkit File "/home/ghyde/test1/testbmt/bmt_test/lib/python3.8/site-packages/bmt/toolkit.py", line 4, in from linkml_model.meta import SchemaDefinition, Element, Definition, ClassDefinition, SlotDefinition ModuleNotFoundError: No module named 'linkml_model'

sierra-moxon commented 3 years ago

Thanks @GregHydeDartmouth - we had a change to the underlying linkml import - fixing! :)

sierra-moxon commented 3 years ago

@GregHydeDartmouth - can you please try again? - new release of BMT (0.7.0) includes a linkml upgrade.

GregHydeDartmouth commented 3 years ago

@sierra-moxon Seems to be working just fine. Thanks!!