Unable to install python scipy in suse 11.3 -


i unable install scipy in suse 11.3.

i followed docs in link:

scipy installation

i installed:

lapack atlas 

then git clone scipy , ran python setup.py install, keep getting these errors. there steps missed?

/usr/local/lib64/python2.6/site-packages/numpy/core/include/numpy/__ufunc_api.h:241:1: warning: ‘_import_umath’ defined not used [-wunused-function]  _import_umath(void)  ^ gcc -pthread -shared build/temp.linux-x86_64-2.6/scipy/cluster/_vq.o -l/usr/local/lib64 -l/usr/lib64 -lbuild/temp.linux-x86_64-2.6 -llapack -lptf77blas -lptcblas -latlas -lpython2.6 -o build/lib.linux-x86_64-2.6/scipy/cluster/_vq.so /usr/bin/ld: /usr/local/lib64/libptf77blas.a(sgemm.o): relocation r_x86_64_32 against `.rodata' can not used when making shared object; recompile -fpic /usr/local/lib64/libptf77blas.a: not read symbols: bad value collect2: error: ld returned 1 exit status /usr/bin/ld: /usr/local/lib64/libptf77blas.a(sgemm.o): relocation r_x86_64_32 against `.rodata' can not used when making shared object; recompile -fpic /usr/local/lib64/libptf77blas.a: not read symbols: bad value collect2: error: ld returned 1 exit status error: command "gcc -pthread -shared build/temp.linux-x86_64-2.6/scipy/cluster/_vq.o -l/usr/local/lib64 -l/usr/lib64 -lbuild/temp.linux-x86_64-2.6 -llapack -lptf77blas -lptcblas -latlas -lpython2.6 -o build/lib.linux-x86_64-2.6/scipy/cluster/_vq.so" failed exit status 1 

error when installing git:

/usr/local/lib64/python2.6/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "using deprecated numpy api, disable " "#defining npy_no_deprecated_api npy_1_7_api_version" [-wcpp]   #warning "using deprecated numpy api, disable " \    ^  scipy/cluster/_vq.c: in function ‘__pyx_fuse_0__pyx_f_5scipy_7cluster_3_vq_cal_m’:  scipy/cluster/_vq.c:1538:3: warning: implicit declaration of function ‘sgemm_’ [-wimplicit-function-declaration]     f_sgemm(__pyx_k_t, __pyx_k_n, (&__pyx_v_ncodes), (&__pyx_v_nobs), (&__pyx_v_nfeat), (&__pyx_v_alpha), __pyx_v_code_book, (&__pyx_v_nfeat), __pyx_v_obs, (&__pyx_v_nfeat), (&__pyx_v_beta), __pyx_v_m, (&__pyx_v_ncodes));     ^  scipy/cluster/_vq.c: in function ‘__pyx_fuse_1__pyx_f_5scipy_7cluster_3_vq_cal_m’:  scipy/cluster/_vq.c:1575:3: warning: implicit declaration of function ‘dgemm_’ [-wimplicit-function-declaration]     f_dgemm(__pyx_k_t, __pyx_k_n, (&__pyx_v_ncodes), (&__pyx_v_nobs), (&__pyx_v_nfeat), (&__pyx_v_alpha), __pyx_v_code_book, (&__pyx_v_nfeat), __pyx_v_obs, (&__pyx_v_nfeat), (&__pyx_v_beta), __pyx_v_m, (&__pyx_v_ncodes));     ^  in file included /usr/local/lib64/python2.6/site-packages/numpy/core/include/numpy/ufuncobject.h:317:0,                   scipy/cluster/_vq.c:243:  scipy/cluster/_vq.c: @ top level:  /usr/local/lib64/python2.6/site-packages/numpy/core/include/numpy/__ufunc_api.h:241:1: warning: ‘_import_umath’ defined not used [-wunused-function]   _import_umath(void)   ^  gcc -pthread -shared build/temp.linux-x86_64-2.6/scipy/cluster/_vq.o -l/usr/local/lib64 -l/usr/lib64 -lbuild/temp.linux-x86_64-2.6 -llapack -lptf77blas -lptcblas -latlas -lpython2.6 -o build/lib.linux-x86_64-2.6/scipy/cluster/_vq.so  /usr/bin/ld: /usr/local/lib64/libptf77blas.a(sgemm.o): relocation r_x86_64_32 against `.rodata' can not used when making shared object; recompile -fpic  /usr/local/lib64/libptf77blas.a: not read symbols: bad value  collect2: error: ld returned 1 exit status  /usr/bin/ld: /usr/local/lib64/libptf77blas.a(sgemm.o): relocation r_x86_64_32 against `.rodata' can not used when making shared object; recompile -fpic  /usr/local/lib64/libptf77blas.a: not read symbols: bad value  collect2: error: ld returned 1 exit status  error: command "gcc -pthread -shared build/temp.linux-x86_64-2.6/scipy/cluster/_vq.o -l/usr/local/lib64 -l/usr/lib64 -lbuild/temp.linux-x86_64-2.6 -llapack -lptf77blas -lptcblas -latlas -lpython2.6 -o build/lib.linux-x86_64-2.6/scipy/cluster/_vq.so" failed exit status 1  ---------------------------------------- cleaning up... command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-5ylcsa-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-86pqof-record/install-record.txt --single-version-externally-managed --compile failed error code 1 in /tmp/pip-5ylcsa-build traceback (most recent call last):   file "/usr/local/bin/pip", line 8, in <module>     load_entry_point('pip==1.5.6', 'console_scripts', 'pip')()   file "/usr/local/lib64/python2.6/site-packages/pip-1.5.6-py2.6.egg/pip/__init__.py", line 185, in main     return command.main(cmd_args)   file "/usr/local/lib64/python2.6/site-packages/pip-1.5.6-py2.6.egg/pip/basecommand.py", line 161, in main     text = '\n'.join(complete_log) unicodedecodeerror: 'ascii' codec can't decode byte 0xe2 in position 51: ordinal not in range(128) 

your problem blas / atlas - version have installed , scipy trying link has not been compiled -fpic option. indicated in error message see. here discussion of issue , resolution - in summary have version static libraries (.a) rather shared libraries (.so).

note scipy install pages (their emphasis):

there no comfortable way use atlas on opensuse.

it's - can find version suitable installation on system has compiled option, use blas + lapack instead of atlas, or can compile atlas yourself. instructions on how compile are here. specifics on adding -fpic option are here.

it should noted scipy docs tell use ashigabou repositories, links broken. google reveals this repository. contents old, allow follow process on page linked exactly, think.


i noticed if download atlas sourceforge page in version > 3.9.4, can see in changelog developers:

  • added beta support auto-building shared/dynamic libraries when user passes --shared configure (no need explicitly set compiler flags [eg., -fpic] of known compilers):
    • not tested, appears work windows, os x , linux
    • now referenced in make install, present process crude
    • with --nof77, clapack reather lapack; want logical link of lapack

i.e. should able pass --shared configure build wish.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -