Date: Wed, 28 Jan 2015 11:19:50 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 188382] graphics/mypaint fails to run: ImportError: numpy.core.multiarray failed to import Message-ID: <bug-188382-13-4KP5oVNjnN@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-188382-13@https.bugs.freebsd.org/bugzilla/> References: <bug-188382-13@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=188382 --- Comment #6 from Jan Beich <jbeich@FreeBSD.org> --- Bugzilla conversion ate comment 0 while comment 2 failed to provide an example. Without same RPATH as py-numpy runtime linker loads old libgcc_s first which leads to: $ pkg info -l mypaint | fgrep .so | xargs readelf -d | fgrep gcc_s 0x0000000000000001 (NEEDED) Shared library: [libgcc_s.so.1] $ LD_PRELOAD=/lib/libgcc_s.so.1 python -c 'import numpy' Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/local/lib/python2.7/site-packages/numpy/__init__.py", line 170, in <module> from . import add_newdocs File "/usr/local/lib/python2.7/site-packages/numpy/add_newdocs.py", line 13, in <module> from numpy.lib import add_newdoc File "/usr/local/lib/python2.7/site-packages/numpy/lib/__init__.py", line 18, in <module> from .polynomial import * File "/usr/local/lib/python2.7/site-packages/numpy/lib/polynomial.py", line 19, in <module> from numpy.linalg import eigvals, lstsq, inv File "/usr/local/lib/python2.7/site-packages/numpy/linalg/__init__.py", line 51, in <module> from .linalg import * File "/usr/local/lib/python2.7/site-packages/numpy/linalg/linalg.py", line 29, in <module> from numpy.linalg import lapack_lite, _umath_linalg ImportError: /usr/lib/libgcc_s.so: version GCC_4.6.0 required by /usr/local/lib/gcc49/libgfortran.so.3 not found $ LD_PRELOAD=/lib/libgcc_s.so.1 mypaint ImportError: numpy.core.multiarray failed to import We are not correctly installed or compiled! script: "/usr/local/bin/mypaint" deduced prefix: "/usr/local" lib_shared: "/usr/local/share/mypaint/" lib_compiled: "/usr/local/lib/mypaint/" Traceback (most recent call last): File "/usr/local/bin/mypaint", line 170, in <module> datapath, extradata, confpath, localepath, localepath_brushlib = get_paths() File "/usr/local/bin/mypaint", line 111, in get_paths from lib import mypaintlib File "/usr/local/share/mypaint/lib/mypaintlib.py", line 25, in <module> _mypaintlib = swig_import_helper() File "/usr/local/share/mypaint/lib/mypaintlib.py", line 17, in swig_import_helper import _mypaintlib ImportError: numpy.core.multiarray failed to import -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-188382-13-4KP5oVNjnN>