From owner-freebsd-python@freebsd.org Mon Jan 4 22:20:26 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 C1F30A612EB for ; Mon, 4 Jan 2016 22:20:26 +0000 (UTC) (envelope-from duchateau.olivier@gmail.com) 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 A64741B04 for ; Mon, 4 Jan 2016 22:20:26 +0000 (UTC) (envelope-from duchateau.olivier@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id A3F9CA612E8; Mon, 4 Jan 2016 22:20:26 +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 A380AA612E6 for ; Mon, 4 Jan 2016 22:20:26 +0000 (UTC) (envelope-from duchateau.olivier@gmail.com) Received: from mail-wm0-x22e.google.com (mail-wm0-x22e.google.com [IPv6:2a00:1450:400c:c09::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46DE61B03 for ; Mon, 4 Jan 2016 22:20:26 +0000 (UTC) (envelope-from duchateau.olivier@gmail.com) Received: by mail-wm0-x22e.google.com with SMTP id b14so3191041wmb.1 for ; Mon, 04 Jan 2016 14:20:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=690H++gZz9AQQ68MuUpkmkWdgHnfnVg9iWt3IoyZ54c=; b=FkyNB85IiZMRYcxpXBHIpuRYi0ZB1xwiPKAQ5aXciYHFgSRegnaakDdWxRXPRx1lIo Kv9ZuVVcjdE3PUC6uJBER4t6tLnc1JOqsv/lPai6Ac9+forZDPCFJ3uIzo5fQpOJ6UG8 j7nc5SeoqSyxanwFXjsYIVEBMN7T2bAf9syWk8sKtbkEe31plWBFAvgnDUqS+Kj4sp/K 66Pw2BRd7emB3lPyNQOTT9H/GayPCD0Fbk0kJK5WnV3FbUeIwTJvLMqHRkbNSFdxzd7r c1H0I+kz2Ja7YJRYVsNpkkqJIIVj72zhecu5jMNbALAIKfgl9BXuQRT5GEypvsmR6mEo FsEg== X-Received: by 10.194.57.100 with SMTP id h4mr88550400wjq.21.1451946024654; Mon, 04 Jan 2016 14:20:24 -0800 (PST) Received: from tuborg (AMarseille-655-1-753-75.w92-150.abo.wanadoo.fr. [92.150.162.75]) by smtp.gmail.com with ESMTPSA id q6sm88076887wjx.28.2016.01.04.14.20.23 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 04 Jan 2016 14:20:23 -0800 (PST) Date: Mon, 4 Jan 2016 23:17:57 +0000 From: Olivier Duchateau To: "Mikhail T." Cc: python@FreeBSD.org Subject: Re: numpy would not load: libgcc_s vs. libgfortran Message-Id: <20160104231757.f39b2af4ec3e5a54a14065be@gmail.com> In-Reply-To: <568AE454.6010604@aldan.algebra.com> References: <568AA168.5090400@aldan.algebra.com> <20160104193453.2ae62e7a01ab0a0cd845e296@gmail.com> <568AC046.8040300@aldan.algebra.com> <20160104213150.4e47df03583e70cef356a51d@gmail.com> <568AE454.6010604@aldan.algebra.com> X-Mailer: Sylpheed 3.4.3 (GTK+ 2.24.28; i386-portbld-freebsd9.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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:20:26 -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" > > 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