ImportError: No module named pymeanshift

To install the pymeanshift module i did it easily like this:

1) Download the sources https://code.google.com/p/pymeanshift/downloads/list

(there is no binary at the time of writing this)


2) tar zxvf pymeanshift-0.2.1.tar.gz


root@walter-Lenovo-Z480:~/pymeanshift-0.2.1# ./setup.py install
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
copying pymeanshift.py -> build/lib.linux-x86_64-2.7
running build_ext
building '_pymeanshift' extension
creating build/temp.linux-x86_64-2.7
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c ms.cpp -o build/temp.linux-x86_64-2.7/ms.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
ms.cpp: In member function ‘void MeanShift::generalLSearch(double*, double*)’:
ms.cpp:2171:26: warning: variable ‘lN’ set but not used [-Wunused-but-set-variable]
ms.cpp: In member function ‘void MeanShift::optGeneralLSearch(double*, double*)’:
ms.cpp:2327:37: warning: variable ‘lN’ set but not used [-Wunused-but-set-variable]
ms.cpp: In member function ‘void MeanShift::generalSearch(tree*, int, double*, double*)’:
ms.cpp:1818:5: warning: ‘diff’ may be used uninitialized in this function [-Wuninitialized]
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c msImageProcessor.cpp -o build/temp.linux-x86_64-2.7/msImageProcessor.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
msImageProcessor.cpp: In member function ‘void msImageProcessor::TransitiveClosure()’:
msImageProcessor.cpp:2414:8: warning: variable ‘threshold’ set but not used [-Wunused-but-set-variable]
msImageProcessor.cpp:2563:6: warning: unused variable ‘oldRegionCount’ [-Wunused-variable]
msImageProcessor.cpp: In member function ‘void msImageProcessor::Prune(int)’:
msImageProcessor.cpp:2784:57: warning: variable ‘oldRegionCount’ set but not used [-Wunused-but-set-variable]
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c rlist.cpp -o build/temp.linux-x86_64-2.7/rlist.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c RAList.cpp -o build/temp.linux-x86_64-2.7/RAList.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c pymeanshift.cpp -o build/temp.linux-x86_64-2.7/pymeanshift.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
In file included from /usr/local/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1761:0,
                 from /usr/local/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarrayobject.h:17,
                 from /usr/local/lib/python2.7/dist-packages/numpy/core/include/numpy/arrayobject.h:4,
                 from pymeanshift.cpp:21:
/usr/local/lib/python2.7/dist-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro build/temp.linux-x86_64-2.7/ms.o build/temp.linux-x86_64-2.7/msImageProcessor.o build/temp.linux-x86_64-2.7/rlist.o build/temp.linux-x86_64-2.7/RAList.o build/temp.linux-x86_64-2.7/pymeanshift.o -o build/lib.linux-x86_64-2.7/_pymeanshift.so
running install_lib
copying build/lib.linux-x86_64-2.7/_pymeanshift.so -> /usr/local/lib/python2.7/dist-packages
copying build/lib.linux-x86_64-2.7/pymeanshift.py -> /usr/local/lib/python2.7/dist-packages
byte-compiling /usr/local/lib/python2.7/dist-packages/pymeanshift.py to pymeanshift.pyc
running install_egg_info
Writing /usr/local/lib/python2.7/dist-packages/pymeanshift-0.2.1.egg-info

-----