Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 May 2012 15:42:17 +0100
From:      Geoffrey Mainland <mainland@apeiron.net>
To:        freebsd-ports@freebsd.org
Cc:        freebsd-ports@freebsd.org
Subject:   Re: install py-matplotlib fails
Message-ID:  <4FB26B49.2020208@apeiron.net>
In-Reply-To: <CAKgQ7U%2B7hovfRrW5n5OHFoaggwKtnp2zzFU_EDMbJfAbAm7WFQ@mail.gmail.com>
References:  <CAKgQ7U%2B7hovfRrW5n5OHFoaggwKtnp2zzFU_EDMbJfAbAm7WFQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 05/13/2012 01:02, Norman Khine wrote:
> Hello, I am trying to install the py-matplotlib but get this error:
> 
> BUILDING MATPLOTLIB
>             matplotlib: 1.0.1
>                 python: 2.7.3 (default, May 12 2012, 17:36:49)  [GCC 4.2.1
>                         20070831 patched [FreeBSD]]
>               platform: freebsd9
> 
> REQUIRED DEPENDENCIES
>                  numpy: no
>                         * You must install numpy 1.1 or later to build
>                         * matplotlib.
> 
> i have installed numpy
> 
> # pkg_version -v | grep py27-numpy
> py27-numpy-1.6.1_1,1                =   up-to-date with port
> 
> but running python i get this traceback:
> 
> Python 2.7.3 (default, May 12 2012, 17:36:49)
> [GCC 4.2.1 20070831 patched [FreeBSD]] on freebsd9
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import numpy
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "/usr/local/lib/python2.7/site-packages/numpy/__init__.py",
> line 137, in <module>
>     import add_newdocs
>   File "/usr/local/lib/python2.7/site-packages/numpy/add_newdocs.py",
> line 9, in <module>
>     from numpy.lib import add_newdoc
>   File "/usr/local/lib/python2.7/site-packages/numpy/lib/__init__.py",
> line 13, in <module>
>     from polynomial import *
>   File "/usr/local/lib/python2.7/site-packages/numpy/lib/polynomial.py",
> line 17, in <module>
>     from numpy.linalg import eigvals, lstsq
>   File "/usr/local/lib/python2.7/site-packages/numpy/linalg/__init__.py",
> line 48, in <module>
>     from linalg import *
>   File "/usr/local/lib/python2.7/site-packages/numpy/linalg/linalg.py",
> line 23, in <module>
>     from numpy.linalg import lapack_lite
> ImportError: /usr/local/lib/libalapack.so.2: Undefined symbol "cblas_zswap"
> 
> i followed this thread
> http://forums.freebsd.org/showthread.php?t=29085 but still no luck.
> 
> what am i missing?
> 
> thanks

I've seen numpy fail when installed from a post-GCC 4.5-removal ports
tree on a system that has ports that were built from a pre-GCC
4.5-removal ports tree. Mixing the two is bad news.

What has worked for some: completely remove numpy, gcc 4.5 *and* gcc
4.6, lapack and blas. Then reinstall numpy and see if "import numpy" works.

If that doesn't work, the only thing I can recommend is a port rebuild.
Sorry :/

Geoff




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FB26B49.2020208>