From dev-return-2336-archive-asf-public=cust-asf.ponee.io@singa.incubator.apache.org Tue Oct 30 05:00:05 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 29F11180677 for ; Tue, 30 Oct 2018 05:00:05 +0100 (CET) Received: (qmail 12815 invoked by uid 500); 30 Oct 2018 04:00:04 -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 12798 invoked by uid 99); 30 Oct 2018 04:00:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Oct 2018 04:00:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 8DF10CD230 for ; Tue, 30 Oct 2018 04:00:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.301 X-Spam-Level: X-Spam-Status: No, score=-110.301 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id qYbipRRVxDIg for ; Tue, 30 Oct 2018 04:00:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id AA8155F2FE for ; Tue, 30 Oct 2018 04:00:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id E4FCEE0E1D for ; Tue, 30 Oct 2018 04:00:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 59E7327763 for ; Tue, 30 Oct 2018 04:00:00 +0000 (UTC) Date: Tue, 30 Oct 2018 04:00:00 +0000 (UTC) From: "Zhang Junzhe (JIRA)" To: dev@singa.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SINGA-400) ModuleNotFoundError: No module named '_singa_wrap' MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SINGA-400?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D16668= 094#comment-16668094 ]=20 Zhang Junzhe commented on SINGA-400: ------------------------------------ You might want to build it in the docker as follows: * nvidia-docker run =C2=A0-it nvidia/cuda:8.0-cudnn5-devel-ubuntu16.04 /bi= n/bash * apt-get update * apt-get install -y build-essential git python-pip libfreetype6-dev libxf= t-dev libncurses-dev libopenblas-dev gfortran python-matplotlib libblas-dev= liblapack-dev libatlas-base-dev python-dev python-pydot linux-headers-gene= ric linux-image-extra-virtual unzip python-numpy swig python-pandas python-= sklearn unzip wget pkg-config zip g++ zlib1g-dev libcurl3-dev cmake curl un= zip dh-autoreconf vim * git clone=C2=A0[https://github.com/junzhezhang/incubator-singa.git] && = =C2=A0cd incubator-singa && mkdir build && cd build * export LD_LIBRARY_PATH=3D/usr/local/cuda-9.0/lib64:$LD_LIBRARY_PATH && = =C2=A0export CMAKE_INCLUDE_PATH=3D/usr/local/cuda-9.0/include/:$CMAKE_INCLU= DE_PATH && export CMAKE_LIBRARY_PATH=3D/usr/local/cuda-9.0/lib64:$CMAKE_LIB= RARY_PATH * cmake -DUSE_CUDA=3DON -DUSE_MODULES=3DON .. && make && cd python && pip = install . =C2=A0 > ModuleNotFoundError: No module named '_singa_wrap' > -------------------------------------------------- > > Key: SINGA-400 > URL: https://issues.apache.org/jira/browse/SINGA-400 > Project: Singa > Issue Type: Improvement > Components: PySINGA > Reporter: Shicheng > Priority: Minor > > Hi, > I encountered a bug when I built the singa code from source. > I finish building procedures but when I imported the singa lib, I got the= following problem. > Could anyone give me some help? Thanks > =C2=A0 > Python 3.6.6 |Anaconda custom (64-bit)| (default, Jun 28 2018, 17:14:51)= =20 > [GCC 7.2.0] on linux > Type "help", "copyright", "credits" or "license" for more information. > >>> import singa > Traceback (most recent call last): > File "/home/csc/anaconda3/envs/singa/lib/python3.6/site-packages/singa/si= nga_wrap.py", line 14, in swig_import_helper > return importlib.import_module(mname) > File "/home/csc/anaconda3/envs/singa/lib/python3.6/importlib/__init__.py"= , line 126, in import_module > return _bootstrap._gcd_import(name[level:], package, level) > File "", line 994, in _gcd_import > File "", line 971, in _find_and_load > File "", line 955, in _find_and_load_unlocke= d > File "", line 658, in _load_unlocked > File "", line 571, in module_from_spec > File "", line 922, in create_module > File "", line 219, in _call_with_frames_remo= ved > ImportError: /home/csc/anaconda3/envs/singa/lib/libstdc++.so.6: version `= CXXABI_1.3.8' not found (required by /home/csc/anaconda3/envs/singa/lib/pyt= hon3.6/site-packages/singa/_singa_wrap.so) > During handling of the above exception, another exception occurred: > Traceback (most recent call last): > File "", line 1, in > File "/home/csc/anaconda3/envs/singa/lib/python3.6/site-packages/singa/__= init__.py", line 18, in > from . import singa_wrap > File "/home/csc/anaconda3/envs/singa/lib/python3.6/site-packages/singa/si= nga_wrap.py", line 17, in > _singa_wrap =3D swig_import_helper() > File "/home/csc/anaconda3/envs/singa/lib/python3.6/site-packages/singa/si= nga_wrap.py", line 16, in swig_import_helper > return importlib.import_module('_singa_wrap') > File "/home/csc/anaconda3/envs/singa/lib/python3.6/importlib/__init__.py"= , line 126, in import_module > return _bootstrap._gcd_import(name[level:], package, level) > ModuleNotFoundError: No module named '_singa_wrap' -- This message was sent by Atlassian JIRA (v7.6.3#76005)