Gabriele Brambilla
2015-10-09 16:05:38 UTC
Hi all,
I tried to install PyUblas via pip install but I received an error.
I have a Mac and I am using Anaconda for Python
I tried manually doing:
1 11:31 setenv CPPFLAGS "-I/opt/local/include"
2 11:31 setenv LDFLAGS "-L/opt/local/lib"
3 11:31 cd /tmp
4 11:31 tar zxf ~/Downloads/PyUblas-2013.1.tar.gz
5 11:31 cd PyUblas-2013.1/
6 11:32 ./configure.py
7 11:32 vi siteconf.py
The siteconf.py edit was changing
BOOST_PYTHON_LIBNAME = ['boost_python']
to
BOOST_PYTHON_LIBNAME = ['boost_python-mt']
8 11:32 python setup.py install
the install complete, but when I try to import pyublas I got this error:
but "import pyublas" fails with:
[gs66-stumbras:~] gbrambil% python
Python 2.7.6 (default, Dec 12 2014, 14:02:59)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)] on
darwin
Type "help", "copyright", "credits" or "license" for more information.
File "<stdin>", line 1, in <module>
File
"/Users/gbrambil/anaconda/lib/python2.7/site-packages/PyUblas-2013.1-py2.7-macosx-10.5-x86_64.egg/pyublas/__init__.py",
line 2, in <module>
import pyublas._internal
ImportError:
dlopen(/Users/gbrambil/anaconda/lib/python2.7/site-packages/PyUblas-2013.1-py2.7-macosx-10.5-x86_64.egg/pyublas/_internal.so,
2): Symbol not found: __ZNSoD0Ev
Referenced from:
/Users/gbrambil/anaconda/lib/python2.7/site-packages/PyUblas-2013.1-py2.7-macosx-10.5-x86_64.egg/pyublas/_internal.so
Expected in: dynamic lookup
Confirming missing symbol:
[gs66-stumbras:~] gbrambil% nm
/Users/gbrambil/anaconda/lib/python2.7/site-packages/PyUblas-2013.1-py2.7-macosx-10.5-x86_64.egg/pyublas/_internal.so
| grep __ZNSoD0Ev
U __ZNSoD0Ev
Do you know what the problem is?
Thanks
Gabriele
I tried to install PyUblas via pip install but I received an error.
I have a Mac and I am using Anaconda for Python
I tried manually doing:
1 11:31 setenv CPPFLAGS "-I/opt/local/include"
2 11:31 setenv LDFLAGS "-L/opt/local/lib"
3 11:31 cd /tmp
4 11:31 tar zxf ~/Downloads/PyUblas-2013.1.tar.gz
5 11:31 cd PyUblas-2013.1/
6 11:32 ./configure.py
7 11:32 vi siteconf.py
The siteconf.py edit was changing
BOOST_PYTHON_LIBNAME = ['boost_python']
to
BOOST_PYTHON_LIBNAME = ['boost_python-mt']
8 11:32 python setup.py install
the install complete, but when I try to import pyublas I got this error:
but "import pyublas" fails with:
[gs66-stumbras:~] gbrambil% python
Python 2.7.6 (default, Dec 12 2014, 14:02:59)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)] on
darwin
Type "help", "copyright", "credits" or "license" for more information.
import pyublas
Traceback (most recent call last):File "<stdin>", line 1, in <module>
File
"/Users/gbrambil/anaconda/lib/python2.7/site-packages/PyUblas-2013.1-py2.7-macosx-10.5-x86_64.egg/pyublas/__init__.py",
line 2, in <module>
import pyublas._internal
ImportError:
dlopen(/Users/gbrambil/anaconda/lib/python2.7/site-packages/PyUblas-2013.1-py2.7-macosx-10.5-x86_64.egg/pyublas/_internal.so,
2): Symbol not found: __ZNSoD0Ev
Referenced from:
/Users/gbrambil/anaconda/lib/python2.7/site-packages/PyUblas-2013.1-py2.7-macosx-10.5-x86_64.egg/pyublas/_internal.so
Expected in: dynamic lookup
Confirming missing symbol:
[gs66-stumbras:~] gbrambil% nm
/Users/gbrambil/anaconda/lib/python2.7/site-packages/PyUblas-2013.1-py2.7-macosx-10.5-x86_64.egg/pyublas/_internal.so
| grep __ZNSoD0Ev
U __ZNSoD0Ev
Do you know what the problem is?
Thanks
Gabriele