Your message dated Tue, 9 Dec 2008 09:31:53 +0100
with message-id <[EMAIL PROTECTED]>
and subject line Re: Bug#495457: python-numpy: Error while loading a library
has caused the Debian Bug report #495457,
regarding python-numpy: Error while loading a library
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)
--
495457: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=495457
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
On Mon, Aug 18, 2008 at 1:02 PM, Ondrej Certik <[EMAIL PROTECTED]> wrote:
> On Sun, Aug 17, 2008 at 6:13 PM, Christophe Combelles <[EMAIL PROTECTED]>
> wrote:
>> This is actually fixed in numpy 1.1.1, and the diff is attached.
>
> I just uploaded the new numpy 1.1.1, let me know if this is fixed and
> if it is ok to close this issue.
Closing the issue, as I think it is fixed. Please reopen if the
problem still persists.
Ondrej
--- End Message ---
_______________________________________________
Python-modules-team mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/python-modules-team