Bug report #13192
Error when saving Matplotlib figure
|Affected QGIS version:||2.10.0||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||up/downstream|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||21253|
I opened #13191 because I think it is a QGIS issue (or Matplotlib).
The plugin uses the Matplotlib framework for plotting, therefore I'd exclude that it is a plugin issue.
In QGIS 64bit, saving a plot to png format in the Semi-Automatic Classification Plugin causes the crash of QGIS 64bit. It works in Linux.
In QGIS 32bit, saving a plot to jpg format gives the error "The _imaging C module is not installed".
I think it is related to Matplotlib dependencies.
Attached the minidump.
#2 Updated by Admire Nyakudya about 6 years ago
- File error.png added
When running a python script in processing that involves matplotlib.pyplot in windows 2.8 LTS saving a plot as png causes a mini dump error. However running the same processing script in linux results in no error. But saving the plot as jpg in windows does not result in error.
#5 Updated by Jean Hemmi over 5 years ago
I was following this issue since two users of my plugin (PhysiocapAnalyseur) have experimented the same error "The _imaging C module is not installed" when writing a png with matplotlib .
I have reproduced this error directly on an old eeepc 32 bit with a fresh install of QGIS 2.12.2 (
in the Console Python:
from PIL import _imaging
finish with "DLL load failed" on Windows 32 bits where
It's OK on linux & Windows 64 bits where
I've create a ticket on OSGEO bug tracker #481