You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fails on import of: from pyrit.models import PromptRequestPiece
with: ImportError: cannot import name 'PromptRequestPiece' from 'pyrit.models' (/root/miniconda3/envs/lhg_py310_pyrit/lib/python3.10/site-packages/pyrit/models.py)
Steps/Code to Reproduce
Getting started with PyRit, fresh conda environment setup, install of pyrit with pip today.
Looking at the How To notebook:
https://github.com/Azure/PyRIT/blob/main/doc/how_to_guide.ipynb
Fails on import of:
from pyrit.models import PromptRequestPiece
with:
ImportError: cannot import name 'PromptRequestPiece' from 'pyrit.models' (/root/miniconda3/envs/lhg_py310_pyrit/lib/python3.10/site-packages/pyrit/models.py)
Versions
OS: Ubuntu 23.04 (Windows 11, WSL 2)
Python : 3.10.14
System:
python: 3.10.14 (main, Mar 21 2024, 16:24:04) [GCC 11.2.0]
executable: /root/miniconda3/envs/lhg_py310_pyrit/bin/python
machine: Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.37
Python dependencies:
pyrit: 0.1.2
Cython: None
numpy: 1.26.4
openai: 1.23.2
pip: 23.3.1
scikit-learn: 1.4.2
scipy: 1.13.0
setuptools: 68.0.0
tensorflow: None
torch: 2.1.2
transformers: 4.40.0
The text was updated successfully, but these errors were encountered: