You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@singa.apache.org by "Xiangrui (JIRA)" <ji...@apache.org> on 2016/09/26 13:14:20 UTC

[jira] [Created] (SINGA-250) ImportError: No module named _singa_wrap

Xiangrui created SINGA-250:
------------------------------

             Summary: ImportError: No module named _singa_wrap
                 Key: SINGA-250
                 URL: https://issues.apache.org/jira/browse/SINGA-250
             Project: Singa
          Issue Type: Bug
            Reporter: Xiangrui


I have installed singa from wheel in virtualenv successfully. But I find an error when I try to execute "from singa import layer". Here is the details:

(pysinga) ➜  ~ pip install --upgrade http://comp.nus.edu.sg/~dbsystem/singa/assets/file/pb2.6/singa-1.0.0-cp27-none-linux_x86_64.whl
Collecting singa==1.0.0 from http://comp.nus.edu.sg/~dbsystem/singa/assets/file/pb2.6/singa-1.0.0-cp27-none-linux_x86_64.whl
  Downloading http://comp.nus.edu.sg/~dbsystem/singa/assets/file/pb2.6/singa-1.0.0-cp27-none-linux_x86_64.whl (6.7MB)
    100% |████████████████████████████████| 6.7MB 10.1MB/s 
Requirement already up-to-date: protobuf<3,>=2.5.0 in ./pysinga/lib/python2.7/site-packages (from singa==1.0.0)
Requirement already up-to-date: numpy>=1.11.0 in ./pysinga/lib/python2.7/site-packages (from singa==1.0.0)
Requirement already up-to-date: setuptools in ./pysinga/lib/python2.7/site-packages (from protobuf<3,>=2.5.0->singa==1.0.0)
Installing collected packages: singa
Successfully installed singa-1.0.0
(pysinga) ➜  ~ python
Python 2.7.12 (default, Jul  1 2016, 15:12:24) 
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from singa import layer
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/xr/pysinga/local/lib/python2.7/site-packages/singa/layer.py", line 44, in <module>
    from . import singa_wrap
  File "/home/xr/pysinga/local/lib/python2.7/site-packages/singa/singa_wrap.py", line 21, in <module>
    _singa_wrap = swig_import_helper()
  File "/home/xr/pysinga/local/lib/python2.7/site-packages/singa/singa_wrap.py", line 20, in swig_import_helper
    return importlib.import_module('_singa_wrap')
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
ImportError: No module named _singa_wrap
>>> quit()
(pysinga) ➜  ~ ldd pysinga/lib/python2.7/site-packages/singa/_singa_wrap.so                                                         
	linux-vdso.so.1 =>  (0x00007fffef39a000)
	libprotobuf.so.9 => /usr/lib/x86_64-linux-gnu/libprotobuf.so.9 (0x00007f9baddca000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f9badbac000)
	libopenblas.so.0 => /usr/lib/libopenblas.so.0 (0x00007f9babb18000)
	libpython2.7.so.1.0 => /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0 (0x00007f9bab58a000)
	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f9bab208000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f9baaefe000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f9baace8000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f9baa91f000)
	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f9baa704000)
	/lib64/ld-linux-x86-64.so.2 (0x000055a6546f1000)
	libgfortran.so.3 => /usr/lib/x86_64-linux-gnu/libgfortran.so.3 (0x00007f9baa3d9000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f9baa1d5000)
	libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007f9ba9fd1000)
	libquadmath.so.0 => /usr/lib/x86_64-linux-gnu/libquadmath.so.0 (0x00007f9ba9d92000)




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)