Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Error: invalid load key, '<'. #146

@bnmlls

Description

@bnmlls

I'm new to MedCATtrainer. When I click on a project I'm met with this error and not sure where I've gone wrong. Any help would be greatly appreciated.

Error: invalid load key, '<'.
Full Error:

Traceback (most recent call last):
File "/home/api/./api/views.py", line 256, in prepare_documents
cat = get_medcat(CDB_MAP=CDB_MAP, VOCAB_MAP=VOCAB_MAP,
File "/home/api/./api/utils.py", line 299, in get_medcat
cdb = CDB.load(cdb_path)
File "/usr/local/lib/python3.10/site-packages/medcat/cdb.py", line 477, in load
cdb = ser.deserialize(CDB)
File "/usr/local/lib/python3.10/site-packages/medcat/utils/saving/serializer.py", line 167, in deserialize
data = dill.load(f)
File "/usr/local/lib/python3.10/site-packages/dill/_dill.py", line 287, in load
return Unpickler(file, ignore=ignore, **kwds).load()
File "/usr/local/lib/python3.10/site-packages/dill/_dill.py", line 442, in load
obj = StockUnpickler.load(self)
_pickle.UnpicklingError: invalid load key, '<'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions