<div dir="ltr"><div>Did you rebuild numpy after rebuilding python? Note that if that works, then you will likely need to recompile the entire scipy stack (matplotlib, scipy, etc.).<br><br></div>Ben Root<br></div><div class="gmail_extra">

<br><br><div class="gmail_quote">On Wed, Apr 16, 2014 at 3:23 PM, jaylene <span dir="ltr"><<a href="mailto:jaylenexue@yahoo.com" target="_blank">jaylenexue@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi,<br>
<br>
I rebuilt the python with -enabled_shared to resolve the following error:<br>
/usr/bin/ld: /usr/local/lib/libpython2.7.a(cobject.o): relocation<br>
R_X86_64_32S against `PyCObject_Type' can not be used when making a<br>
shared object; recompile with -fPIC<br>
/usr/local/lib/libpython2.7.a: could not read symbols: Bad value<br>
<br>
However, there is a new error with this rebuilt python "ImportError:<br>
/usr/local/lib/python2.7/site-packages/numpy-1.8.0-py2.7-linux-x86_64.egg/numpy/core/multiarray.so:<br>
undefined symbol: PyUnicodeUCS2_AsASCIIString".<br>
<br>
Does anyone know how to fix this error?<br>
<br>
Thanks!<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://numpy-discussion.10968.n7.nabble.com/ImportError-usr-local-lib-python2-7-site-packages-numpy-1-8-0-py2-7-linux-x86-64-egg-numpy-core-multg-tp37372.html" target="_blank">http://numpy-discussion.10968.n7.nabble.com/ImportError-usr-local-lib-python2-7-site-packages-numpy-1-8-0-py2-7-linux-x86-64-egg-numpy-core-multg-tp37372.html</a><br>


Sent from the Numpy-discussion mailing list archive at Nabble.com.<br>
_______________________________________________<br>
NumPy-Discussion mailing list<br>
<a href="mailto:NumPy-Discussion@scipy.org">NumPy-Discussion@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/numpy-discussion" target="_blank">http://mail.scipy.org/mailman/listinfo/numpy-discussion</a><br>
</blockquote></div><br></div>