From owner-freebsd-python@freebsd.org Mon Jan 4 22:49:04 2016 Return-Path: Delivered-To: freebsd-python@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E13A4A61B69 for ; Mon, 4 Jan 2016 22:49:04 +0000 (UTC) (envelope-from karly@kipshouse.net) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id B380319F0 for ; Mon, 4 Jan 2016 22:49:04 +0000 (UTC) (envelope-from karly@kipshouse.net) Received: by mailman.ysv.freebsd.org (Postfix) id B15C6A61B68; Mon, 4 Jan 2016 22:49:04 +0000 (UTC) Delivered-To: python@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B0F0CA61B67 for ; Mon, 4 Jan 2016 22:49:04 +0000 (UTC) (envelope-from karly@kipshouse.net) Received: from mgmt.ironboy.kipshouse.net (ironboy.kipshouse.net [IPv6:2001:470:835a:4242::42]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "mx.kipshouse.net", Issuer "Starfield Secure Certificate Authority - G2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 6816519EF for ; Mon, 4 Jan 2016 22:49:04 +0000 (UTC) (envelope-from karly@kipshouse.net) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=kipshouse.org; i=@kipshouse.org; q=dns/txt; s=kh-ss; t=1451947745; x=1483483745; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; z=Date:=20Mon,=204=20Jan=202016=2014:36:03=20-0800|From: =20Karl=20Young=20|To:=20Olivier=20D uchateau=20|Cc:=20"Mikhail =20T."=20,=20python@FreeBSD.or g|Subject:=20Re:=20numpy=20would=20not=20load:=20libgcc_s =20vs.=20libgfortran|Message-ID:=20<20160104223603.GI8337 @mailboy.kipshouse.net>|References:=20<568AA168.5090400@a ldan.algebra.com>=0D=0A=20<20160104193453.2ae62e7a01ab0a0 cd845e296@gmail.com>=0D=0A=20<568AC046.8040300@aldan.alge bra.com>=0D=0A=20<20160104213150.4e47df03583e70cef356a51d @gmail.com>=0D=0A=20<568AE454.6010604@aldan.algebra.com> =0D=0A=20<20160104231757.f39b2af4ec3e5a54a14065be@gmail.c om>|MIME-Version:=201.0|In-Reply-To:=20<20160104231757.f3 9b2af4ec3e5a54a14065be@gmail.com>; bh=lFJm++HNj3vGdsP/1KmwKExwq/DwJo+s+UANua+tTXY=; b=PzFDIkhpfaWApRkEVAtVdcwXc3dMWgGPHypuDoIfSPa/F7yKcRqOynYN Le2JoaY6j9TjdRfb9EympPUyHx/AATIqHaR+9krz//fvLcnjB9bnlU6rC d/eJzsLJERq2rU9AJLA+9TmmToQldnworJV/dhNjiEhmyYrH27gtX1BX8 DD4kPVut8FtLk+HZBluFV/6TRyHIRk6NQdYqjr750wMOD4K1zcI7BGs6r GY6HzRho1/zRUkqEibdyVp0dCutHYSFPpzfDmehRy5wqXaxZYVZbsQEmh msAjIZxwqMhyGVwP/5CN19aSk+o+JHYvboAz+MwMGeDdaMOx3+vOHyJtK A==; Authentication-Results: d2.ironport.kipshouse.net; dkim=neutral (message not signed) header.i=none Received-SPF: None (d2.ironport.kipshouse.net: no sender authenticity information available from domain of karly@kipshouse.org) identity=pra; client-ip=2001:470:835a:1010::26; receiver=d2.ironport.kipshouse.net; envelope-from="karly@kipshouse.net"; x-sender="karly@kipshouse.org"; x-conformance=sidf_compatible Received-SPF: None (d2.ironport.kipshouse.net: no sender authenticity information available from domain of karly@kipshouse.net) identity=mailfrom; client-ip=2001:470:835a:1010::26; receiver=d2.ironport.kipshouse.net; envelope-from="karly@kipshouse.net"; x-sender="karly@kipshouse.net"; x-conformance=sidf_compatible Received-SPF: None (d2.ironport.kipshouse.net: no sender authenticity information available from domain of postmaster@mailboy.kipshouse.net) identity=helo; client-ip=2001:470:835a:1010::26; receiver=d2.ironport.kipshouse.net; envelope-from="karly@kipshouse.net"; x-sender="postmaster@mailboy.kipshouse.net"; x-conformance=sidf_compatible X-SBRS: None X-MID: 186332 X-RemoteIP: 2001:470:835a:1010::26 X-RemoteHost: 2001:470:835a:1010::26, mailboypriv.kipshouse.net X-IronPort-AV: E=McAfee;i="5700,7163,8034"; a="186332" Received: from mailboypriv.kipshouse.net (HELO mailboy.kipshouse.net) ([IPv6:2001:470:835a:1010::26]) by d2.ironport.kipshouse.net with ESMTP; 04 Jan 2016 14:48:50 -0800 Received: by mailboy.kipshouse.net (Postfix, from userid 500) id 7E22C43770; Mon, 4 Jan 2016 14:36:03 -0800 (PST) Date: Mon, 4 Jan 2016 14:36:03 -0800 From: Karl Young To: Olivier Duchateau Cc: "Mikhail T." , python@FreeBSD.org Subject: Re: numpy would not load: libgcc_s vs. libgfortran Message-ID: <20160104223603.GI8337@mailboy.kipshouse.net> References: <568AA168.5090400@aldan.algebra.com> <20160104193453.2ae62e7a01ab0a0cd845e296@gmail.com> <568AC046.8040300@aldan.algebra.com> <20160104213150.4e47df03583e70cef356a51d@gmail.com> <568AE454.6010604@aldan.algebra.com> <20160104231757.f39b2af4ec3e5a54a14065be@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160104231757.f39b2af4ec3e5a54a14065be@gmail.com> X-Arbitrary-Number-Of-The-Day: 42 X-URL: http://www.kipshouse.org/karly X-Work-URL: http://www.cisco.com/ X-Disclaimer: My opinions do not necessarily represent those of my employer. User-Agent: Mutt/1.5.20 (2009-12-10) X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jan 2016 22:49:05 -0000 Olivier Duchateau(duchateau.olivier@gmail.com)@2016.01.04 23:17:57 +0000: > On Mon, 04 Jan 2016 16:29:56 -0500 > "Mikhail T." wrote: > > > On 04.01.2016 16:31, Olivier Duchateau wrote: > > > After all it's perhaps Numpy's problem, but nobody reported this issue. > > Well, I decided to try figuring this out myself and got the following > > error from a very simply one line script consisting of "import numpy;": > > > > Traceback (most recent call last): > > File "tn.py", line 1, in > > import numpy; > > File "/opt/lib/python2.7/site-packages/numpy/__init__.py", line > > 180, in > > from . import add_newdocs > > File "/opt/lib/python2.7/site-packages/numpy/add_newdocs.py", line > > 13, in > > from numpy.lib import add_newdoc > > File "/opt/lib/python2.7/site-packages/numpy/lib/__init__.py", > > line 8, in > > from .type_check import * > > File "/opt/lib/python2.7/site-packages/numpy/lib/type_check.py", > > line 11, in > > import numpy.core.numeric as _nx > > File "/opt/lib/python2.7/site-packages/numpy/core/__init__.py", > > line 14, in > > from . import multiarray > > ImportError: > > /opt/lib/python2.7/site-packages/numpy/core/multiarray.so: Undefined > > symbol "cblas_cdotc_sub" Googlng on Undefined symbol "cblas_cdotc_sub" has a few results, but no definitive solution. Looks like a missing dependency. Maybe run ldd -a /opt/lib/python2.7/site-packages/numpy/core/multiarray.so and see what libraries are missing? -karl > > > > Any ideas? Thanks! > > > > -mi > > > > It's strange. Unfortunately I can't reproduce this behaviour. > > Under Python session (simply run python): > > % python > >>> import sys > >>> import numpy > > if no errors > > >>> sys.modules # display loaded modules (numpy should be here) > > >>> keys = sys.modules.keys() > >>> for k in keys: > ... if 'numpy' in k: > ... print k > ... > > On my system I get this: > > numpy.core.info > numpy.lib.numpy > numpy.core.numerictypes > numpy.polynomial.legendre > numpy.random.mtrand > numpy.matrixlib.defmatrix > numpy.random.info > numpy.linalg > numpy.polynomial.laguerre > numpy.testing > numpy.core.umath > numpy.lib._version > numpy.linalg.info > numpy.polynomial._polybase > numpy.lib.arraysetops > numpy.version > numpy.core.machar > numpy.lib.type_check > numpy.core._internal > numpy.random.operator > numpy.lib._datasource > numpy.fft.fftpack_lite > numpy.core.multiarray > numpy.linalg._umath_linalg > numpy.polynomial > numpy.add_newdocs > numpy.core.getlimits > numpy.matrixlib > numpy.ma.extras > numpy.testing.decorators > numpy.lib.npyio > numpy.core.shape_base > numpy.random.threading > numpy.fft.helper > numpy.lib.info > numpy.core.memmap > numpy.fft.fftpack > numpy.linalg.lapack_lite > numpy.ma > numpy.random > numpy.lib.twodim_base > numpy.ma.core > numpy.lib.arrayterator > numpy.lib.financial > numpy.core.arrayprint > numpy.core._methods > numpy.core.function_base > numpy.lib.stride_tricks > numpy > numpy.polynomial.chebyshev > numpy.polynomial.hermite_e > numpy.__config__ > numpy.testing.utils > numpy.core.fromnumeric > numpy.ctypeslib > numpy.lib.scimath > numpy.fft > numpy.lib > numpy.lib.nanfunctions > numpy.random.numpy > numpy.lib.function_base > numpy.random.warnings > numpy.compat.py3k > numpy.lib.polynomial > numpy.compat > numpy._import_tools > numpy.polynomial.hermite > numpy.fft.info > numpy.core.records > numpy.polynomial.polynomial > numpy.core.numeric > numpy.core > numpy.lib.ufunclike > numpy.lib._iotools > numpy.lib.index_tricks > numpy.lib.utils > numpy.core.defchararray > numpy.polynomial.polyutils > numpy.lib.shape_base > numpy.compat._inspect > numpy.lib.format > numpy.testing.nosetester > numpy.lib.arraypad > numpy.linalg.linalg > > 'multiarray' library is even available: > > >>> from numpy.core import multiarray > >>> multiarray.__file__ > '/usr/local/lib/python2.7/site-packages/numpy/core/multiarray.so' > >>> multiarray.__version__ > '3.1' > >>> > > Tested on 9.3 (i386) and 10.2 (amd64) machines. > > -- > olivier > _______________________________________________ > freebsd-python@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-python > To unsubscribe, send any mail to "freebsd-python-unsubscribe@freebsd.org"