tkanmae / levmar

Python binding to the levmar library using Cython
Other
19 stars 9 forks source link

ImportError: No module named _levmar #7

Open kylemcdonald opened 9 years ago

kylemcdonald commented 9 years ago

I'm having trouble installing this. It seems to be building correctly, but when I try to run the tests I get an error on import.

I would try the "in place" version without installing, but I'm not sure what to do where it says "[Set up PYTHONPATH appropriately]".

Last login: Mon Aug 17 13:27:46 on ttys001
kyle:levmar kyle$ cython -v levmar/_levmar.pyx
Compiling /Users/kyle/Documents/Learning/audio-analysis/levmar/levmar/_levmar.pyx
warning: levmar/_levmar.pyx:192:21: Non-trivial type declarators in shared declaration (e.g. mix of pointers and values). Each pointer declaration should be on its own line.
warning: levmar/_levmar.pyx:192:41: Non-trivial type declarators in shared declaration (e.g. mix of pointers and values). Each pointer declaration should be on its own line.
warning: levmar/_levmar.pyx:255:21: Non-trivial type declarators in shared declaration (e.g. mix of pointers and values). Each pointer declaration should be on its own line.
warning: levmar/_levmar.pyx:255:41: Non-trivial type declarators in shared declaration (e.g. mix of pointers and values). Each pointer declaration should be on its own line.
warning: levmar/_levmar.pyx:322:21: Non-trivial type declarators in shared declaration (e.g. mix of pointers and values). Each pointer declaration should be on its own line.
warning: levmar/_levmar.pyx:322:41: Non-trivial type declarators in shared declaration (e.g. mix of pointers and values). Each pointer declaration should be on its own line.
warning: levmar/_levmar.pyx:389:21: Non-trivial type declarators in shared declaration (e.g. mix of pointers and values). Each pointer declaration should be on its own line.
warning: levmar/_levmar.pyx:389:41: Non-trivial type declarators in shared declaration (e.g. mix of pointers and values). Each pointer declaration should be on its own line.
warning: levmar/_levmar.pyx:459:21: Non-trivial type declarators in shared declaration (e.g. mix of pointers and values). Each pointer declaration should be on its own line.
warning: levmar/_levmar.pyx:459:41: Non-trivial type declarators in shared declaration (e.g. mix of pointers and values). Each pointer declaration should be on its own line.
warning: levmar/_levmar.pyx:532:21: Non-trivial type declarators in shared declaration (e.g. mix of pointers and values). Each pointer declaration should be on its own line.
warning: levmar/_levmar.pyx:532:41: Non-trivial type declarators in shared declaration (e.g. mix of pointers and values). Each pointer declaration should be on its own line.
warning: levmar/_levmar.pyx:602:21: Non-trivial type declarators in shared declaration (e.g. mix of pointers and values). Each pointer declaration should be on its own line.
warning: levmar/_levmar.pyx:602:41: Non-trivial type declarators in shared declaration (e.g. mix of pointers and values). Each pointer declaration should be on its own line.
warning: levmar/_levmar.pyx:672:21: Non-trivial type declarators in shared declaration (e.g. mix of pointers and values). Each pointer declaration should be on its own line.
warning: levmar/_levmar.pyx:672:41: Non-trivial type declarators in shared declaration (e.g. mix of pointers and values). Each pointer declaration should be on its own line.
kyle:levmar kyle$ python setup.py build
running build
running build_py
package init file 'levmar/tests/__init__.py' not found (or not a regular file)
running build_ext
building 'levmar._levmar' extension
C compiler: clang -fno-strict-aliasing -fno-common -dynamic -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes

creating build/temp.macosx-10.10-x86_64-2.7
creating build/temp.macosx-10.10-x86_64-2.7/levmar
creating build/temp.macosx-10.10-x86_64-2.7/levmar-2.6
compile options: '-DNO_ATLAS_INFO=3 -Ilevmar-2.6 -I/usr/local/lib/python2.7/site-packages/numpy/core/include -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/2.7.10/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c'
extra options: '-msse3 -DAPPLE_ACCELERATE_SGEMV_PATCH'
clang: levmar-2.6/lm.c
In file included from levmar-2.6/lm.c:54:
levmar-2.6/lm_core.c:179:7: warning: 'finite' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]
  if(!LM_FINITE(p_eL2)) stop=7;
      ^
levmar-2.6/compiler.h:36:19: note: expanded from macro 'LM_FINITE'
#define LM_FINITE finite // ICC, GCC
                  ^
/usr/include/math.h:718:12: note: 'finite' has been explicitly marked deprecated here
extern int finite(double) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_9, __IPHONE_NA, __IPHONE_NA);
           ^
In file included from levmar-2.6/lm.c:54:
levmar-2.6/lm_core.c:354:13: warning: 'finite' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]
        if(!LM_FINITE(pDp_eL2)){ /* sum of squares is not finite, most probably due to a user error.
            ^
levmar-2.6/compiler.h:36:19: note: expanded from macro 'LM_FINITE'
#define LM_FINITE finite // ICC, GCC
                  ^
/usr/include/math.h:718:12: note: 'finite' has been explicitly marked deprecated here
extern int finite(double) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_9, __IPHONE_NA, __IPHONE_NA);
           ^
In file included from levmar-2.6/lm.c:54:
levmar-2.6/lm_core.c:562:7: warning: 'finite' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]
  if(!LM_FINITE(p_eL2)) stop=7;
      ^
levmar-2.6/compiler.h:36:19: note: expanded from macro 'LM_FINITE'
#define LM_FINITE finite // ICC, GCC
                  ^
/usr/include/math.h:718:12: note: 'finite' has been explicitly marked deprecated here
extern int finite(double) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_9, __IPHONE_NA, __IPHONE_NA);
           ^
In file included from levmar-2.6/lm.c:54:
levmar-2.6/lm_core.c:749:11: warning: 'finite' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]
      if(!LM_FINITE(pDp_eL2)){ /* sum of squares is not finite, most probably due to a user error.
          ^
levmar-2.6/compiler.h:36:19: note: expanded from macro 'LM_FINITE'
#define LM_FINITE finite // ICC, GCC
                  ^
/usr/include/math.h:718:12: note: 'finite' has been explicitly marked deprecated here
extern int finite(double) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_9, __IPHONE_NA, __IPHONE_NA);
           ^
In file included from levmar-2.6/lm.c:75:
levmar-2.6/lm_core.c:179:7: warning: 'finite' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]
  if(!LM_FINITE(p_eL2)) stop=7;
      ^
levmar-2.6/compiler.h:36:19: note: expanded from macro 'LM_FINITE'
#define LM_FINITE finite // ICC, GCC
                  ^
/usr/include/math.h:718:12: note: 'finite' has been explicitly marked deprecated here
extern int finite(double) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_9, __IPHONE_NA, __IPHONE_NA);
           ^
In file included from levmar-2.6/lm.c:75:
levmar-2.6/lm_core.c:354:13: warning: 'finite' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]
        if(!LM_FINITE(pDp_eL2)){ /* sum of squares is not finite, most probably due to a user error.
            ^
levmar-2.6/compiler.h:36:19: note: expanded from macro 'LM_FINITE'
#define LM_FINITE finite // ICC, GCC
                  ^
/usr/include/math.h:718:12: note: 'finite' has been explicitly marked deprecated here
extern int finite(double) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_9, __IPHONE_NA, __IPHONE_NA);
           ^
In file included from levmar-2.6/lm.c:75:
levmar-2.6/lm_core.c:562:7: warning: 'finite' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]
  if(!LM_FINITE(p_eL2)) stop=7;
      ^
levmar-2.6/compiler.h:36:19: note: expanded from macro 'LM_FINITE'
#define LM_FINITE finite // ICC, GCC
                  ^
/usr/include/math.h:718:12: note: 'finite' has been explicitly marked deprecated here
extern int finite(double) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_9, __IPHONE_NA, __IPHONE_NA);
           ^
In file included from levmar-2.6/lm.c:75:
levmar-2.6/lm_core.c:749:11: warning: 'finite' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]
      if(!LM_FINITE(pDp_eL2)){ /* sum of squares is not finite, most probably due to a user error.
          ^
levmar-2.6/compiler.h:36:19: note: expanded from macro 'LM_FINITE'
#define LM_FINITE finite // ICC, GCC
                  ^
/usr/include/math.h:718:12: note: 'finite' has been explicitly marked deprecated here
extern int finite(double) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_9, __IPHONE_NA, __IPHONE_NA);
           ^
8 warnings generated.
clang: levmar-2.6/lmbleic.c
clang: levmar-2.6/misc.c
clang: levmar-2.6/Axb.c
clang: levmar/_levmar.c
In file included from levmar/_levmar.c:240:
In file included from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4:
In file included from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17:
In file included from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1804:
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: "Using deprecated NumPy API, disable it by "          "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it by " \
 ^
In file included from levmar/_levmar.c:241:
In file included from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ufuncobject.h:317:
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/__ufunc_api.h:241:1: warning: unused function '_import_umath' [-Wunused-function]
_import_umath(void)
^
levmar/_levmar.c:15420:28: warning: unused function '__Pyx_PyObject_AsString' [-Wunused-function]
static CYTHON_INLINE char* __Pyx_PyObject_AsString(PyObject* o) {
                           ^
levmar/_levmar.c:15417:32: warning: unused function '__Pyx_PyUnicode_FromString' [-Wunused-function]
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char* c_str) {
                               ^
levmar/_levmar.c:305:29: warning: unused function '__Pyx_Py_UNICODE_strlen' [-Wunused-function]
static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u)
                            ^
levmar/_levmar.c:15532:33: warning: unused function '__Pyx_PyIndex_AsSsize_t' [-Wunused-function]
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) {
                                ^
levmar/_levmar.c:15557:33: warning: unused function '__Pyx_PyInt_FromSize_t' [-Wunused-function]
static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) {
                                ^
levmar/_levmar.c:14320:32: warning: unused function '__Pyx_GetItemInt_List_Fast' [-Wunused-function]
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i,
                               ^
levmar/_levmar.c:14967:48: warning: unused function '__pyx_t_float_complex_from_parts' [-Wunused-function]
    static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(float x, float y) {
                                               ^
levmar/_levmar.c:14977:30: warning: unused function '__Pyx_c_eqf' [-Wunused-function]
    static CYTHON_INLINE int __Pyx_c_eqf(__pyx_t_float_complex a, __pyx_t_float_complex b) {
                             ^
levmar/_levmar.c:14980:48: warning: unused function '__Pyx_c_sumf' [-Wunused-function]
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_sumf(__pyx_t_float_complex a, __pyx_t_float_complex b) {
                                               ^
levmar/_levmar.c:14986:48: warning: unused function '__Pyx_c_difff' [-Wunused-function]
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_difff(__pyx_t_float_complex a, __pyx_t_float_complex b) {
                                               ^
levmar/_levmar.c:14998:48: warning: unused function '__Pyx_c_quotf' [-Wunused-function]
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_quotf(__pyx_t_float_complex a, __pyx_t_float_complex b) {
                                               ^
levmar/_levmar.c:15005:48: warning: unused function '__Pyx_c_negf' [-Wunused-function]
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_negf(__pyx_t_float_complex a) {
                                               ^
levmar/_levmar.c:15011:30: warning: unused function '__Pyx_c_is_zerof' [-Wunused-function]
    static CYTHON_INLINE int __Pyx_c_is_zerof(__pyx_t_float_complex a) {
                             ^
levmar/_levmar.c:15014:48: warning: unused function '__Pyx_c_conjf' [-Wunused-function]
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_conjf(__pyx_t_float_complex a) {
                                               ^
levmar/_levmar.c:15028:52: warning: unused function '__Pyx_c_powf' [-Wunused-function]
        static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_powf(__pyx_t_float_complex a, __pyx_t_float_complex b) {
                                                   ^
levmar/_levmar.c:15087:49: warning: unused function '__pyx_t_double_complex_from_parts' [-Wunused-function]
    static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(double x, double y) {
                                                ^
levmar/_levmar.c:15097:30: warning: unused function '__Pyx_c_eq' [-Wunused-function]
    static CYTHON_INLINE int __Pyx_c_eq(__pyx_t_double_complex a, __pyx_t_double_complex b) {
                             ^
levmar/_levmar.c:15100:49: warning: unused function '__Pyx_c_sum' [-Wunused-function]
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_sum(__pyx_t_double_complex a, __pyx_t_double_complex b) {
                                                ^
levmar/_levmar.c:15106:49: warning: unused function '__Pyx_c_diff' [-Wunused-function]
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_diff(__pyx_t_double_complex a, __pyx_t_double_complex b) {
                                                ^
levmar/_levmar.c:15118:49: warning: unused function '__Pyx_c_quot' [-Wunused-function]
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_quot(__pyx_t_double_complex a, __pyx_t_double_complex b) {
                                                ^
levmar/_levmar.c:15125:49: warning: unused function '__Pyx_c_neg' [-Wunused-function]
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_neg(__pyx_t_double_complex a) {
                                                ^
levmar/_levmar.c:15131:30: warning: unused function '__Pyx_c_is_zero' [-Wunused-function]
    static CYTHON_INLINE int __Pyx_c_is_zero(__pyx_t_double_complex a) {
                             ^
levmar/_levmar.c:15134:49: warning: unused function '__Pyx_c_conj' [-Wunused-function]
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_conj(__pyx_t_double_complex a) {
                                                ^
levmar/_levmar.c:15148:53: warning: unused function '__Pyx_c_pow' [-Wunused-function]
        static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_pow(__pyx_t_double_complex a, __pyx_t_double_complex b) {
                                                    ^
levmar/_levmar.c:15196:27: warning: function '__Pyx_PyInt_As_long' is not needed and will not be emitted [-Wunneeded-internal-declaration]
static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) {
                          ^
levmar/_levmar.c:11416:32: warning: unused function '__pyx_f_5numpy_PyArray_MultiIterNew1' [-Wunused-function]
static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew1(PyObject *__pyx_v_a) {
                               ^
levmar/_levmar.c:11466:32: warning: unused function '__pyx_f_5numpy_PyArray_MultiIterNew2' [-Wunused-function]
static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew2(PyObject *__pyx_v_a, PyObject *__pyx_v_b) {
                               ^
levmar/_levmar.c:11516:32: warning: unused function '__pyx_f_5numpy_PyArray_MultiIterNew3' [-Wunused-function]
static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c) {
                               ^
levmar/_levmar.c:11566:32: warning: unused function '__pyx_f_5numpy_PyArray_MultiIterNew4' [-Wunused-function]
static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c, PyObject *__pyx_v_d) {
                               ^
levmar/_levmar.c:11616:32: warning: unused function '__pyx_f_5numpy_PyArray_MultiIterNew5' [-Wunused-function]
static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c, PyObject *__pyx_v_d, PyObject *__pyx_v_e) {
                               ^
levmar/_levmar.c:12379:27: warning: unused function '__pyx_f_5numpy_set_array_base' [-Wunused-function]
static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_arr, PyObject *__pyx_v_base) {
                          ^
levmar/_levmar.c:12467:32: warning: unused function '__pyx_f_5numpy_get_array_base' [-Wunused-function]
static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__pyx_v_arr) {
                               ^
34 warnings generated.
clang: levmar-2.6/lmblec.c
clang: levmar-2.6/lmbc.c
In file included from levmar-2.6/lmbc.c:57:
levmar-2.6/lmbc_core.c:297:13: warning: 'finite' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]
              if (!LM_FINITE(fpls)) {
                   ^
levmar-2.6/compiler.h:36:19: note: expanded from macro 'LM_FINITE'
#define LM_FINITE finite // ICC, GCC
                  ^
/usr/include/math.h:718:12: note: 'finite' has been explicitly marked deprecated here
extern int finite(double) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_9, __IPHONE_NA, __IPHONE_NA);
           ^
In file included from levmar-2.6/lmbc.c:57:
levmar-2.6/lmbc_core.c:438:28: warning: explicitly assigning value of variable of type 'float' to itself [-Wself-assign]
  mu=jacTe_inf=t=0.0;  tmin=tmin; /* -Wall */
                       ~~~~^~~~~
levmar-2.6/lmbc_core.c:536:7: warning: 'finite' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]
  if(!LM_FINITE(p_eL2)) stop=7;
      ^
levmar-2.6/compiler.h:36:19: note: expanded from macro 'LM_FINITE'
#define LM_FINITE finite // ICC, GCC
                  ^
/usr/include/math.h:718:12: note: 'finite' has been explicitly marked deprecated here
extern int finite(double) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_9, __IPHONE_NA, __IPHONE_NA);
           ^
In file included from levmar-2.6/lmbc.c:57:
levmar-2.6/lmbc_core.c:750:13: warning: 'finite' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]
        if(!LM_FINITE(pDp_eL2) && !LM_FINITE(VECNORM(hx, n))){
            ^
levmar-2.6/compiler.h:36:19: note: expanded from macro 'LM_FINITE'
#define LM_FINITE finite // ICC, GCC
                  ^
/usr/include/math.h:718:12: note: 'finite' has been explicitly marked deprecated here
extern int finite(double) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_9, __IPHONE_NA, __IPHONE_NA);
           ^
In file included from levmar-2.6/lmbc.c:57:
levmar-2.6/lmbc_core.c:750:36: warning: 'finite' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]
        if(!LM_FINITE(pDp_eL2) && !LM_FINITE(VECNORM(hx, n))){
                                   ^
levmar-2.6/compiler.h:36:19: note: expanded from macro 'LM_FINITE'
#define LM_FINITE finite // ICC, GCC
                  ^
/usr/include/math.h:718:12: note: 'finite' has been explicitly marked deprecated here
extern int finite(double) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_9, __IPHONE_NA, __IPHONE_NA);
           ^
In file included from levmar-2.6/lmbc.c:57:
levmar-2.6/lmbc_core.c:830:26: warning: 'finite' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]
        if(iretcd!=0 || !LM_FINITE(pDp_eL2)) goto gradproj; /* rather inelegant but effective way to handle LNSRCH() failures... */
                         ^
levmar-2.6/compiler.h:36:19: note: expanded from macro 'LM_FINITE'
#define LM_FINITE finite // ICC, GCC
                  ^
/usr/include/math.h:718:12: note: 'finite' has been explicitly marked deprecated here
extern int finite(double) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_9, __IPHONE_NA, __IPHONE_NA);
           ^
In file included from levmar-2.6/lmbc.c:57:
levmar-2.6/lmbc_core.c:917:15: warning: 'finite' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]
          if(!LM_FINITE(pDp_eL2) && !LM_FINITE(VECNORM(hx, n))){
              ^
levmar-2.6/compiler.h:36:19: note: expanded from macro 'LM_FINITE'
#define LM_FINITE finite // ICC, GCC
                  ^
/usr/include/math.h:718:12: note: 'finite' has been explicitly marked deprecated here
extern int finite(double) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_9, __IPHONE_NA, __IPHONE_NA);
           ^
In file included from levmar-2.6/lmbc.c:57:
levmar-2.6/lmbc_core.c:917:38: warning: 'finite' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]
          if(!LM_FINITE(pDp_eL2) && !LM_FINITE(VECNORM(hx, n))){
                                     ^
levmar-2.6/compiler.h:36:19: note: expanded from macro 'LM_FINITE'
#define LM_FINITE finite // ICC, GCC
                  ^
/usr/include/math.h:718:12: note: 'finite' has been explicitly marked deprecated here
extern int finite(double) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_9, __IPHONE_NA, __IPHONE_NA);
           ^
In file included from levmar-2.6/lmbc.c:79:
levmar-2.6/lmbc_core.c:297:13: warning: 'finite' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]
              if (!LM_FINITE(fpls)) {
                   ^
levmar-2.6/compiler.h:36:19: note: expanded from macro 'LM_FINITE'
#define LM_FINITE finite // ICC, GCC
                  ^
/usr/include/math.h:718:12: note: 'finite' has been explicitly marked deprecated here
extern int finite(double) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_9, __IPHONE_NA, __IPHONE_NA);
           ^
In file included from levmar-2.6/lmbc.c:79:
levmar-2.6/lmbc_core.c:438:28: warning: explicitly assigning value of variable of type 'double' to itself [-Wself-assign]
  mu=jacTe_inf=t=0.0;  tmin=tmin; /* -Wall */
                       ~~~~^~~~~
levmar-2.6/lmbc_core.c:536:7: warning: 'finite' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]
  if(!LM_FINITE(p_eL2)) stop=7;
      ^
levmar-2.6/compiler.h:36:19: note: expanded from macro 'LM_FINITE'
#define LM_FINITE finite // ICC, GCC
                  ^
/usr/include/math.h:718:12: note: 'finite' has been explicitly marked deprecated here
extern int finite(double) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_9, __IPHONE_NA, __IPHONE_NA);
           ^
In file included from levmar-2.6/lmbc.c:79:
levmar-2.6/lmbc_core.c:750:13: warning: 'finite' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]
        if(!LM_FINITE(pDp_eL2) && !LM_FINITE(VECNORM(hx, n))){
            ^
levmar-2.6/compiler.h:36:19: note: expanded from macro 'LM_FINITE'
#define LM_FINITE finite // ICC, GCC
                  ^
/usr/include/math.h:718:12: note: 'finite' has been explicitly marked deprecated here
extern int finite(double) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_9, __IPHONE_NA, __IPHONE_NA);
           ^
In file included from levmar-2.6/lmbc.c:79:
levmar-2.6/lmbc_core.c:750:36: warning: 'finite' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]
        if(!LM_FINITE(pDp_eL2) && !LM_FINITE(VECNORM(hx, n))){
                                   ^
levmar-2.6/compiler.h:36:19: note: expanded from macro 'LM_FINITE'
#define LM_FINITE finite // ICC, GCC
                  ^
/usr/include/math.h:718:12: note: 'finite' has been explicitly marked deprecated here
extern int finite(double) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_9, __IPHONE_NA, __IPHONE_NA);
           ^
In file included from levmar-2.6/lmbc.c:79:
levmar-2.6/lmbc_core.c:830:26: warning: 'finite' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]
        if(iretcd!=0 || !LM_FINITE(pDp_eL2)) goto gradproj; /* rather inelegant but effective way to handle LNSRCH() failures... */
                         ^
levmar-2.6/compiler.h:36:19: note: expanded from macro 'LM_FINITE'
#define LM_FINITE finite // ICC, GCC
                  ^
/usr/include/math.h:718:12: note: 'finite' has been explicitly marked deprecated here
extern int finite(double) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_9, __IPHONE_NA, __IPHONE_NA);
           ^
In file included from levmar-2.6/lmbc.c:79:
levmar-2.6/lmbc_core.c:917:15: warning: 'finite' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]
          if(!LM_FINITE(pDp_eL2) && !LM_FINITE(VECNORM(hx, n))){
              ^
levmar-2.6/compiler.h:36:19: note: expanded from macro 'LM_FINITE'
#define LM_FINITE finite // ICC, GCC
                  ^
/usr/include/math.h:718:12: note: 'finite' has been explicitly marked deprecated here
extern int finite(double) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_9, __IPHONE_NA, __IPHONE_NA);
           ^
In file included from levmar-2.6/lmbc.c:79:
levmar-2.6/lmbc_core.c:917:38: warning: 'finite' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]
          if(!LM_FINITE(pDp_eL2) && !LM_FINITE(VECNORM(hx, n))){
                                     ^
levmar-2.6/compiler.h:36:19: note: expanded from macro 'LM_FINITE'
#define LM_FINITE finite // ICC, GCC
                  ^
/usr/include/math.h:718:12: note: 'finite' has been explicitly marked deprecated here
extern int finite(double) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_9, __IPHONE_NA, __IPHONE_NA);
           ^
16 warnings generated.
clang: levmar-2.6/lmlec.c
clang -bundle -undefined dynamic_lookup build/temp.macosx-10.10-x86_64-2.7/levmar/_levmar.o build/temp.macosx-10.10-x86_64-2.7/levmar-2.6/lm.o build/temp.macosx-10.10-x86_64-2.7/levmar-2.6/Axb.o build/temp.macosx-10.10-x86_64-2.7/levmar-2.6/misc.o build/temp.macosx-10.10-x86_64-2.7/levmar-2.6/lmlec.o build/temp.macosx-10.10-x86_64-2.7/levmar-2.6/lmbc.o build/temp.macosx-10.10-x86_64-2.7/levmar-2.6/lmblec.o build/temp.macosx-10.10-x86_64-2.7/levmar-2.6/lmbleic.o -L/usr/local/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/sqlite/lib -o build/lib.macosx-10.10-x86_64-2.7/levmar/_levmar.so -Wl,-framework -Wl,Accelerate
kyle:levmar kyle$ python setup.py install
running install
running bdist_egg
running egg_info
writing pbr to levmar.egg-info/pbr.json
writing requirements to levmar.egg-info/requires.txt
writing levmar.egg-info/PKG-INFO
writing top-level names to levmar.egg-info/top_level.txt
writing dependency_links to levmar.egg-info/dependency_links.txt
package init file 'levmar/tests/__init__.py' not found (or not a regular file)
reading manifest file 'levmar.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'README'
warning: no previously-included files matching '.DS_Store' found anywhere in distribution
writing manifest file 'levmar.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.10-x86_64/egg
running install_lib
running build_py
running build_ext
creating build/bdist.macosx-10.10-x86_64/egg
creating build/bdist.macosx-10.10-x86_64/egg/levmar
copying build/lib.macosx-10.10-x86_64-2.7/levmar/__init__.py -> build/bdist.macosx-10.10-x86_64/egg/levmar
copying build/lib.macosx-10.10-x86_64-2.7/levmar/_levmar.so -> build/bdist.macosx-10.10-x86_64/egg/levmar
creating build/bdist.macosx-10.10-x86_64/egg/levmar/tests
copying build/lib.macosx-10.10-x86_64-2.7/levmar/tests/levmar_test.py -> build/bdist.macosx-10.10-x86_64/egg/levmar/tests
byte-compiling build/bdist.macosx-10.10-x86_64/egg/levmar/__init__.py to __init__.pyc
byte-compiling build/bdist.macosx-10.10-x86_64/egg/levmar/tests/levmar_test.py to levmar_test.pyc
creating stub loader for levmar/_levmar.so
byte-compiling build/bdist.macosx-10.10-x86_64/egg/levmar/_levmar.py to _levmar.pyc
creating build/bdist.macosx-10.10-x86_64/egg/EGG-INFO
copying levmar.egg-info/PKG-INFO -> build/bdist.macosx-10.10-x86_64/egg/EGG-INFO
copying levmar.egg-info/SOURCES.txt -> build/bdist.macosx-10.10-x86_64/egg/EGG-INFO
copying levmar.egg-info/dependency_links.txt -> build/bdist.macosx-10.10-x86_64/egg/EGG-INFO
copying levmar.egg-info/pbr.json -> build/bdist.macosx-10.10-x86_64/egg/EGG-INFO
copying levmar.egg-info/requires.txt -> build/bdist.macosx-10.10-x86_64/egg/EGG-INFO
copying levmar.egg-info/top_level.txt -> build/bdist.macosx-10.10-x86_64/egg/EGG-INFO
writing build/bdist.macosx-10.10-x86_64/egg/EGG-INFO/native_libs.txt
zip_safe flag not set; analyzing archive contents...
creating 'dist/levmar-0.2.0-py2.7-macosx-10.10-x86_64.egg' and adding 'build/bdist.macosx-10.10-x86_64/egg' to it
removing 'build/bdist.macosx-10.10-x86_64/egg' (and everything under it)
Processing levmar-0.2.0-py2.7-macosx-10.10-x86_64.egg
Removing /usr/local/lib/python2.7/site-packages/levmar-0.2.0-py2.7-macosx-10.10-x86_64.egg
Copying levmar-0.2.0-py2.7-macosx-10.10-x86_64.egg to /usr/local/lib/python2.7/site-packages
levmar 0.2.0 is already the active version in easy-install.pth

Installed /usr/local/lib/python2.7/site-packages/levmar-0.2.0-py2.7-macosx-10.10-x86_64.egg
Processing dependencies for levmar==0.2.0
Searching for numpy==1.9.2
Best match: numpy 1.9.2
Adding numpy 1.9.2 to easy-install.pth file

Using /usr/local/lib/python2.7/site-packages
Searching for nose==1.3.7
Best match: nose 1.3.7
Adding nose 1.3.7 to easy-install.pth file
Installing nosetests script to /usr/local/bin
Installing nosetests-2.7 script to /usr/local/bin

Using /usr/local/lib/python2.7/site-packages
Finished processing dependencies for levmar==0.2.0
kyle:levmar kyle$ python -c "import levmar; levmar.test()"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "levmar/__init__.py", line 6, in <module>
    import _levmar
ImportError: No module named _levmar
kyle:levmar kyle$ 
antonl commented 8 years ago

@kylemcdonald try it with my pull request #8. I had the same problem with a missing package.

EnriqueSolarte commented 3 years ago

By using directly pip install levmar works smoothly if blas and lpack lib are well installed. so run first this. sudo apt-get install libblas-dev liblapack-dev it worked for me