← All tasks
pythonjoke2k/faker #2441Not a task: already works

add Pillow as an optional dependency

envgap__joke2k__faker-2441

01 / FAILURE SIGNATURE

As reported upstream

No identifying execution failure has been captured.
Not a benchmark task.
  • The project already builds and runs before the fix, so there is nothing to repair.

02 / ENVIRONMENT RECIPE

Base commit
4eced9f3bbc334a4204f7f46cab64b2ceb8d45aa
Manifest
setup.py
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

joke2k/faker #2441 · read the original issue
The image provider imports Pillow inside the image operation and converts a missing import into an explicit UnsupportedFeature result ([faker/providers/misc/__init__.py:504-509](https://github.com/joke2k/faker/blob/4eced9f3bbc334a4204f7f46cab64b2ceb8d45aa/faker/providers/misc/__init__.py#L504-L509)).The test suite also explicitly checks this fallback behavior when Pillow is not installed ([tests/providers/test_misc.py:396-400](https://github.com/joke2k/faker/blob/4eced9f3bbc334a4204f7f46cab64b2ceb8d45aa/tests/providers/test_misc.py#L396-L400)).

Given this design,  should Pillow be formally added to extras_require section? For example: pip install faker[image]. This matches the current lazy-import pattern and helps users avoid runtime surprises.
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]