[osgeo4w] #481: The _imaging C module is not installed on QGIS 2.12.x Windows 32 bits

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|

[osgeo4w] #481: The _imaging C module is not installed on QGIS 2.12.x Windows 32 bits

OSGeo4W
#481: The _imaging C module is not installed on QGIS 2.12.x Windows 32 bits
-------------------+--------------------------------------
Reporter:  jhemmi  |      Owner:  osgeo4w-dev@…
    Type:  defect  |     Status:  new
Priority:  minor   |  Component:  Installer
 Version:          |   Keywords:  QGIS Matplotlib _imaging
-------------------+--------------------------------------
 I was following the QGIS issu #13192
 since two users of my plugin (PhysiocapAnalyseur) have experimented the
 error "The _imaging C module is not installed" when writing a tiff with
 Matplotlib.

 It seems to be an installation problem on Windows 32 bits only.

 I have reproduced the context problem on an old eeepc 32 bit with a fresh
 install of QGIS 2.12.2 ( QGIS-OSGeo4W-2.12.2-1-Setup-x86.exe )
 in the Console Python:
 > import PIL

 > from PIL import _imaging

 finish with "DLL load failed" on Windows 32 bits where
 > matplotlib.__version__
 '1.2.1'
 > PIL.Image.VERSION
 '1.1.7'


 It's OK on Linux or Windows 64 bits where
 >>> matplotlib.__version__
 '1.3.1'
 >>> PIL.VERSION
 '1.1.7'

--
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/481>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.
_______________________________________________
osgeo4w-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/osgeo4w-dev
Reply | Threaded
Open this post in threaded view
|

Re: [osgeo4w] #481: The _imaging C module is not installed on QGIS 2.12.x Windows 32 bits

OSGeo4W
#481: The _imaging C module is not installed on QGIS 2.12.x Windows 32 bits
-------------------------------------+----------------------------
Reporter:  jhemmi                    |       Owner:  osgeo4w-dev@…
    Type:  defect                    |      Status:  new
Priority:  minor                     |   Component:  Installer
 Version:                            |  Resolution:
Keywords:  QGIS Matplotlib _imaging  |
-------------------------------------+----------------------------

Comment (by jhemmi):

 No news about this problem.
 I checked others issues that can be related : 326, 451 which are open too.

 Is 32 bits prohibited for osgeo ?

--
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/481#comment:1>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.
_______________________________________________
osgeo4w-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/osgeo4w-dev
Reply | Threaded
Open this post in threaded view
|

Re: [osgeo4w] #481: The _imaging C module is not installed on QGIS 2.12.x Windows 32 bits

OSGeo4W
In reply to this post by OSGeo4W
#481: The _imaging C module is not installed on QGIS 2.12.x Windows 32 bits
-------------------------------------+----------------------------
Reporter:  jhemmi                    |       Owner:  osgeo4w-dev@…
    Type:  defect                    |      Status:  new
Priority:  minor                     |   Component:  Installer
 Version:                            |  Resolution:
Keywords:  QGIS Matplotlib _imaging  |
-------------------------------------+----------------------------

Comment (by jef):

 Does it work if you upgrade matplotlib via pip?

--
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/481#comment:2>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.
_______________________________________________
osgeo4w-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/osgeo4w-dev
Reply | Threaded
Open this post in threaded view
|

Re: [osgeo4w] #481: The _imaging C module is not installed on QGIS 2.12.x Windows 32 bits

OSGeo4W
In reply to this post by OSGeo4W
#481: The _imaging C module is not installed on QGIS 2.12.x Windows 32 bits
-------------------------------------+----------------------------
Reporter:  jhemmi                    |       Owner:  osgeo4w-dev@…
    Type:  defect                    |      Status:  new
Priority:  minor                     |   Component:  Installer
 Version:                            |  Resolution:
Keywords:  QGIS Matplotlib _imaging  |
-------------------------------------+----------------------------

Comment (by jakosek):

 Problem is bit old now, but still persist. I use only PIL modules (without
 matplotlib) and meet same behavior, problems with import "The _imaging C
 module is not installed".
 Solution is to install Pillow instead old PIL. Nice to have Pillow
 included in new installers (also - only Pillow exist for Python > 3).

--
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/481#comment:3>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.

_______________________________________________
osgeo4w-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/osgeo4w-dev
Reply | Threaded
Open this post in threaded view
|

Re: [osgeo4w] #481: The _imaging C module is not installed on QGIS 2.12.x Windows 32 bits

OSGeo4W
In reply to this post by OSGeo4W
#481: The _imaging C module is not installed on QGIS 2.12.x Windows 32 bits
-------------------------------------+----------------------------
Reporter:  jhemmi                    |       Owner:  osgeo4w-dev@…
    Type:  defect                    |      Status:  new
Priority:  minor                     |   Component:  Installer
 Version:                            |  Resolution:
Keywords:  QGIS Matplotlib _imaging  |
-------------------------------------+----------------------------

Comment (by mkuhn):

 I copied some missing files from Pillow as a workaround. More complete
 description here:

 http://stackoverflow.com/a/43657594/2319028

--
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/481#comment:4>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.

_______________________________________________
osgeo4w-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/osgeo4w-dev
Reply | Threaded
Open this post in threaded view
|

Re: [osgeo4w] #481: The _imaging C module is not installed on QGIS 2.12.x Windows 32 bits

OSGeo4W
In reply to this post by OSGeo4W
#481: The _imaging C module is not installed on QGIS 2.12.x Windows 32 bits
-------------------------------------+----------------------------
Reporter:  jhemmi                    |       Owner:  osgeo4w-dev@…
    Type:  defect                    |      Status:  new
Priority:  minor                     |   Component:  Installer
 Version:                            |  Resolution:
Keywords:  QGIS Matplotlib _imaging  |
-------------------------------------+----------------------------

Comment (by jef):

 {{{
 import PIL
 import Image
 import _imaging
 }}}

 doesn't seem to show the problem (python-pil-1.1.7-1)

--
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/481#comment:5>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.

_______________________________________________
osgeo4w-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/osgeo4w-dev
Reply | Threaded
Open this post in threaded view
|

Re: [osgeo4w] #481: The _imaging C module is not installed on QGIS 2.12.x Windows 32 bits

OSGeo4W
In reply to this post by OSGeo4W
#481: The _imaging C module is not installed on QGIS 2.12.x Windows 32 bits
-------------------------------------+----------------------------
Reporter:  jhemmi                    |       Owner:  osgeo4w-dev@…
    Type:  defect                    |      Status:  new
Priority:  minor                     |   Component:  Installer
 Version:                            |  Resolution:
Keywords:  QGIS Matplotlib _imaging  |
-------------------------------------+----------------------------

Comment (by jakosek):

 Could you check also
 from PIL import ImageDraw, ImageFont

--
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/481#comment:6>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.

_______________________________________________
osgeo4w-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/osgeo4w-dev
Reply | Threaded
Open this post in threaded view
|

Re: [osgeo4w] #481: The _imaging C module is not installed on QGIS 2.12.x Windows 32 bits

OSGeo4W
In reply to this post by OSGeo4W
#481: The _imaging C module is not installed on QGIS 2.12.x Windows 32 bits
-------------------------------------+----------------------------
Reporter:  jhemmi                    |       Owner:  osgeo4w-dev@…
    Type:  defect                    |      Status:  new
Priority:  minor                     |   Component:  Installer
 Version:                            |  Resolution:
Keywords:  QGIS Matplotlib _imaging  |
-------------------------------------+----------------------------

Comment (by jef):

 hm, works for me too.

--
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/481#comment:7>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.

_______________________________________________
osgeo4w-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/osgeo4w-dev
Reply | Threaded
Open this post in threaded view
|

Re: [osgeo4w] #481: The _imaging C module is not installed on QGIS 2.12.x Windows 32 bits

OSGeo4W
In reply to this post by OSGeo4W
#481: The _imaging C module is not installed on QGIS 2.12.x Windows 32 bits
-------------------------------------+----------------------------
Reporter:  jhemmi                    |       Owner:  osgeo4w-dev@…
    Type:  defect                    |      Status:  new
Priority:  minor                     |   Component:  Installer
 Version:                            |  Resolution:
Keywords:  QGIS Matplotlib _imaging  |
-------------------------------------+----------------------------

Comment (by mkuhn):

 It failed for me when used by reportlab and integrating a .png file.

 Are _imaging* files present in your apps/Python27/site-packages/PIL
 folder?

--
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/481#comment:8>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.

_______________________________________________
osgeo4w-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/osgeo4w-dev
Reply | Threaded
Open this post in threaded view
|

Re: [osgeo4w] #481: The _imaging C module is not installed on QGIS 2.12.x Windows 32 bits

OSGeo4W
In reply to this post by OSGeo4W
#481: The _imaging C module is not installed on QGIS 2.12.x Windows 32 bits
-------------------------------------+----------------------------
Reporter:  jhemmi                    |       Owner:  osgeo4w-dev@…
    Type:  defect                    |      Status:  new
Priority:  minor                     |   Component:  Installer
 Version:                            |  Resolution:
Keywords:  QGIS Matplotlib _imaging  |
-------------------------------------+----------------------------

Comment (by jef):

 Sure - as [[http://download.osgeo.org/osgeo4w/release/python/python-pil
 /python-pil-1.1.7-1.tar.bz2|python-pil-1.1.7-1.tar.bz2]] has them (did
 also verify that the standalone installers have them - in case this was
 not strictly about osgeo4w).

 {{{
 C:\OSGeo4W>python
 Python 2.7.4 (default, Apr  6 2013, 19:54:46) [MSC v.1500 32 bit (Intel)]
 on win
 32
 Type "help", "copyright", "credits" or "license" for more information.
 >>> from PIL import ImageDraw, ImageFont
 >>> import _imaging
 >>> quit()

 C:\OSGeo4W>dir /s /b _imaging*.*
 C:\OSGeo4W\apps\Python27\Lib\site-packages\PIL\_imaging.pyd
 C:\OSGeo4W\apps\Python27\Lib\site-packages\PIL\_imagingcms.pyd
 C:\OSGeo4W\apps\Python27\Lib\site-packages\PIL\_imagingft.pyd
 C:\OSGeo4W\apps\Python27\Lib\site-packages\PIL\_imagingmath.pyd
 C:\OSGeo4W\apps\Python27\Lib\site-packages\PIL\_imagingtk.pyd
 }}}

--
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/481#comment:9>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.

_______________________________________________
osgeo4w-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/osgeo4w-dev
Reply | Threaded
Open this post in threaded view
|

Re: [osgeo4w] #481: The _imaging C module is not installed on QGIS 2.12.x Windows 32 bits

OSGeo4W
In reply to this post by OSGeo4W
#481: The _imaging C module is not installed on QGIS 2.12.x Windows 32 bits
-------------------------------------+----------------------------
Reporter:  jhemmi                    |       Owner:  osgeo4w-dev@…
    Type:  defect                    |      Status:  new
Priority:  minor                     |   Component:  Installer
 Version:                            |  Resolution:
Keywords:  QGIS Matplotlib _imaging  |
-------------------------------------+----------------------------

Comment (by jakosek):

 As I remember problem with PIL was not missing files, but precompiled
 module with bad paramerets.
 Main problem is pointed on stackoverflow:

 {{{
 The freetype C library references a debug CRT that is not available on all
 machines. You can easily patch the _imagingft.pyd file with a hex editor.
 }}}

 Pillow modules work on all tested computers.

--
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/481#comment:10>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.

_______________________________________________
osgeo4w-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/osgeo4w-dev
Reply | Threaded
Open this post in threaded view
|

Re: [osgeo4w] #481: The _imaging C module is not installed on QGIS 2.12.x Windows 32 bits

OSGeo4W
In reply to this post by OSGeo4W
#481: The _imaging C module is not installed on QGIS 2.12.x Windows 32 bits
-------------------------------------+----------------------------
Reporter:  jhemmi                    |       Owner:  osgeo4w-dev@…
    Type:  defect                    |      Status:  new
Priority:  minor                     |   Component:  Installer
 Version:                            |  Resolution:
Keywords:  QGIS Matplotlib _imaging  |
-------------------------------------+----------------------------

Comment (by jef):

 python-pil upgraded to python-pillow

--
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/481#comment:11>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.

_______________________________________________
osgeo4w-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/osgeo4w-dev
Reply | Threaded
Open this post in threaded view
|

Re: [osgeo4w] #481: The _imaging C module is not installed on QGIS 2.12.x Windows 32 bits

OSGeo4W
In reply to this post by OSGeo4W
#481: The _imaging C module is not installed on QGIS 2.12.x Windows 32 bits
-------------------------------------+----------------------------
Reporter:  jhemmi                    |       Owner:  osgeo4w-dev@…
    Type:  defect                    |      Status:  new
Priority:  minor                     |   Component:  Installer
 Version:                            |  Resolution:
Keywords:  QGIS Matplotlib _imaging  |
-------------------------------------+----------------------------

Comment (by mkuhn):

 Thanks, @jef

--
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/481#comment:12>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.

_______________________________________________
osgeo4w-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/osgeo4w-dev
Reply | Threaded
Open this post in threaded view
|

Re: [osgeo4w] #481: The _imaging C module is not installed on QGIS 2.12.x Windows 32 bits

OSGeo4W
In reply to this post by OSGeo4W
#481: The _imaging C module is not installed on QGIS 2.12.x Windows 32 bits
-------------------------------------+----------------------------
Reporter:  jhemmi                    |       Owner:  osgeo4w-dev@…
    Type:  defect                    |      Status:  closed
Priority:  minor                     |   Component:  Installer
 Version:                            |  Resolution:  fixed
Keywords:  QGIS Matplotlib _imaging  |
-------------------------------------+----------------------------
Changes (by jef):

 * status:  new => closed
 * resolution:   => fixed


--
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/481#comment:13>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.

_______________________________________________
osgeo4w-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/osgeo4w-dev