Author: koji Date: Sun Jul 20 02:47:26 2014 New Revision: 1612014 URL: http://svn.apache.org/r1612014 Log: add some memo for people who have some troubles when running opencv programs
Modified: labs/alike/trunk/demo/README.txt Modified: labs/alike/trunk/demo/README.txt URL: http://svn.apache.org/viewvc/labs/alike/trunk/demo/README.txt?rev=1612014&r1=1612013&r2=1612014&view=diff ============================================================================== --- labs/alike/trunk/demo/README.txt (original) +++ labs/alike/trunk/demo/README.txt Sun Jul 20 02:47:26 2014 @@ -45,6 +45,27 @@ $ mkdir desc $ export PYTHONPATH=../src/python; python run_desc_extractor.py + If you use Mac OS X and got "ImportError: No module named cv2" despite the fact that + you've installed opencv +python27 via MacPorts, you may want to set your + PYTHONPATH environment variable to fix this problem: + + # look for the place where cv2 module installed via MacPorts + $ sudo port contents opencv|grep py + $ export PYTHONPATH=$PYTHONPATH:/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages + + If you use Mac OS X and got "segmentation fault" while running above, + your python that was already installed with shipment couldn't suite the version + of the opencv+python27 you've installed via MacPorts. To use MacPorts's version + of python27, check the directory python27 installed and set your PATH environment + variable: + + $ which python + # look for the place where python27 command installed via MacPorts + $ sudo port contents python27|grep bin + $ export PATH=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin:$PATH + # rerun the above + $ python run_desc_extractor.py + 7. if you want to run mahout on hadoop distributed environment, do the following, otherwise, go to 8. --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@labs.apache.org For additional commands, e-mail: commits-h...@labs.apache.org