Kivy.app 1.4.1 lacks modules PIL and cv #767

Closed
rogererens opened this Issue Oct 25, 2012 · 1 comment

Comments

Projects
None yet
1 participant
Contributor

rogererens commented Oct 25, 2012

Trying to run the examples/demo/camera_puzzle.py on Mac OSX 10.7.5 Lion, I get ImportErrors:

$ kivy camera_puzzle.py 
[INFO   ] Kivy v1.4.1
[INFO   ] [Logger      ] Record log in /Users/roger/.kivy/logs/kivy_12-10-25_5.txt
[INFO   ] [Factory     ] 123 symbols loaded
[DEBUG  ] [Cache       ] register <kv.lang> with limit=None, timeout=Nones
[DEBUG  ] [Cache       ] register <kv.image> with limit=None, timeout=60s
[DEBUG  ] [Cache       ] register <kv.atlas> with limit=None, timeout=Nones
[WARNING] [Image       ] Unable to use <pil> as loader!
[DEBUG  ] 
Traceback (most recent call last):
  File "/Applications/Kivy.app/Contents/Resources/kivy/kivy/core/__init__.py", line 97, in core_register_libs
    level=-1)
  File "/Applications/Kivy.app/Contents/Resources/kivy/kivy/core/image/img_pil.py", line 8, in <module>
    from PIL import Image as PILImage
ImportError: No module named PIL
[DEBUG  ] [Cache       ] register <kv.texture> with limit=1000, timeout=60s
[DEBUG  ] [Cache       ] register <kv.shader> with limit=1000, timeout=60s
[DEBUG  ] [Cache       ] register <kivy.loader> with limit=500, timeout=60s
[INFO   ] [Loader      ] using <pygame> as thread loader
[WARNING] [Camera      ] Unable to use <opencv> as cameraprovider
[WARNING] [Camera      ] Associated module are missing
[DEBUG  ] 
Traceback (most recent call last):
  File "/Applications/Kivy.app/Contents/Resources/kivy/kivy/core/__init__.py", line 47, in core_select_lib
    fromlist=[modulename], level=-1)
  File "/Applications/Kivy.app/Contents/Resources/kivy/kivy/core/camera/camera_opencv.py", line 20, in <module>
    import cv
ImportError: No module named cv
[CRITICAL] [Camera      ] Unable to find any valuable Camera provider at all!
[DEBUG  ] [App         ] kv <./puzzle.kv> not found
[INFO   ] [Window      ] using <pygame> as window provider
[INFO   ] [GL          ] OpenGL version <2.1 ATI-7.32.12>
[INFO   ] [GL          ] OpenGL vendor <ATI Technologies Inc.>
[INFO   ] [GL          ] OpenGL renderer <AMD Radeon HD 6630M OpenGL Engine>
[INFO   ] [GL          ] Shading version <1.20>
[INFO   ] [GL          ] Texture max size <16384>
[INFO   ] [GL          ] Texture max units <16>
[INFO   ] [GL          ] OpenGL parsed version: 2, 1
[INFO   ] [Shader      ] fragment compiled successfully
[INFO   ] [Shader      ] vertex compiled successfully
[DEBUG  ] [ImagePygame ] Load </Applications/Kivy.app/Contents/Resources/kivy/kivy/data/glsl/default.png>
[INFO   ] [Window      ] virtual keyboard not allowed, single mode, not docked
 Traceback (most recent call last):
   File "camera_puzzle.py", line 83, in <module>
     PuzzleApp().run()
   File "/Applications/Kivy.app/Contents/Resources/kivy/kivy/app.py", line 523, in run
     root = self.build()
   File "camera_puzzle.py", line 68, in build
     puzzle = Puzzle(resolution=(640, 480), play=True)
   File "/Applications/Kivy.app/Contents/Resources/kivy/kivy/uix/camera.py", line 90, in __init__
     self._on_index()
   File "/Applications/Kivy.app/Contents/Resources/kivy/kivy/uix/camera.py", line 102, in _on_index
     resolution=self.resolution, stopped=True)
 TypeError: 'NoneType' object is not callable
Contributor

rogererens commented Mar 12, 2013

This happened on a machine without a camera attached, so running a camera-oriented application does not really make sense. A check on availability of a camera and corresponding response would be nicer, though.
Also, kivy 1.4.1 is superseded as well.

@rogererens rogererens closed this Mar 12, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment