Skip to content

ModuleNotFoundError: No module named 'inference' #2

@rodrigo-f-nogueira

Description

@rodrigo-f-nogueira

Perhaps I'm doing something wrong, but it seems that this line:

from inference import run_inference

is missing a structeval., like this:

 from structeval.inference import run_inference

Currently, when I do:

    python3 -m structeval.cli inference \
        --llm_model_name gpt-4.1-mini \
        --llm_engine "openai" \
        --input_path dataset/StructEval_dataset.json \
        --output_path "inference.json"

I get this error:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/root/StructEvalOrig/StructEval/structeval/cli.py", line 6, in <module>
    from inference import run_inference
ModuleNotFoundError: No module named 'inference'

Of course, I followed the installation instructions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions