On Tue, 2010-04-13 at 11:04 -0400, Yaroslav Halchenko wrote:
> > Any ideas how to fix it? It seems numpy is no better...

OK I see, I just did not have this package installed. Now I stil don't
know how to create the _d.so's for numpy and I am afraid having multiple
packages shogun-dbg, shogun-python-dbg would be misleading. So a
shogun-dbg should contain the _d files for python...

If you have time to figure out how this could work - I am all yours :D

> it is just fine for me ;-)
> 
> I guess this should describe it somewhat in more details, but the idea is to
> use python*-dbg to build those libraries for -dbg package:
> 
> $> acpolicy python-numpy-dbg
> python-numpy-dbg:
>   Installed: 1:1.3.0-3+b1
>   Candidate: 1:1.3.0-3+b1
>   Version table:
>  *** 1:1.3.0-3+b1 0
>         900 http://debian.lcs.mit.edu squeeze/main Packages
>         901 http://debian.lcs.mit.edu sid/main Packages
>         100 /var/lib/dpkg/status
> 
> $> python2.5-dbg -c "import numpy"                   
> [39316 refs] 
> 
> $> strace -fF python2.5-dbg -c "import numpy" 2>&1 | grep multia
> stat("/usr/lib/python2.5/site-packages/numpy/core/multiarray", 
> 0x7fff5a5bfc10) = -1 ENOENT (No such file or directory)
> open("/usr/lib/python2.5/site-packages/numpy/core/multiarray_d.so", O_RDONLY) 
> = 8
> open("/usr/lib/python2.5/site-packages/numpy/core/multiarray_d.so", O_RDONLY) 
> = 9
> 
> $> file /usr/lib/python2.5/site-packages/numpy/core/multiarray_d.so 
> /usr/lib/python2.5/site-packages/numpy/core/multiarray.so     
> /usr/lib/python2.5/site-packages/numpy/core/multiarray_d.so: ELF 64-bit LSB 
> shared object, x86-64, version 1 (SYSV), dynamically linked, not stripped
> /usr/lib/python2.5/site-packages/numpy/core/multiarray.so:   ELF 64-bit LSB 
> shared object, x86-64, version 1 (SYSV), dynamically linked, stripped
> 
> $> ls -l /usr/lib/python2.5/site-packages/numpy/core/multiarray_d.so 
> /usr/lib/python2.5/site-packages/numpy/core/multiarray.so 
> -rw-r--r-- 1 root root  539248 Jan 25 16:29 
> /usr/lib/python2.5/site-packages/numpy/core/multiarray.so
> -rw-r--r-- 1 root root 1658152 Jan 25 16:28 
> /usr/lib/python2.5/site-packages/numpy/core/multiarray_d.so
> 
> $> dpkg -L python-numpy-dbg | grep _d.so
> /usr/lib/python2.5/site-packages/numpy/core/_sort_d.so
> /usr/lib/python2.5/site-packages/numpy/core/multiarray_d.so
> /usr/lib/python2.5/site-packages/numpy/core/umath_d.so
> /usr/lib/python2.5/site-packages/numpy/core/scalarmath_d.so
> /usr/lib/python2.5/site-packages/numpy/core/_dotblas_d.so
> /usr/lib/python2.5/site-packages/numpy/core/umath_tests_d.so
> /usr/lib/python2.5/site-packages/numpy/lib/_compiled_base_d.so
> /usr/lib/python2.5/site-packages/numpy/numarray/_capi_d.so
> /usr/lib/python2.5/site-packages/numpy/fft/fftpack_lite_d.so
> /usr/lib/python2.5/site-packages/numpy/linalg/lapack_lite_d.so
> /usr/lib/python2.5/site-packages/numpy/random/mtrand_d.so
> /usr/lib/python2.6/dist-packages/numpy/core/_sort_d.so
> /usr/lib/python2.6/dist-packages/numpy/core/multiarray_d.so
> /usr/lib/python2.6/dist-packages/numpy/core/umath_d.so
> /usr/lib/python2.6/dist-packages/numpy/core/scalarmath_d.so
> /usr/lib/python2.6/dist-packages/numpy/core/_dotblas_d.so
> /usr/lib/python2.6/dist-packages/numpy/core/umath_tests_d.so
> /usr/lib/python2.6/dist-packages/numpy/lib/_compiled_base_d.so
> /usr/lib/python2.6/dist-packages/numpy/numarray/_capi_d.so
> /usr/lib/python2.6/dist-packages/numpy/fft/fftpack_lite_d.so
> /usr/lib/python2.6/dist-packages/numpy/linalg/lapack_lite_d.so
> /usr/lib/python2.6/dist-packages/numpy/random/mtrand_d.so
> 
> novo:/tmp
> $> dpkg -L shogun-dbg | grep _d.so
> 
> 
> > python2.5-dbg -c "import numpy"
> > Traceback (most recent call last):
> >   File "<string>", line 1, in <module>
> >   File "/usr/lib/python2.5/site-packages/numpy/__init__.py", line 130, in 
> > <module>
> >     import add_newdocs
> >   File "/usr/lib/python2.5/site-packages/numpy/add_newdocs.py", line 9, in 
> > <module>
> >     from lib import add_newdoc
> >   File "/usr/lib/python2.5/site-packages/numpy/lib/__init__.py", line 4, in 
> > <module>
> >     from type_check import *
> >   File "/usr/lib/python2.5/site-packages/numpy/lib/type_check.py", line 8, 
> > in <module>
> >     import numpy.core.numeric as _nx
> >   File "/usr/lib/python2.5/site-packages/numpy/core/__init__.py", line 5, 
> > in <module>
> >     import multiarray
> > ImportError: /usr/lib/python2.5/site-packages/numpy/core/multiarray.so: 
> > undefined symbol: Py_InitModule4_64
> > [7416 refs]
> 
> 
> > On Tue, 2010-04-13 at 09:06 -0400, Yaroslav Halchenko wrote:
> > > d'oh -- I didn't mention that that one includes dyn libraries for
> > > everything (including python)... but unfortunately, doesn't work:
> 
> > > $> python2.5-dbg -c 'import shogun.Classifier'                            
> > >    
> > > Fatal Python error: Interpreter not initialized (version mismatch?)
> > > zsh: abort      python2.5-dbg -c 'import shogun.Classifier'
> 
> > > does it work for you? ;)
> 
> > > On Tue, 13 Apr 2010, Soeren Sonnenburg wrote:
> 
> > > > On Mon, 2010-04-12 at 23:41 -0400, Yaroslav Halchenko wrote:
> > > > > Package: shogun-python-modular
> > > > > Version: 0.9.2-1
> > > > > Severity: wishlist
> 
> > > > what is wrong with the shogun-dbg package?
> 
> 
> > Soeren

Soeren
-- 
For the one fact about the future of which we can be certain is that it
will be utterly fantastic. -- Arthur C. Clarke, 1962

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to