TIGER-AI-Lab / TIGER-AI-Lab/StructEval

ModuleNotFoundError: No module named 'inference'

Open
#2 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
23
Forks
8
PR merge metrics
No merged PRs in 30d

Description

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

https://github.com/TIGER-AI-Lab/StructEval/blob/d15b66deb761dbcdc20e8fa50ed8d51705da7906/structeval/cli.py#L6

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open structeval/cli.py at the import on line 6 and inspect the package path for the inference entry point. Run the reported python3 -m structeval.cli inference command after the import is corrected; done means it starts without ModuleNotFoundError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.