Open Saad-Mahamood opened 3 years ago
@mnamysl: Please look into this issue.
Hi @Saad-Mahamood. Thank you for reporting this issue.
As you already noticed, the problem is caused by the mutually exclusive dependencies: trdg 1.7.0
requires numpy<1.17 and >=1.16.4
and opencv-python 4.5.2.54
requires numpy>=1.19.3
.
On the other hand, trdg 1.6.0
requires numpy>=1.17.3
but it puts a strict requirement on the Pillow package: pillow==7.0.0
.
I tested both setups using Docker with a Python3.9 base image and the current version that uses trdg 1.6.0
seems to work fine, although I had to additionally install the libjpeg
system package (apt-get install -y libjpeg-dev
).
If you experience problems with zlib
, please make sure that it is installed. Under Debian-based Linux systems, you could use:
apt-get install zlib1g-dev
and probably brew install zlib
or brew install zlib-devel
on Mac OS.
Please let me know if that helped.
The
ocr_perturbation
package requirestrdg==1.6.0
. However, under macOS 11.6 with Python 3.9 it will not install due to a dependency onpillow==7.0.0
, which generates aRequiredDependencyException: zlib
error.Installing
pillow==8.3.2
works fine but is too new fortrdg==1.6.0
.Installing
trdg==1.7.0
has a dependency conflicts withopencv-python
: