Pyrit: I am not able to run Pyrit code(Automation framework by Microsoft)

Copper Contributor

I was not able to run Pyrit code that is mentioned in Microsoft documentation.
Error:
PYRIT\PyRIT\doc\demo\1_gandalf.py", line 51, in <module>
from pyrit.chat import AzureOpenAIChat
ModuleNotFoundError: No module named 'pyrit'

I did nothing, just clone the repo mentioned in doc, and try o run, and I got the above error.

Could you please help?


"https://www.microsoft.com/en-us/security/blog/2024/02/22/announcing-microsofts-open-automation-frame...

1 Reply
When I inspect, I found that, the issue is AzureOpenAiChat is not installed while we install Pyrit.
Could anyone please help to sort that?