TIGER-AI-Lab / TIGER-AI-Lab/StructEval
ModuleNotFoundError: No module named 'inference'
Open
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:
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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