getting error while running an example

77 views
Skip to first unread message

supr...@gmail.com

unread,
Jun 10, 2009, 10:06:15 AM6/10/09
to CVXOPT
While running an example from chap8,I am getting this error.

Traceback (most recent call last):
File "sdp", line 5, in <module>
from cvxopt import matrix, solvers
File "/usr/local/lib/python2.6/site-packages/cvxopt/__init__.py",
line 30, in <module>
import base
ImportError: /usr/local/lib/python2.6/site-packages/cvxopt/base.so:
undefined symbol: dgemv_

Any answer is appreciated.

Joachim Dahl

unread,
Jun 10, 2009, 1:45:22 PM6/10/09
to cvx...@googlegroups.com
this means there was a problem with BLAS. What platform are you
compiling CVXOPT for?

On a Linux platform it could be that you need to install development
versions of the BLAS and LAPACK libraries (in addition to the libraries
themselves). On Windows, it's possibly that you need to change the
build variable 'BLAS_NOUNDERSCORES' in the CVXOPT installation
script 'src/setup.py'.

Joachim

Supriyomaji

unread,
Jun 10, 2009, 1:54:07 PM6/10/09
to cvx...@googlegroups.com
I am using Linux.Where can I get those development versions.
--
Thanks & Regards

Supriyo Maji
Graduate Student
Design Automation of Analog VLSI Research Group
Department of E&ECE
IIT Kharagpur,India

Joachim Dahl

unread,
Jun 10, 2009, 2:21:05 PM6/10/09
to cvx...@googlegroups.com
That depends on the version of linux. On Debian/Ubuntu, you use
the package manager aptitude.

Linking against BLAS/LAPACK or ATLAS is the most frequently
reported problem for building CVXOPT, but if you have
the right libraries installed it is actually straightforward.

The prerequisites may vary from platform to platform, and we
cannot help you with those (unless you use Ubuntu, which
we use for developing CVXOPT).

Is it not possible for you to use a precompiled version of CVXOPT?
As we mention on the CVXOPT homepage, such versions are available
on virtually all larger Linux distributions...

Joachim

Supriyomaji

unread,
Jun 10, 2009, 2:38:18 PM6/10/09
to cvx...@googlegroups.com
I tried it on red hat enterprise linux for which no precompiled
version of cvxopt is available.
Ok.

I will try on ubuntu.

Supriyomaji

unread,
Jun 15, 2009, 1:11:05 AM6/15/09
to cvx...@googlegroups.com
I am facing the same problem in ubuntu also.Could you please give me
the link of ATLAS & python packages required for cvxopt installation.

Martin

unread,
Jun 15, 2009, 2:21:14 AM6/15/09
to CVXOPT
On Ubuntu you can install cvxopt directly from the terminal:
sudo apt-get install python-cvxopt

If this for some reason does not work or if you want to compile cvxopt
yourself, you will need libblas-dev and liblapack-dev. You can install
these libraries from the terminal as follows:
sudo apt-get install liblapack-dev libblas-dev

(I'm not sure if you also need libatlas-headers and/or libatlas-base-
dev.)

On Jun 14, 10:11 pm, Supriyomaji <supriy...@gmail.com> wrote:
> I am facing the same problem in ubuntu also.Could you please give me
> the link of ATLAS & python packages required for cvxopt installation.
>
>
>
>
>
> On Thu, Jun 11, 2009 at 12:08 AM, Supriyomaji<supriy...@gmail.com> wrote:
> > I tried it on red hat enterprise linux for which no precompiled
> > version of cvxopt is available.
> > Ok.
>
> > I will try on ubuntu.
>
> > On Wed, Jun 10, 2009 at 11:51 PM, Joachim Dahl<dahl.joac...@gmail.com> wrote:
>
> >> That depends on the version of linux.   On Debian/Ubuntu, you use
> >> the package manager aptitude.
>
> >> Linking against BLAS/LAPACK or ATLAS is the most frequently
> >> reported problem for building CVXOPT,  but if you have
> >> the right libraries installed it is actually straightforward.
>
> >> The prerequisites may vary from platform to platform,  and we
> >> cannot help you with those (unless you use Ubuntu, which
> >> we use for developing CVXOPT).
>
> >> Is it not possible for you to use a precompiled version of CVXOPT?
> >> As we mention on the CVXOPT homepage,  such versions are available
> >> on virtually all larger Linux distributions...
>
> >> Joachim
>
> >> Supriyomaji wrote:
> >>> I am using Linux.Where can I get those development versions.
>
> >>> On Wed, Jun 10, 2009 at 11:15 PM, Joachim Dahl<dahl.joac...@gmail.com> wrote:
>
> >>>> this means there was a problem with BLAS.  What platform are you
> >>>> compiling CVXOPT for?
>
> >>>> On a Linux platform it could be that you need to install development
> >>>> versions of the BLAS and LAPACK libraries (in addition to the libraries
> >>>> themselves).   On Windows, it's possibly that you need to change the
> >>>> build variable 'BLAS_NOUNDERSCORES' in the CVXOPT installation
> >>>> script 'src/setup.py'.
>
> >>>> Joachim
>

Joachim Dahl

unread,
Jun 15, 2009, 2:38:55 AM6/15/09
to cvx...@googlegroups.com
On Ubuntu you can install the necessary libraries for building
CVXOPT as:

$ sudo apt-get build-dep python-cvxopt

After that it should be easy to compile CVXOPT from source.
But I would recommend using the binary version shipped
with Ubuntu.

Joachim
Reply all
Reply to author
Forward
0 new messages