Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG How To notebook fails on import PromptRequestPiece #164

Closed
corticalstack opened this issue Apr 23, 2024 · 1 comment
Closed

BUG How To notebook fails on import PromptRequestPiece #164

corticalstack opened this issue Apr 23, 2024 · 1 comment

Comments

@corticalstack
Copy link

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

@corticalstack corticalstack changed the title How To notebook fails on import PromptRequestPiece BUG How To notebook fails on import PromptRequestPiece Apr 23, 2024
@romanlutz
Copy link
Contributor

This is new code that was introduced in main but isn't released yet. Same explanation as in #165 (comment)

If you want to use the latest development version please follow instructions in the contributor guide (doc/contribute.md)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants