ipython / numpy / scipy weirdness

John W. O'Brien john at saltant.com
Tue May 26 13:00:48 UTC 2015


On 5/22/15 9:57 PM, Johannes Jost Meixner wrote:
> Trying my hand at Data SCIENCE (tm) with a combination of ipython
> notebooks and numpy/scipy, I seem to have stumbled upon weirdness we
> already considered fixed:
> 
> ImportError: /lib/libgcc_s.so.1: version GCC_4.6.0 required by
> /usr/local/lib/gcc48/libgfortran.so.3 not found
> 
> Supposedly, we have a commit to show for fixing it in
> https://svnweb.freebsd.org/ports?view=revision&revision=369447,
> 
> and yet... I can't get numpy nor scipy to work *without* the following:
> 
[patch]
> % ipython notebook     (new site opens in a browser)
> 
>   create a notebook
>   write into it, 'import numpy'
>   write into it, 'import scipy
> 
>   run the notebook (hit the 'play' button)

I am afraid to say that I fail to reproduce this problem.

    % ipython --no-banner

    In [1]: import numpy

    In [2]: import scipy

    In [3]:
    Do you really want to exit ([y]/n)? y
    % pkg info -x "numpy|scipy|ipython"
    py27-ipython-3.1.0
    py27-numpy-1.9.2,1
    py27-scipy-0.15.1_1

I built fresh copies of numpy and scipy [0] for this test. You can see
in the build logs that LDFLAGS already includes

    -Wl,-rpath=/usr/local/lib/gcc48

for both ports.

There is some more related background discussion that you may recall
from this list about a year ago [1]. I was not able to reproduce it then
either, but I did report some possibly-helpful diagnostics.

[0]
https://pkg.saltant.net/poudriere/101amd64-default-python27/2015-05-26_08h25m36s/build.html
[1] https://lists.freebsd.org/pipermail/freebsd-python/2014-May/006937.html

All the best,
John

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-python/attachments/20150526/33a557c4/attachment.sig>


More information about the freebsd-python mailing list