Repository: UKGovernmentBEIS/inspect_ai
Issue: Facing an error with the latest version of inspect - 0.3.18
Root cause: External Dependency Breakage

This error occurs when we run inspect with the latest version 0.3.18 but when we downgrade it to 0.3.14, it works fine.


```
Traceback (most recent call last):
  File "/Users/karthikkalyanaraman/work/langtrace/langtrace-testing/pyenv/bin/inspect", line 8, in <module>
    sys.exit(main())
  File "/Users/karthikkalyanaraman/work/langtrace/langtrace-testing/pyenv/lib/python3.10/site-packages/inspect_ai/_cli/main.py", line 53, in main
    inspect(auto_envvar_prefix="INSPECT")
  File "/Users/karthikkalyanaraman/work/langtrace/langtrace-testing/pyenv/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/Users/karthikkalyanaraman/work/langtrace/langtrace-testing/pyenv/lib/python3.10/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/Users/karthikkalyanaraman/work/langtrace/langtrace-testing/pyenv/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/karthikkalyanaraman/work/langtrace/langtrace-testing/pyenv/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/karthikkalyanaraman/work/langtrace/langtrace-testing/pyenv/lib/python3.10/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/Users/karthikkalyanaraman/work/langtrace/langtrace-testing/pyenv/lib/python3.10/site-packages/inspect_ai/_cli/common.py", line 30, in wrapper
    return cast(click.Context, func(*args, **kwargs))
  File "/Users/karthikkalyanaraman/work/langtrace/langtrace-testing/pyenv/lib/python3.10/site-packages/inspect_ai/_cli/common.py", line 55, in wrapper
    return cast(click.Context, func(*args, **kwargs))
  File "/Users/karthikkalyanaraman/work/langtrace/langtrace-testing/pyenv/lib/python3.10/site-packages/inspect_ai/_cli/eval.py", line 246, in eval_command
    eval(
  File "/Users/karthikkalyanaraman/work/langtrace/langtrace-testing/pyenv/lib/python3.10/site-packages/inspect_ai/_eval/eval.py", line 109, in eval
    return asyncio.run(
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
    return future.result()
  File "/Users/karthikkalyanaraman/work/langtrace/langtrace-testing/pyenv/lib/python3.10/site-packages/inspect_ai/_eval/eval.py", line 229, in eval_async
    resolved_tasks.extend(resolve_tasks(tasks, task_args, m, toolenv))
  File "/Users/karthikkalyanaraman/work/langtrace/langtrace-testing/pyenv/lib/python3.10/site-packages/inspect_ai/_eval/loader.py", line 120, in resolve_tasks
    load_tasks(cast(list[str] | None, tasks), model, task_args)
  File "/Users/karthikkalyanaraman/work/langtrace/langtrace-testing/pyenv/lib/python3.10/site-packages/inspect_ai/_eval/loader.py", line 131, in load_tasks
    return [
  File "/Users/karthikkalyanaraman/work/langtrace/langtrace-testing/pyenv/lib/python3.10/site-packages/inspect_ai/_eval/loader.py", line 134, in <listcomp>
    for spec in load_task_spec(task_spec, model_name, task_args)
  File "/Users/karthikkalyanaraman/work/langtrace/langtrace-testing/pyenv/lib/python3.10/site-packages/inspect_ai/_eval/loader.py", line 147, in load_task_spec
    return create_tasks([task_spec], model, task_args)
  File "/Users/karthikkalyanaraman/work/langtrace/langtrace-testing/pyenv/lib/python3.10/site-packages/inspect_ai/_eval/loader.py", line 179, in create_tasks
    tasks.extend(create_file_tasks(file, model, None, task_args))
  File "/Users/karthikkalyanaraman/work/langtrace/langtrace-testing/pyenv/lib/python3.10/site-packages/inspect_ai/_eval/loader.py", line 209, in create_file_tasks
    task = task_create(task_spec, model, **task_args)
  File "/Users/karthikkalyanaraman/work/langtrace/langtrace-testing/pyenv/lib/python3.10/site-packages/inspect_ai/_eval/registry.py", line 84, in task_create
    return cast(Task, registry_create("task", name, **task_args))
  File "/Users/karthikkalyanaraman/work/langtrace/langtrace-testing/pyenv/lib/python3.10/site-packages/inspect_ai/_util/registry.py", line 157, in registry_create
    return with_registry_info(obj(**kwargs))
  File "/Users/karthikkalyanaraman/work/langtrace/langtrace-testing/pyenv/lib/python3.10/site-packages/inspect_ai/_eval/registry.py", line 111, in wrapper
    task = task_type(*w_args, **w_kwargs)
  File "/Users/karthikkalyanaraman/work/langtrace/langtrace-testing/src/basic.py", line 11, in basic_eval
    plan=[chain_of_thought(), self_critique()],
  File "/Users/karthikkalyanaraman/work/langtrace/langtrace-testing/pyenv/lib/python3.10/site-packages/inspect_ai/solver/_solver.py", line 178, in solver_wrapper
    solver = solver_type(*args, **kwargs)
  File "/Users/karthikkalyanaraman/work/langtrace/langtrace-testing/pyenv/lib/python3.10/site-packages/inspect_ai/solver/_critique.py", line 44, in self_critique
    model = get_model(model)
  File "/Users/karthikkalyanaraman/work/langtrace/langtrace-testing/pyenv/lib/python3.10/site-packages/inspect_ai/model/_model.py", line 460, in get_model
    raise ValueError("No model specified (and no INSPECT_EVAL_MODEL defined)")
ValueError: No model specified (and no INSPECT_EVAL_MODEL defined)
```

I think we may have resolved this in v03.19 (not yet on PyPI). Could you try installing the development version as follows:

```bash
pip install git+https://github.com/ukgovernmentbeis/inspect_ai
```

I had the same error! I could resolve it by installing the package develop mode. (similar with jjallaire's suggestion)
```
pip install -e ".[dev]"
```

This has now been published to PyPI so closing.

thank you