crawl4ai icon indicating copy to clipboard operation
crawl4ai copied to clipboard

[Bug]: Update current PIL Version to enable use with smolagents

Open havspect opened this issue 11 months ago • 6 comments

crawl4ai version

0.4.248

Expected Behavior

Currently, somlagents and crawl4ai cannot be used together due to a version conflict. Crawl4ai has a hard dependency on a specific version of Pillow, which appears to be unnecessary. This limitation prevents the use of somlagents with crawl4ai.

Current Behavior

Change pillow version to >=10.4.

I can do it myself and create the PR, but the tests (i.e., test_web_crawler.py) seem to be broken. If you tell me how to fix it, I can make a small documentation for the tests and resolve the issue.

Is this reproducible?

Yes

Inputs Causing the Bug


Steps to Reproduce

1. Install smolagents and crawl4ai in the same envrionment

Code snippets

pillow>=10.4 -> requirements.txt and pyprojects.toml

OS

every platform

Python version

3.12

Browser

No response

Browser version

No response

Error logs & Screenshots (if applicable)

No response

havspect avatar Feb 17 '25 19:02 havspect

Please this would be an important one

dnascimento avatar Mar 17 '25 09:03 dnascimento

@dnascimento We'll check for compatibility and upgrade soon!

aravindkarnam avatar Mar 17 '25 13:03 aravindkarnam

@aravindkarnam any updates on this? Thank you so much mate

dnascimento avatar May 02 '25 09:05 dnascimento

@dnascimento Sorry about the delay. Yes we will update this in next release.

aravindkarnam avatar May 07 '25 04:05 aravindkarnam

I've updated the version and done some basic tests. It's already on 2025-APR-1 branch. cc @aravindkarnam

ntohidi avatar May 08 '25 09:05 ntohidi

Maybe we should rebuild it by ourself ?

yang-collect avatar May 14 '25 10:05 yang-collect

@yang-collect @dnascimento @havspect Pillow version updated in v0.7!

aravindkarnam avatar Jul 13 '25 13:07 aravindkarnam