Skip to content

Installation Failed #6

@XaiverYuan

Description

@XaiverYuan

I find this quite strange. It looks like everyone else was able to install it successfully, but for some reason, I couldn’t get it to work.

My Python version is 3.11.4, and I used a venv virtual environment (which tends to be clean and less prone to contamination).

Here’s exactly what I did:

python -m venv jbb
source jbb/bin/activate
pip install jailbreakbench

Then I opened Python and tried:

import jailbreakbench as jbb

But it threw an error:

>>> import jailbreakbench as jbb
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/oracleyuan/jbb/lib/python3.11/site-packages/jailbreakbench/__init__.py", line 4, in <module>
    from .llm.litellm import LLMLiteLLM
  File "/home/oracleyuan/jbb/lib/python3.11/site-packages/jailbreakbench/llm/litellm.py", line 2, in <module>
    from litellm.llms.prompt_templates.factory import custom_prompt
ModuleNotFoundError: No module named 'litellm.llms.prompt_templates'

Has anyone else encountered this? Could this be caused by a recent update or a missing dependency in the latest litellm?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions