How do I install / use this script

Asked by JamieT

OK I have used bzr to get a local copy of this script and I have installed opencv based on instructions here: but I get errors when trying to run the service as follows:

:~/tmp/quiestla$ python
Traceback (most recent call last):
  File "", line 28, in <module>
    from quiestla.common.quiestlaservice import QuiEstLaService
  File "/home/jamie/tmp/quiestla/quiestla/common/", line 34, in <module>
    from quiestla.common.quiestlaworker import QuiEstLaWorker
  File "/home/jamie/tmp/quiestla/quiestla/common/", line 23, in <module>
    from quiestla.common.opencvclient import OpenCVClient
  File "/home/jamie/tmp/quiestla/quiestla/common/", line 22, in <module>
    from import *
ImportError: No module named

I can run the client but it complains that no service is running?

Question information

English Edit question
QuiEstLa Edit question
No assignee Edit question
Solved by:
Last query:
Last reply:
Revision history for this message
JamieT (jamie-tomlinson) said :

OK - I read up on the internet that using "from import cv *" is the old way to import opencv. So I checked that the file was in the sys.path and then changed the two from opencv lines to be just import cv. This error has gone away but I now get a global NameError as follows:

NameError: global name 'cvCreateMemStorage' is not defined. I suspect that I am not importing everything I should be but think I am caught in between changes in opencv and how this python scripts imports this library.

Any ideas?


Revision history for this message
JamieT (jamie-tomlinson) said :

OK - I have fixed this issue. The problem seems to not be with the script but with the fact that I tried to install from the source using the instructions in the OP. I removed that install and just installed from the ubuntu repo (Lucid) and everything worked as expected (I must admit to being surprised to see it in the repo - not sure why!!). As a first start I am impressed just need to work on the UI and backend for recognition vs detection.