Yup. I put in my ~/.bash_profile export PYTHONPATH=$PYTHONPATH:/Users/dan/pymodules export PYTHONPATH=$PYTHONPATH:/usr/local/include/opencv/
And still the same error On Wed, May 16, 2012 at 2:50 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > Can you try set PYTHONPATH? > > http://www.stereoplex.com/blog/understanding-imports-and-pythonpath > > > On Wednesday, 16 May 2012 12:46:34 UTC-5, web2py_tn wrote: >> >> Actually I think the installation path is >> >> /usr/local/lib/ >> >> But where do I have to manually set it, in web2py? >> >> On Wed, May 16, 2012 at 10:42 AM, Bassem Bouguerra >> <bougue...@gmail.com>wrote: >> >>> Also, I installed opencv using homebew and I can find OpenCV folder >>> in /usr/local/share/ where there is OpenCVConfig-version.cmake >>> haarcascades OpenCVConfig.**cmake lbpcascades doc >>> That means OpenCV's installation path is /usr/local/share/, right? >>> >>> >>> On Wed, May 16, 2012 at 10:33 AM, Bassem Bouguerra >>> <bougue...@gmail.com>wrote: >>> >>>> Thanks Willis >>>> >>>> >>>> Do I add that into the web2py.py ? >>>> >>>> >>>> On Wed, May 16, 2012 at 8:17 AM, Wikus van de Merwe < >>>> dupakrop...@googlemail.com> wrote: >>>> >>>>> Where is the opencv installed in your system? When you check python >>>>> interpreters in PyDev options is that path on the list? >>>>> >>>>> If you still struggling with it, a workaround could be to add the >>>>> installation folder to the system path by hand: >>>>> import sys >>>>> sys.path.append("opencv") >>>>> >>>>> >>>> >>>> >>>> -- >>>> http://bouguerra.org >>>> >>>> >>>> >>> >>> >>> -- >>> http://bouguerra.org >>> >>> >>> >> >> >> -- >> http://bouguerra.org >> >> >> -- http://bouguerra.org