PyRIT icon indicating copy to clipboard operation
PyRIT copied to clipboard

BUG requirements.txt error during dock pip install pyrit

Open EHO-makai opened this issue 1 month ago • 0 comments

Describe the bug

Docker container build fails due to conflicting dependencies between notebook==7.3.2 and jupyterlab==4.4.8. The notebook 7.3.2 package requires jupyterlab<4.4 and >=4.3.4, but pip attempts to install jupyterlab==4.4.8, causing a dependency conflict that prevents the Docker image from building successfully.

Steps/Code to Reproduce

  1. Navigate to the docker directory in the PyRIT repository
  2. Run: docker-compose up -d

The build will fail during the pip install step with a ResolutionImpossible error.

Expected Results

Docker container should build successfully and start without dependency conflicts.

Actual Results

Build fails at step 34 of the Dockerfile with exit code 1:

ERROR: Cannot install -r requirements.txt (line 3) and jupyterlab==4.4.8 because these package versions have conflicting dependencies.

The conflict is caused by: The user requested jupyterlab==4.4.8 notebook 7.3.2 depends on jupyterlab<4.4 and >=4.3.4

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

Screenshots

N/A

Versions

  • OS: Windows
  • Python version: 3.12 (in Docker container)
  • PyRIT version: Latest from PyPI (installed in Docker container)
  • Affected file: docker/requirements.txt

Proposed Fix: In docker/requirements.txt, relax the version constraints from: jupyterlab>=4.4.8 notebook==7.3.2

To: jupyterlab>=4.3.4,<4.5 notebook>=7.3.2

This allows pip to resolve compatible versions of both packages without conflicts.

EHO-makai avatar Nov 25 '25 00:11 EHO-makai