From owner-freebsd-python@freebsd.org Mon Jan 4 20:34:20 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 512ADA62C87 for ; Mon, 4 Jan 2016 20:34:20 +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 36BA317E3 for ; Mon, 4 Jan 2016 20:34:20 +0000 (UTC) (envelope-from duchateau.olivier@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 33D32A62C86; Mon, 4 Jan 2016 20:34:20 +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 1A15AA62C85 for ; Mon, 4 Jan 2016 20:34:20 +0000 (UTC) (envelope-from duchateau.olivier@gmail.com) Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com [IPv6:2a00:1450:400c:c09::241]) (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 AC8C017E2 for ; Mon, 4 Jan 2016 20:34:19 +0000 (UTC) (envelope-from duchateau.olivier@gmail.com) Received: by mail-wm0-x241.google.com with SMTP id b14so417508wmb.1 for ; Mon, 04 Jan 2016 12:34:19 -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=eOA7+8mEpz0UJL11VtTENS1iP0RS6ga5fJzp4gQtYhw=; b=sMUMptSa36jNy2N2wEV6Dq5ZG8fFoMJH4TdyCQ3U4zbF7CDqONZjcKh7zuz4wSTut0 aqpeSjd1/Ue0CxNqTCP6bEsb0ZrU//xzXefP9BVqSUHgBuWg/mvdR6sQ8Q/q2JdjD1uP 9Ll9QC4WzBM4LvReVmeZTdpIhSfJ6kXrjmi0SiBnbuNzPofe2CRr6dr8+jnjzC3QwXgE oTVKsL7k7h33mphqH1aYq/2dgBTigoQgo7o3wLlZsT5LNX97Fs2UU6i9bt1w9z8kUlqI +y9obKooKajuMqFci2oD2ktOFOTswiudZwjB/RwmNwNeL9BIFFNTp5GhBQb1+AjmrFwe SGPA== X-Received: by 10.28.218.75 with SMTP id r72mr272702wmg.59.1451939658253; Mon, 04 Jan 2016 12:34:18 -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 n5sm290584wmf.3.2016.01.04.12.34.16 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 04 Jan 2016 12:34:17 -0800 (PST) Date: Mon, 4 Jan 2016 21:31:50 +0000 From: Olivier Duchateau To: "Mikhail T." Cc: python@FreeBSD.org Subject: Re: numpy would not load: libgcc_s vs. libgfortran Message-Id: <20160104213150.4e47df03583e70cef356a51d@gmail.com> In-Reply-To: <568AC046.8040300@aldan.algebra.com> References: <568AA168.5090400@aldan.algebra.com> <20160104193453.2ae62e7a01ab0a0cd845e296@gmail.com> <568AC046.8040300@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 20:34:20 -0000 On Mon, 04 Jan 2016 13:56:06 -0500 "Mikhail T." wrote: > On 04.01.2016 14:34, Olivier Duchateau wrote: > > Can you post the complete backtrace? > > > Well, here goes: > > ___________________________________ ERROR at setup of > TestAPI.test_can_post_image ____________________________________ > Traceback (most recent call last): > File > "/spare/usr/ports/www/py-mediagoblin/work/mediagoblin-0.8.1/mediagoblin/tests/conftest.py", > line 33, in test_app > return tools.get_app(request) > File > "/spare/usr/ports/www/py-mediagoblin/work/mediagoblin-0.8.1/mediagoblin/tests/tools.py", > line 132, in get_app > 'config:' + new_paste_config) > File "/opt/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", > line 247, in loadapp > return loadobj(APP, uri, name=name, **kw) > File "/opt/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", > line 272, in loadobj > return context.create() > File "/opt/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", > line 710, in create > return self.object_type.invoke(self) > File "/opt/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", > line 146, in invoke > return fix_call(context.object, context.global_conf, > **context.local_conf) > File "/opt/lib/python2.7/site-packages/paste/deploy/util.py", line > 55, in fix_call > val = callable(*args, **kw) > File > "/spare/usr/ports/www/py-mediagoblin/work/mediagoblin-0.8.1/mediagoblin/app.py", > line 362, in paste_app_factory > mgoblin_app = MediaGoblinApp(mediagoblin_config) > File > "/spare/usr/ports/www/py-mediagoblin/work/mediagoblin-0.8.1/mediagoblin/app.py", > line 107, in __init__ > setup_plugins() > File > "/spare/usr/ports/www/py-mediagoblin/work/mediagoblin-0.8.1/mediagoblin/init/plugins/__init__.py", > line 56, in setup_plugins > __import__(plugin_module) > File > "/spare/usr/ports/www/py-mediagoblin/work/mediagoblin-0.8.1/mediagoblin/media_types/audio/__init__.py", > line 18, in > from mediagoblin.media_types.audio.processing import > AudioProcessingManager, \ > File > "/spare/usr/ports/www/py-mediagoblin/work/mediagoblin-0.8.1/mediagoblin/media_types/audio/processing.py", > line 30, in > from mediagoblin.media_types.audio.transcoders import ( > File > "/spare/usr/ports/www/py-mediagoblin/work/mediagoblin-0.8.1/mediagoblin/media_types/audio/transcoders.py", > line 23, in > from mediagoblin.media_types.audio import audioprocessing > File > "/spare/usr/ports/www/py-mediagoblin/work/mediagoblin-0.8.1/mediagoblin/media_types/audio/audioprocessing.py", > line 26, 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: /lib/libgcc_s.so.1: version GCC_4.6.0 required by > /opt/lib/gcc48/libgfortran.so.3 not found > > > I already encountered this error, and if often due to a wrong python import (cycling import). > > The script is from MediaGoblin's own self-tests. I doubt, they have a > cycling import -- supposedly, goblin-developers use them regularly... > Thanks! Yours, > > -mi > I quickly check the source (and no time today), but I often observed this problem, when modules loaded from sys.modules (see mediaglobin/init/plugins/__init__.py). It's not easy to debug. The best way (and time consuming) is to load each modules (and submodules) up to mediagoblin/media_types/audio/transcoders.py in comparison to the output of sys.modules (it's dictionary). For example I easily fixed circular import for a new port, called Flowblade (it's a video editor, not yet in ports tree), but I can't find solution for Pitivi (another video editor). After all it's perhaps Numpy's problem, but nobody reported this issue. -- olivier