ImportError: The _imagingft C module is not installed

Hi,

I am trying to run the below Jupter command

jupyter notebook object_detection_tutorial.ipynb

It is giving the error: ImportError: The _imagingft C module is not installed.

I have tried installing the below,
sudo apt-get install libpng-dev
sudo apt-get install libfreetype6-dev

But still problem exists.

Below are the versions of Pytorch, Torchvision, Tensorflow and Tensorrt which i am currently with.

python3.6 -c “import torch; print(torch.version)”
Pytorch ver : 1.2.0a0+8554416

python3.6 -c “import torchvision; print(torchvision.version)”
0.4.1a0+a263704

python3.6 -c “import tensorrt; print(tensorrt.version)”
‘6.0.1.10’
+
jetbot@jetbot-desktop:~$ python3.6 -c “import tensorflow; print(tensorflow.version)”
1.13.1

Pillow version: 6.2.2

Regards,
Shankar

Hi,

https://stackoverflow.com/questions/4011705/python-the-imagingft-c-module-is-not-installed
It looks like you will need to reinstall pillow also.
Have you tried it?

Thanks.

By reinstalling pillow this problem got solved.
But I have got another error now.

Attribute Error: module ‘tensorflow._api.v1.compat’ has no attribute ‘v2’

Please let me know the solution for this.

Regards,
Shankar

Hi,

A similar issue here:
https://github.com/tensorflow/probability/issues/354

Looks like is caused by the different TensorFlow version.
Could you check the comment in above link first?

Thanks.