Closed sz3029 closed 8 months ago
Thanks for the report! It's a bit difficult to tell at this point if it's a bug, an environmental issue, or a problem with a corrupt image. I've just pushed an update that should gracefully handle this error and skip culprit images.
Try pulling the latest update on the master
branch and see if this helps. If the problem is a corrupt image, you should see only a single error message and the rest of the report should generate successfully, If you see hundreds of error messages and the PDF report is empty, it could be an environmental error due to mismatched package versions or a bug.
We have environments using Pillow 10.01, so I don't suspect that package is the problem.
Hi James, apologize for the delay and thank you for the quick fix. I pulled the update and tried to use pip install dist/slideflow* cupy-cuda11x
from source, but I got a conflict message:
Processing ./dist/slideflow-2.1.1+1.gc74c2314-py3-none-any.whl
Processing ./dist/slideflow-2.1.1+1.gc74c231-py3-none-any.whl
Processing ./dist/slideflow-2.1.1+9.ga105e2cb.dirty-py3-none-any.whl
ERROR: Cannot install slideflow 2.1.1+1.gc74c231 (from /user/slideflow/dist/slideflow-2.1.1+1.gc74c231-py3-none-any.whl) and slideflow 2.1.1+1.gc74c2314 (from /user/slideflow/dist/slideflow-2.1.1+1.gc74c2314-py3-none-any.whl) because these package versions have conflicting dependencies.
The conflict is caused by:
The user requested slideflow 2.1.1+1.gc74c2314 (from /user/slideflow/dist/slideflow-2.1.1+1.gc74c2314-py3-none-any.whl)
The user requested slideflow 2.1.1+1.gc74c231 (from /user/slideflow/dist/slideflow-2.1.1+1.gc74c231-py3-none-any.whl)
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict
There seems to be two versions. My current version of slideflow is 2.1.1+9.ga105e2cb.dirty
and I'm using cuCIM and pytorch backend. I'm wondering which one of the versions should I choose for the update? Thank you!
In this case, specifying the --upgrade
flag should work:
pip install --upgrade dist/slideflow*
Thank you! I'm able to resolve this using the current update.
Description
I'm unable to get the PDF report for my tile extraction due to an image identification error. I'm not sure if that's related with the version of my Pillow package (10.0.1) or Slideflow. Any suggestion would be great, thank you very much
To Reproduce
I used the following code
I also tried to generate the report directly when I extracted the tiles, with
But the method
tfrecord_report
orextract_tiles
produces the following error:Environment: