Package: python-numpy Version: 1:1.1.0-3 Severity: normal
I get an error while trying to 'import svm'. libsvm is installed from source: http://scipy.org/svn/scikits/trunk/scikits/learn/scikits/learn/machine/svm/ >>> import svm Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.5/site-packages/svm/__init__.py", line 62, in <module> from classification import * File "/usr/lib/python2.5/site-packages/svm/classification.py", line 5, in <module> from model import Model File "/usr/lib/python2.5/site-packages/svm/model.py", line 3, in <module> from dataset import PrecomputedDataSet File "/usr/lib/python2.5/site-packages/svm/dataset.py", line 3, in <module> import libsvm File "/usr/lib/python2.5/site-packages/svm/libsvm.py", line 15, in <module> _libsvm = N.ctypeslib.load_library('libsvm_%s' % so_ext, __file__) File "/usr/lib/python2.5/site-packages/numpy/ctypeslib.py", line 48, in load_library for ln in libname_ext: UnboundLocalError: local variable 'libname_ext' referenced before assignment In numpy/ctypeslib.py, libname_ext is defined in a within a 'if' statement: if '.' not in libname If the condition is not satisfied, libname_ext is not defined although it is used on line 48, thus leading to the error. In my case, the name of the lib is 'libsvm_.so'. -- System Information: Debian Release: lenny/sid APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.24-1-686 (SMP w/2 CPU cores) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages python-numpy depends on: ii libblas3gf [libblas.so.3gf] 1.2-2 Basic Linear Algebra Subroutines 3 ii libc6 2.7-13 GNU C Library: Shared libraries ii libgcc1 1:4.3.1-2 GCC support library ii libgfortran3 4.3.1-2 Runtime library for GNU Fortran ap ii liblapack3gf [liblapack.so.3g 3.1.1-1 library of linear algebra routines ii python 2.5.2-2 An interactive high-level object-o ii python-central 0.6.8 register and build utility for Pyt python-numpy recommends no packages. Versions of packages python-numpy suggests: pn python-numpy-dbg <none> (no description available) pn python-numpy-doc <none> (no description available) -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]