I've been trying to package some script in kivy for windows using 
pyinstaller, my script uses these libs: matplotlib, pygame, scipy and 
numpy, but when I try to execute the .exe file, this error shows up: 
"ImportError: The _imaging C module is not installed", I've installed 
Pillow because PIL doesn't get the registry entry of my python 2.7, here is 
the total log of the process in 
http://kivy.org/docs/guide/packaging-windows.html:

botstrapping Kivy @ C:\Users\Leonard\Downloads\
Setting Environment Variables:
#################################
GST_REGISTRY
C:\Users\Leonard\Downloads\gstreamer\registry.bin
---------------
GST_PLUGIN_PATH:
C:\Users\Leonard\Downloads\gstreamer\lib\gstreamer-0.10
---------------
PATH:
C:\Users\Leonard\Downloads\;C:\Users\Leonard\Downloads\Python;C:\Users

\Leonard\D
ownloads\Python\Scripts;C:\Users\Leonard\Downloads\gstreamer\bin;C:\Users

\Leonar
d\Downloads\MinGW\bin;C:\Program Files\Common Files\Microsoft Shared\Windows 

Liv
e;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:

\windows\s
ystem32;C:\windows;C:\windows\System32\Wbem;C:\windows

\System32\WindowsPowerShel
l\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:

\Program F
iles (x86)\Windows Live\Shared;C:\Program Files (x86)\Calibre2\;C:\Program 

Files
 (x86)\IVI Foundation\IVI\bin;C:\Program Files\IVI Foundation\IVI\bin;C:

\Program
 Files\IVI Foundation\VISA\Win64\Bin\;C:\Program Files (x86)\IVI Foundation

\VISA
\WinNT\Bin\;C:\Users\Leonard\AppData\Local\Enthought\Canopy\User\Scripts;C:

\wind
ows\system32\WindowsPowerShell\v1.0\;C:\Program Files\Common Files\Microsoft 

Sha
red\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows 

Li
ve;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows

\System32\W
indowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-

Stat
ic;C:\Program Files (x86)\Windows Live\Shared;C:\windows

\system32\WindowsPowerSh
ell\v1.0\;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:

\Program
 Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\windows

\system32;C:\w
indows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell

\v1.0\;C:\P
rogram Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files 

(x86)\W
indows Live\Shared;C:\Python27;C:\Python27
----------------------------------
PYTHONPATH:
C:\Users\Leonard\Downloads\kivy;
----------------------------------
##################################
done bootstraping kivy...have fun!\n

-----------------------------------------------------------------------
- Running a shell, you can browse kivyexamples and launch apps with: -
- python app.py -
-----------------------------------------------------------------------

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\Leonard\Downloads>cd pyinstaller-2.0
The system cannot find the path specified.

C:\Users\Leonard\Downloads>cd pyinstaller

C:\Users\Leonard\Downloads\pyinstaller>cd pyinstaller-2.0

C:\Users\Leonard\Downloads\pyinstaller\pyinstaller-2.0>python pyinstaller.py 

--name=segundointento E:\Dropbox\TFM\TFM_Python\Kivy_Tuto\GUI\main.py

659 INFO: wrote C:\Users\Leonard\Downloads\pyinstaller\pyinstaller-

2.0\segundoin
tento\segundointento.spec
829 INFO: Testing for ability to set icons, version resources...
976 INFO: ... resource update available
980 INFO: UPX is not available.
3549 INFO: checking Analysis
3549 INFO: building Analysis because out00-Analysis.toc non existent
3550 INFO: running Analysis out00-Analysis.toc
3552 INFO: Adding Microsoft.VC90.CRT to dependent assemblies of final 

executable

55601 INFO: Searching for assembly 

x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.2
1022.8_none ...
55602 INFO: Found manifest C:\windows\WinSxS\Manifests

\x86_microsoft.vc90.crt_1f
c8b3b9a1e18e3b_9.0.21022.8_none_bcb86ed6ac711f91.manifest
55631 INFO: Searching for file msvcr90.dll
55631 INFO: Found file C:\windows\WinSxS

\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b
_9.0.21022.8_none_bcb86ed6ac711f91\msvcr90.dll
55631 INFO: Searching for file msvcp90.dll
55632 INFO: Found file C:\windows\WinSxS

\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b
_9.0.21022.8_none_bcb86ed6ac711f91\msvcp90.dll
55634 INFO: Searching for file msvcm90.dll
55646 INFO: Found file C:\windows\WinSxS

\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b
_9.0.21022.8_none_bcb86ed6ac711f91\msvcm90.dll
56135 INFO: Analyzing C:\Users\Leonard\Downloads\pyinstaller\pyinstaller-

2.0\sup
port\_pyi_bootstrap.py
57958 INFO: Analyzing C:\Users\Leonard\Downloads\pyinstaller\pyinstaller-

2.0\PyI
nstaller\loader\archive.py
58194 INFO: Analyzing C:\Users\Leonard\Downloads\pyinstaller\pyinstaller-

2.0\PyI
nstaller\loader\carchive.py
58348 INFO: Analyzing C:\Users\Leonard\Downloads\pyinstaller\pyinstaller-

2.0\PyI
nstaller\loader\iu.py
58386 INFO: Analyzing E:\Dropbox\TFM\TFM_Python\Kivy_Tuto\GUI\main.py
71101 WARNING: library libmtdev.so.1 required via ctypes not found
73276 INFO: Hidden import 'encodings' has been found otherwise
73276 INFO: Looking for run-time hooks
73279 INFO: Analyzing rthook C:\Users\Leonard\Downloads\pyinstaller

\pyinstaller-
2.0\support/rthooks/pyi_rth_PIL_Image.py
73325 INFO: Analyzing rthook C:\Users\Leonard\Downloads\pyinstaller

\pyinstaller-
2.0\support/rthooks/pyi_rth_encodings.py
75039 INFO: Adding Microsoft.VC90.MFC to dependent assemblies of final 

executable
75251 INFO: Searching for assembly 

x86_Microsoft.VC90.MFC_1fc8b3b9a1e18e3b_9.0.2
1022.8_none ...
75253 INFO: Found manifest C:\windows\WinSxS\Manifests

\x86_microsoft.vc90.mfc_1f
c8b3b9a1e18e3b_9.0.21022.8_none_b81d038aaf540e86.manifest
75279 INFO: Searching for file mfc90.dll
75310 INFO: Found file C:\windows\WinSxS

\x86_microsoft.vc90.mfc_1fc8b3b9a1e18e3b
_9.0.21022.8_none_b81d038aaf540e86\mfc90.dll
75310 INFO: Searching for file mfc90u.dll
75313 INFO: Found file C:\windows\WinSxS

\x86_microsoft.vc90.mfc_1fc8b3b9a1e18e3b
_9.0.21022.8_none_b81d038aaf540e86\mfc90u.dll
75317 INFO: Searching for file mfcm90.dll
75319 INFO: Found file C:\windows\WinSxS

\x86_microsoft.vc90.mfc_1fc8b3b9a1e18e3b
_9.0.21022.8_none_b81d038aaf540e86\mfcm90.dll
75322 INFO: Searching for file mfcm90u.dll
75323 INFO: Found file C:\windows\WinSxS

\x86_microsoft.vc90.mfc_1fc8b3b9a1e18e3b
_9.0.21022.8_none_b81d038aaf540e86\mfcm90u.dll
79618 INFO: Warnings written to C:\Users\Leonard\Downloads\pyinstaller

\pyinstall
er-2.0\segundointento\build\pyi.win32\segundointento\warnsegundointento.txt
79641 INFO: checking PYZ
79641 INFO: rebuilding out00-PYZ.toc because out00-PYZ.pyz is missing
79642 INFO: building PYZ out00-PYZ.toc
88530 INFO: checking PKG
88532 INFO: rebuilding out00-PKG.toc because out00-PKG.pkg is missing
88532 INFO: building PKG out00-PKG.pkg
88562 INFO: checking EXE
88563 INFO: rebuilding out00-EXE.toc because segundointento.exe missing
88565 INFO: building EXE from out00-EXE.toc
88766 INFO: Appending archive to EXE C:\Users\Leonard\Downloads\pyinstaller

\pyin
staller-2.0\segundointento\build\pyi.win32\segundointento\segundointento.exe
88904 INFO: checking COLLECT
88904 INFO: building COLLECT out00-COLLECT.toc

C:\Users\Leonard\Downloads\pyinstaller\pyinstaller-2.0>python pyinstaller.py 

seg
undointento\segundointento.spec
112 INFO: Testing for ability to set icons, version resources...
131 INFO: ... resource update available
137 INFO: UPX is not available.
Traceback (most recent call last):
  File "pyinstaller.py", line 91, in <module>
    main()
  File "pyinstaller.py", line 86, in main
    run_build(opts, spec_file)
  File "pyinstaller.py", line 50, in run_build
    PyInstaller.build.main(spec_file, **opts.__dict__)
  File "C:\Users\Leonard\Downloads\pyinstaller\pyinstaller-2.0\PyInstaller

\build
.py", line 1625, in main
    build(specfile, buildpath)
  File "C:\Users\Leonard\Downloads\pyinstaller\pyinstaller-2.0\PyInstaller

\build
.py", line 1582, in build
    execfile(spec)
  File "segundointento\segundointento.spec", line 17
    a.binaries,
    ^
SyntaxError: invalid syntax

C:\Users\Leonard\Downloads\pyinstaller\pyinstaller-2.0>python pyinstaller.py 

seg
undointento\segundointento.spec
76 INFO: Testing for ability to set icons, version resources...
85 INFO: ... resource update available
91 INFO: UPX is not available.
[INFO              ] Kivy v1.7.2
1480 INFO: Kivy v1.7.2
1605 INFO: checking Analysis
1622 INFO: building because hookspath changed
1625 INFO: running Analysis out00-Analysis.toc
1632 INFO: Adding Microsoft.VC90.CRT to dependent assemblies of final 

executable

1878 INFO: Searching for assembly 

x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21
022.8_none ...
1878 INFO: Found manifest C:\windows\WinSxS\Manifests

\x86_microsoft.vc90.crt_1fc
8b3b9a1e18e3b_9.0.21022.8_none_bcb86ed6ac711f91.manifest
1884 INFO: Searching for file msvcr90.dll
1884 INFO: Found file C:\windows\WinSxS

\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_
9.0.21022.8_none_bcb86ed6ac711f91\msvcr90.dll
1885 INFO: Searching for file msvcp90.dll
1888 INFO: Found file C:\windows\WinSxS

\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_
9.0.21022.8_none_bcb86ed6ac711f91\msvcp90.dll
1890 INFO: Searching for file msvcm90.dll
1891 INFO: Found file C:\windows\WinSxS

\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_
9.0.21022.8_none_bcb86ed6ac711f91\msvcm90.dll
2020 INFO: Analyzing C:\Users\Leonard\Downloads\pyinstaller\pyinstaller-

2.0\support\_pyi_bootstrap.py
3532 INFO: Analyzing C:\Users\Leonard\Downloads\pyinstaller\pyinstaller-

2.0\PyInstaller\loader\archive.py
3681 INFO: Analyzing C:\Users\Leonard\Downloads\pyinstaller\pyinstaller-

2.0\PyInstaller\loader\carchive.py
3836 INFO: Analyzing C:\Users\Leonard\Downloads\pyinstaller\pyinstaller-

2.0\PyInstaller\loader\iu.py
3878 INFO: Analyzing E:\Dropbox\TFM\TFM_Python\Kivy_Tuto\GUI\main.py
[INFO              ] [Logger      ] Record log in C:\Users\Leonard\.kivy

\logs\ki
vy_13-08-14_1.txt
3989 INFO: [Logger      ] Record log in C:\Users\Leonard\.kivy\logs\kivy_13-

08-1
4_1.txt
[INFO              ] [Factory     ] 144 symbols loaded
3956 INFO: [Factory     ] 144 symbols loaded
4747 WARNING: library libmtdev.so.1 required via ctypes not found
10865 INFO: Hidden import 'encodings' has been found otherwise
10865 INFO: Looking for run-time hooks
10868 INFO: Analyzing rthook C:\Users\Leonard\Downloads\kivy\kivy\tools

\packagin
g\pyinstaller_hooks\rt-hook-kivy.py
10999 INFO: Analyzing rthook C:\Users\Leonard\Downloads\pyinstaller

\pyinstaller-
2.0\support/rthooks/pyi_rth_PIL_Image.py
11023 INFO: Analyzing rthook C:\Users\Leonard\Downloads\pyinstaller

\pyinstaller-
2.0\support/rthooks/pyi_rth_encodings.py
12381 INFO: Adding Microsoft.VC90.MFC to dependent assemblies of final 

executabl
e
12546 INFO: Searching for assembly 

x86_Microsoft.VC90.MFC_1fc8b3b9a1e18e3b_9.0.2
1022.8_none ...
12546 INFO: Found manifest C:\windows\WinSxS\Manifests

\x86_microsoft.vc90.mfc_1f
c8b3b9a1e18e3b_9.0.21022.8_none_b81d038aaf540e86.manifest
12552 INFO: Searching for file mfc90.dll
12552 INFO: Found file C:\windows\WinSxS

\x86_microsoft.vc90.mfc_1fc8b3b9a1e18e3b
_9.0.21022.8_none_b81d038aaf540e86\mfc90.dll
12553 INFO: Searching for file mfc90u.dll
12555 INFO: Found file C:\windows\WinSxS

\x86_microsoft.vc90.mfc_1fc8b3b9a1e18e3b
_9.0.21022.8_none_b81d038aaf540e86\mfc90u.dll
12559 INFO: Searching for file mfcm90.dll
12561 INFO: Found file C:\windows\WinSxS

\x86_microsoft.vc90.mfc_1fc8b3b9a1e18e3b
_9.0.21022.8_none_b81d038aaf540e86\mfcm90.dll
12562 INFO: Searching for file mfcm90u.dll
12565 INFO: Found file C:\windows\WinSxS

\x86_microsoft.vc90.mfc_1fc8b3b9a1e18e3b
_9.0.21022.8_none_b81d038aaf540e86\mfcm90u.dll
15832 INFO: Warnings written to segundointento\build

\pyi.win32\segundointento\wa
rnsegundointento.txt
15859 INFO: checking PYZ
15868 INFO: building because name changed
15868 INFO: building PYZ out00-PYZ.toc
21530 INFO: checking PKG
21533 INFO: building because name changed
21533 INFO: building PKG out00-PKG.pkg
21562 INFO: checking EXE
21563 INFO: building because name changed
21565 INFO: building EXE from out00-EXE.toc
21572 INFO: Appending archive to EXE segundointento\build

\pyi.win32\segundointen
to\segundointento.exe
21704 INFO: checking Tree
21706 INFO: building because out00-Tree.toc missing or bad
21707 INFO: building Tree out00-Tree.toc
21871 INFO: checking COLLECT
WARNING: The output directory "segundointento\dist\segundointento" and ALL 

ITS C
ONTENTS will be REMOVED! Continue? (y/n)y
27869 INFO: Removing dir segundointento\dist\segundointento
27940 INFO: building COLLECT out00-COLLECT.toc

C:\Users\Leonard\Downloads\pyinstaller\pyinstaller-2.0>

 EXECUTING THE .EXE________________________________________________

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\Leonard\Downloads>cd pyinstaller\pyinstaller-2.0\segundointento

\build\pyi.win32\segundointento

C:\Users\Leonard\Downloads\pyinstaller\pyinstaller-2.0\segundointento\build

\pyi.win32\segundointento>dir
 Volume in drive C is WINDOWS7
 Volume Serial Number is F5BA-9240

 Directory of C:\Users\Leonard\Downloads\pyinstaller\pyinstaller-    
2.0\segundointento\build\pyi.win32\segundointento

14/08/2013  08:51 p.m.    <DIR>          .
14/08/2013  08:51 p.m.    <DIR>          ..
14/08/2013  08:51 p.m.            79.740 out00-Analysis.toc
14/08/2013  08:52 p.m.            24.093 out00-COLLECT.toc
14/08/2013  08:51 p.m.               149 out00-EXE.toc
14/08/2013  08:51 p.m.         2.658.381 out00-PKG.pkg
14/08/2013  08:51 p.m.             1.464 out00-PKG.toc
14/08/2013  08:51 p.m.         2.636.133 out00-PYZ.pyz
14/08/2013  08:51 p.m.            63.381 out00-PYZ.toc
14/08/2013  08:51 p.m.             9.838 out00-Tree.toc
14/08/2013  08:51 p.m.         2.833.485 segundointento.exe
14/08/2013  08:51 p.m.               715 segundointento.exe.manifest
14/08/2013  08:51 p.m.            49.570 warnsegundointento.txt
              11 File(s)      8.356.949 bytes
               2 Dir(s)  15.752.007.680 bytes free

C:\Users\Leonard\Downloads\pyinstaller\pyinstaller-2.0\segundointento\build\pyi.
win32\segundointento>segundointento.exe
Traceback (most recent call last):
  File "<string>", line 12, in <module>
  File "C:\Users\Leonard\Downloads\pyinstaller\pyinstaller-2.0\PyInstaller    
\loader\iu.py", line 386, in importHook
    mod = _self_doimport(nm, ctx, fqname)
  File "C:\Users\Leonard\Downloads\pyinstaller\pyinstaller-2.0\PyInstaller
\loader\iu.py", line 480, in doimportexec co in mod.__dict__
  File "segundointento\build\pyi.win32\segundointento\out00-PYZ.pyz
\PIL.PalmImag
ePlugin", line 92, in <module>
  File "segundointento\build\pyi.win32\segundointento\out00-PYZ.pyz
\PIL.PalmImag
ePlugin", line 82, in build_prototype_image
  File "segundointento\build\pyi.win32\segundointento\out00-PYZ.pyz
\PIL.Image",
line 1765, in new
  File "segundointento\build\pyi.win32\segundointento\out00-PYZ.pyz

\PIL.Image",
line 39, in __getattr__
ImportError: The _imaging C module is not installed

C:\Users\Leonard\Downloads\pyinstaller\pyinstaller-2.0\segundointento\build
\pyi.win32\segundointento>

I really appreciate any help to solve this, thanks

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to