Closed imanbee closed 11 years ago
It looks like device.py tried to grab a frame from your webcam, but didn't receive anything from the device. Have you been able to use OpenCV before with this camera? Try running the test that I added (test_webcam.py) and see what happens.
test_webcam.py works successful, but get_pulse.py fail. When i try to start program with root privileges (sudo) , i get:
Traceback (most recent call last):
File "webcam-pulse-detector-master/get_pulse.py", line 2, in <module>
from lib.processors import findFaceGetPulse
File "/home/pchelkin/Downloads/webcam-pulse-detector-master/lib/processors.py", line 1, in <module>
from openmdao.lib.datatypes.api import Float, Dict, Array, List, Int
ImportError: No module named openmdao.lib.datatypes.api
Maybe something wrong with OpenMDAO, don't know. I'm newbie in python
openmdao bootstraps itself into a virtualenv. Did you activate the virtualenv using . OpenMDAO/bin/activate
, where OpenMDAO
is the install directory?
@universemaster No, i'm using standard python from ubuntu repos. @thearn yes, i did it, but no luck
I'm getting the same on OSX Mountain Lion, OpenMDAO installed successfully, test_webcam.py
works, but I get the following error:
Traceback (most recent call last):
File "get_pulse.py", line 2, in <module>
from lib.processors import findFaceGetPulse
File "/path/webcam-pulse-detector/lib/processors.py", line 1, in <module>
from openmdao.lib.datatypes.api import Float, Dict, Array, List, Int
ImportError: No module named lib.datatypes.api
Did you get errors in the install? It can still complete with errors in some modules. You need to activate openmdao and when you run you need to type python first. Just typing the script name didn't work for me.
Get the error as well, I'm on Ubuntu too.
It it normal that the activate script does not return any output when being executed?
Yes, it is normal for no output to be returned. The prompt in the terminal/command window should change to show that it has been activated (as normal for a python virtualenv)
Same error on windows :
"No module named openmdao.lib.datatypes.api"
(Even after activate)
I'm getting the same question on Windows 10. But as "maym86"'s say " Did you get errors in the install? It can still complete with errors in some modules. " I had double click to install "go-openmdao-0.13.0.py", so it's not okay. It should install go-openmdao-0.13.0.py in cmd as a command " python go-openmdao-0.13.0.py".
Ubuntu 12.10 x64. Whan does it mean?