Skip to content

get_result_from_job_id AssertionError while initializing redeployed LS/ML NER backend #117

Closed
@wojnarabc

Description

@wojnarabc

I am trying to deploy NER example model trained on my local machine along with the Label Studio project to another machine. I've gone through following steps:

  1. Recreated Label Studio and ML Backend environments similarly as on a target machine
  2. Copied folder with the model itself (folder named with just integers) to target machine ML Backend folder.
  3. Extracted content (data, annotations and predictions) of the project through Label Studio API into json format (using ...export?exportType=JSON&download_all_tasks=true command)
  4. Imported project json file into the newly created Label Studio project.
    When trying to initialize and pair LS and ML Backend on a new machine, i am getting :
    [2022-05-30 10:18:56,133] [ERROR] [label_studio_ml.model::get_result_from_last_job::128] 1647350146 job returns exception: Traceback (most recent call last): File "/Users/user/Projects/label-studio-ml-backend/label_studio_ml/model.py", line 126, in get_result_from_last_job result = self.get_result_from_job_id(job_id) File "/Users/user/Projects/label-studio-ml-backend/label_studio_ml/model.py", line 108, in get_result_from_job_id assert isinstance(result, dict) AssertionError
    and it keeps repeating for each job

Should any additional steps be performed during deploy of the project/model to other environments ?

I've tried with following LS versions (1.1.1 - my initial one, 1.4.1post1 - most recent one) and the most current code base of ML backend. Using Python 3.8 and MacOS for both source and target environments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions