Raspberry pi, simplecv error after code terminates

asked 2014-05-09 11:02:01 -0500

Magicbean gravatar image

updated 2014-05-09 11:06:27 -0500

When running the following code in a file test.py

from SimpleCV import *

cam = Camera()
disp = Display()
img = cam.getImage()

The code appears to execute OK and displays the image but on exit I get the following error:

**Exception in thread Thread-1 (most likely raised during interpreter shutdown):
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
  File "/usr/local/lib/python2.7/dist-packages/SimpleCV/Camera.py", line 35, in run
<type 'exceptions.TypeError'>: 'NoneType' object is not iterable**

Am I suppose to be releasing or closing things before the python code exits to the shell? (Raspbery pi, python, SimpleCV 1.3.0)

When I run the code with python test.py I also get a message on stderr:
/bin/sh: 1: lsof: not found
error in original mmap
error in original mmap

(yes, that mmap message appears twice)

Not sure if these are symtops of the main problem or not ...?

Any clues please? thanks.

edit retag flag offensive close merge delete