Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id D9070200BFB for ; Wed, 11 Jan 2017 09:37:02 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id D7A29160B4E; Wed, 11 Jan 2017 08:37:02 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 2B161160B2E for ; Wed, 11 Jan 2017 09:37:02 +0100 (CET) Received: (qmail 97459 invoked by uid 500); 11 Jan 2017 08:37:01 -0000 Mailing-List: contact dev-help@singa.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@singa.incubator.apache.org Delivered-To: mailing list dev@singa.incubator.apache.org Received: (qmail 97448 invoked by uid 99); 11 Jan 2017 08:37:01 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jan 2017 08:37:01 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id DD299C0254 for ; Wed, 11 Jan 2017 08:37:00 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -7.019 X-Spam-Level: X-Spam-Status: No, score=-7.019 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 1P5n5CD1sw6i for ; Wed, 11 Jan 2017 08:37:00 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id 3F84A5F286 for ; Wed, 11 Jan 2017 08:36:59 +0000 (UTC) Received: (qmail 97131 invoked by uid 99); 11 Jan 2017 08:36:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jan 2017 08:36:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 5E9872C0057 for ; Wed, 11 Jan 2017 08:36:58 +0000 (UTC) Date: Wed, 11 Jan 2017 08:36:58 +0000 (UTC) From: "wangwei (JIRA)" To: dev@singa.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (SINGA-293) Bug from compiling PySINGA on Mac OS X with multiple version of Python MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 11 Jan 2017 08:37:03 -0000 wangwei created SINGA-293: ----------------------------- Summary: Bug from compiling PySINGA on Mac OS X with multiple version of Python Key: SINGA-293 URL: https://issues.apache.org/jira/browse/SINGA-293 Project: Singa Issue Type: Bug Reporter: wangwei Assignee: wangwei When I run PySINGA in Mac OS X, I got the error "Fatal Python error: PyThreadState_Get: no current thread Abort trap: 6" This error happens typically when I have multiple version of Python on your system, e.g, the one comes with the OS and the one installed by Homebrew. The Python linked by PySINGA must be the same as the Python interpreter. To fix this error, we must compile SINGA with the correct version of Python. In particular, if we build PySINGA from source, we need to specify the paths when invoking [cmake|http://stackoverflow.com/questions/15291500/i-have-2-versions-of-python-installed-but-cmake-is-using-older-version-how-do] {code} $ cmake -DPYTHON_LIBRARY=`python-config --prefix`/lib/libpython2.7.dylib -DPYTHON_INCLUDE_DIR=`python-config --prefix`/include/python2.7/ .. {code} If installed PySINGA from binary packages, e.g. debian or wheel, then we need to change the python interpreter, e.g., reset the $PATH to put the correct path of Python at the front position. The above solution is added to the FAQ of installation. The jenkins_wheel.sh is also updated to fix this bug. -- This message was sent by Atlassian JIRA (v6.3.4#6332)