![](https://secure.gravatar.com/avatar/6a2a454191fa75d4114ed05836a0b924.jpg?s=120&d=mm&r=g)
[Originally posted to g.c.p.user...] Hi all, In the newest incarnation of scipy_core, I am having trouble with the cholesky(a) routine: /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/linalg/basic_lite.py in cholesky_decomposition(a) 115 else: 116 lapack_routine = lapack_lite.dpotrf --> 117 results = lapack_routine('L', n, a, m, 0) 118 if results['info'] > 0: 119 raise LinAlgError, 'Matrix is not positive definite - Cholesky decomposition cannot be computed' LapackError: Parameter a is not contiguous in lapack_lite.dpotrf But this isn't true; I get this error even when I pass trivial and contiguous matrices such as the output of identity(). Other linalg routines (included complicated ones like singular_value_decomp) seem to work fine. Any ideas? Andrew
![](https://secure.gravatar.com/avatar/cd1e42e08e72711ad93d1e376ff26df4.jpg?s=120&d=mm&r=g)
Dear list, does anyone understand importing modules? I want to import a new version of Numeric(24.2) that was installed in my home directory, but the old one in /usr/lib/python/site-packages gets imported. The command "python setup.py --install=~" was used to install. And ~/lib/python is the first item in my PYTHONPATH variable. So the contents of sys.path is ['','~/lib/python', ...] Does anyone know any means to get the new version imported? Except from deleting the old version of course;) Regards, Joost
![](https://secure.gravatar.com/avatar/39916bae984cb93b797efd2b175f59c0.jpg?s=120&d=mm&r=g)
On Tue, 22 Nov 2005, Joost van Evert apparently wrote:
does anyone understand importing modules? I want to import a new version of Numeric(24.2) that was installed in my home directory, but the old one in /usr/lib/python/site-packages gets imported.
The command "python setup.py --install=~" was used to install. And ~/lib/python is the first item in my PYTHONPATH variable. So the contents of sys.path is ['','~/lib/python', ...]
Does anyone know any means to get the new version imported? Except from deleting the old version of course;)
http://docs.python.org/tut/node8.html section 6.1.1 hth, Alan Isaac
participants (3)
-
Alan G Isaac
-
Andrew Jaffe
-
Joost van Evert