CogStack / MedCATservice

Running MedCAT as a RESTful web service
17 stars 14 forks source link

No module named 'joblib' #25

Closed sandertan closed 1 year ago

sandertan commented 1 year ago

When starting a Docker container with current master, I'm getting a missing module error.

  File "/cat/wsgi.py", line 6, in <module>
    from medcat_service.app import create_app
  File "/cat/medcat_service/app/__init__.py", line 4, in <module>
    from .app import create_app
  File "/cat/medcat_service/app/app.py", line 12, in <module>
    from medcat_service.api import api
  File "/cat/medcat_service/api/__init__.py", line 4, in <module>
    from .api import api
  File "/cat/medcat_service/api/api.py", line 11, in <module>
    from medcat_service.nlp_service import NlpService
  File "/cat/medcat_service/nlp_service/__init__.py", line 4, in <module>
    from .nlp_service import MedCatService, NlpService
  File "/cat/medcat_service/nlp_service/nlp_service.py", line 6, in <module>
    from medcat_service.nlp_processor import MedCatProcessor
  File "/cat/medcat_service/nlp_processor/__init__.py", line 4, in <module>
    from .medcat_processor import MedCatProcessor
  File "/cat/medcat_service/nlp_processor/medcat_processor.py", line 10, in <module>
    from medcat.cat import CAT
  File "/usr/local/lib/python3.9/site-packages/medcat/cat.py", line 24, in <module>
    from medcat.pipe import Pipe
  File "/usr/local/lib/python3.9/site-packages/medcat/pipe.py", line 12, in <module>
    from medcat.linking.context_based_linker import Linker
  File "/usr/local/lib/python3.9/site-packages/medcat/linking/context_based_linker.py", line 8, in <module>
    from medcat.pipeline.pipe_runner import PipeRunner
  File "/usr/local/lib/python3.9/site-packages/medcat/pipeline/pipe_runner.py", line 3, in <module>
    from joblib import Parallel, delayed
ModuleNotFoundError: No module named 'joblib'
tomolopolis commented 1 year ago

Looks like MedCAT requires joblib but isn't a dep listed in setup.py. I'll go ahead and add now.

I'll push this as a patch version.

On Wed, 23 Nov 2022 at 13:24, Sander Tan @.***> wrote:

When starting a Docker container with current master, I'm getting a missing module error.

File "/cat/wsgi.py", line 6, in from medcat_service.app import create_app File "/cat/medcat_service/app/init.py", line 4, in from .app import create_app File "/cat/medcat_service/app/app.py", line 12, in from medcat_service.api import api File "/cat/medcat_service/api/init.py", line 4, in from .api import api File "/cat/medcat_service/api/api.py", line 11, in from medcat_service.nlp_service import NlpService File "/cat/medcat_service/nlp_service/init.py", line 4, in from .nlp_service import MedCatService, NlpService File "/cat/medcat_service/nlp_service/nlp_service.py", line 6, in from medcat_service.nlp_processor import MedCatProcessor File "/cat/medcat_service/nlp_processor/init.py", line 4, in from .medcat_processor import MedCatProcessor File "/cat/medcat_service/nlp_processor/medcat_processor.py", line 10, in from medcat.cat import CAT File "/usr/local/lib/python3.9/site-packages/medcat/cat.py", line 24, in from medcat.pipe import Pipe File "/usr/local/lib/python3.9/site-packages/medcat/pipe.py", line 12, in from medcat.linking.context_based_linker import Linker File "/usr/local/lib/python3.9/site-packages/medcat/linking/context_based_linker.py", line 8, in from medcat.pipeline.pipe_runner import PipeRunner File "/usr/local/lib/python3.9/site-packages/medcat/pipeline/pipe_runner.py", line 3, in from joblib import Parallel, delayed ModuleNotFoundError: No module named 'joblib'

— Reply to this email directly, view it on GitHub https://github.com/CogStack/MedCATservice/issues/25, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABRTZNCG63KO5KRKBCN2SWTWJYLI5ANCNFSM6AAAAAASI6ZN4E . You are receiving this because you are subscribed to this thread.Message ID: @.***>

tomolopolis commented 1 year ago

26