CVXOPT - Pythonxy- Windows XP 64-bits

264 views
Skip to first unread message

Computer Vision Guy

unread,
Nov 3, 2009, 9:56:01 PM11/3/09
to CVXOPT
Hi,

I am having some difficulties using cvxopt especially, cvxopt +
nuclear norm minimization code,

Here are the steps that I followed to install cvxopt on pythonxy

current pythonxy comes with python 2.6 and cvxopt requires python 2.5
in the webpage of pythonxy there is no direct link to previous
versions of the software but luckily i found the previous software in
googlecode and tried to guess which packages it requires and
downloaded them manually and finally i made pythonxy running on python
2.5, i downloaded cvxopt and installed it and further more i installed
nucnrm scripts from http://abel.ee.ucla.edu/cvxopt/applications/nucnrm/index.html

i am trying to run ex_sysid.py but this code always gives me an error
at nucnrm.py where it calls

lapack.lacpy(...)

stating module has no attribute such as lacpy or whatever

I checked inside of lapack object it doesnt have lacpy but it should
have slacpy dlacpy ... i changed it to one of these again the same
story i tried to rund a simpler code from cvxopt page which is

---------
from cvxopt import matrix, lapack
A = matrix([ [6., 6., 19., 6.], [-5., 3., -2., -10.], [4., -4., 7.,
-5] ])
m, n = A.size
tau = matrix(0.0, (n,1))
lapack.geqrf(A, tau)
print A[:n, :] # Upper triangular part is R.
Q1 = +A
lapack.orgqr(Q1, tau)
print Q1
Q = matrix(0.0, (m,m))
Q[:, :n] = A
lapack.orgqr(Q, tau)
print Q
--------------

here it gives the same error at "lapack.orgqr" so what might be wrong?
i thought maybe i should compile cvxopt by myself in windows but it is
a really pain in the ass.

I appreciate any kind of help thanks!

Musti

Lieven Vandenberghe

unread,
Nov 3, 2009, 11:51:05 PM11/3/09
to CVXOPT


Can you check your cvxopt version number? The nuclear norm example
requires 1.1.1. (The functions lapack.lacpy and lapack.orgqr were
added in 1.1.1.)

Lieven


On Nov 3, 6:56 pm, Computer Vision Guy
<hacettepeli.muhen...@gmail.com> wrote:
> Hi,
>
> I am having some difficulties using cvxopt especially, cvxopt +
> nuclear norm minimization code,
>
> Here are the steps that I followed to install cvxopt on pythonxy
>
> current pythonxy comes with python 2.6 and cvxopt requires python 2.5
> in the webpage of pythonxy there is no direct link to previous
> versions of the software but luckily i found the previous software in
> googlecode and tried to guess which packages it requires and
> downloaded them manually and finally i made pythonxy running on python
> 2.5, i downloaded cvxopt and installed it and further more i installed
> nucnrm scripts fromhttp://abel.ee.ucla.edu/cvxopt/applications/nucnrm/index.html

Joachim Dahl

unread,
Nov 4, 2009, 2:15:22 AM11/4/09
to cvx...@googlegroups.com
We will soon release a new version with Windows 32bit installers for both
Python 2.5 and Python 2.6.

We probably won't support 64 bit versions on Windows anytime soon.

Joachim

Computer Vision Guy skrev:

Computer Vision Guy

unread,
Nov 4, 2009, 2:19:51 PM11/4/09
to CVXOPT
cvxopt version number was 1.1.1 and it seems not working, I checked
http://abel.ee.ucla.edu/src/Win32-binaries/ where there is
cvxopt-1.2.win32-py2.5.exe with that I could be able to run

from cvxopt import matrix, lapack
A = matrix([ [6., 6., 19., 6.], [-5., 3., -2., -10.], [4., -4., 7.,
-5] ])
m, n = A.size
tau = matrix(0.0, (n,1))
lapack.geqrf(A, tau)
print A[:n, :] # Upper triangular part is R.
Q1 = +A
lapack.orgqr(Q1, tau)
print Q1
Q = matrix(0.0, (m,m))
Q[:, :n] = A
lapack.orgqr(Q, tau)
print Q

but when I run nucnrm example this time windows gives a run time error
when I try to run it

On Nov 3, 11:51 pm, Lieven Vandenberghe

Joachim Dahl

unread,
Nov 4, 2009, 2:25:06 PM11/4/09
to cvx...@googlegroups.com
I suspect something is wrong with that version, so I deleted it from
the server.

We will release a new version soon, which includes several bugfixes.

Best regards
Joachim

Computer Vision Guy

unread,
Nov 4, 2009, 2:54:33 PM11/4/09
to CVXOPT
Thanks Joachim and Dr. Vandenberghe

With some tricks I made it work i am fishy if it is bug-free but at
least I could be able to run ex_sysid.py

here is the steps that I followed

completely removed anything related to python and pythonxy

I downloaded the lastest version of pythonxy working on python 2.6

then from

http://abel.ee.ucla.edu/src/Win32-binaries/

I downloaded cvxopt-1.1.x.win32-py2.6.exe

and set it up and tried to run the script this time it worked without
anyproblem for ex_sysid.py

One last request from Dr. Vandenberghe I checked your paper everything
is fine for me up to certain point afterward it gets too complicated
to figure out how to write a code for the nucnrm function which you
have python version, If you have a pseudo code for this function it
would be great I might try writing a MATLAB version of the code for
hankel rank minimization using CVX anyway thanks both of your for your
input.

Cheers from Boston

ayazo...@neu.edu

Musti

Lieven Vandenberghe

unread,
Nov 8, 2009, 11:41:33 PM11/8/09
to CVXOPT

We do not have detailed pseudocode but the algorithm follows the
outline in lecture 17 of

http://www.ee.ucla.edu/~vandenbe/ee236c.html

combined with the method from the paper to solve the Newton equations.

Best regards,

Lieven




On Nov 4, 11:54 am, Computer Vision Guy
> ayazogl...@neu.edu
>
> Musti
Reply all
Reply to author
Forward
0 new messages