New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
_backend_agg.so: undefined symbol: MPL_matplotlib__path_ARRAY_API #2577
Comments
It seems that you have Numpy 1.3.0 installed, at least on the system where On Mon, Nov 4, 2013 at 2:13 PM, Alok Singhal notifications@github.comwrote:
|/|o | . _ | | ._ ||| _ _ ._ _ |
Sorry, that was a wrong cut-paste from a different terminal window. I do have numpy 1.3.0 (system numpy). I have installed numpy 1.8.0 separately in a subdirectory under my home directory. The output from The correct output is:
I just re-tested everything and the undefined symbol error still exists in the environment with numpy 1.8.0 and matplotlib 1.3.1. (Also, the I have updated the original comment. |
Some more information: I noticed that the class Then, the building of I tried compiling matplotlib with I am not completely sure that this is the correct way to do this or if some distutils command should be used in |
Do you have to use |
I needed to specify In short, this works:
This doesn't (fails with "undefined symbol" error):
|
I won't go to far, but to say "me too". I didn't test building the tarball with --force. Just dropped back to 1.1.1 for the time being. If you want more info, please ask. Linux snow 2.6.27.54-0.2-default #1 SMP 2010-10-19 18:40:07 +0200 x86_64 x86_64 x86_64 GNU/Linux |
@gandalf013 Thanks for sharing - |
Interesting. It's nice to have a "solution", but I'm not sure why the timestamps are funny in the first place... |
I had the same problem, and the --force option worked for me. Thanks. |
@flamingbear @rlmarco @gandalf013 Can any of you still reproduce this issue with either 1.4.3rc1 or current master? |
@tacaswell I can't reproduce the problem with the release candidate following @gandalf013 instructions. It's been so long that I can't remember how I was doing it before, but I started a virtualenv on the same machine as I reported the problem before. and these commands didn't give me an error.
So that looks good to me. |
@flamingbear Thanks for checking! Closing this. If anyone can still reproduce this please ping to have it re-opened. |
@flamingbear @tacaswell I can't get the master branch to build on Red Hat 5 because of old freetype. By the way, the problem was not with installing matplotlib, but while doing |
Bummer, that's what I get for not re-reading all of the thread. I also have generally moved from SLES 11. without --force: savoie@snow ~/tmp/test-mpl$ . test/bin/activate
(test)savoie@snow ~/tmp/test-mpl$ python
Python 2.6 (r26:66714, Oct 28 2010, 20:58:09)
[GCC 4.3.2 [gcc-4_3-branch revision 141291]] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib.pyplot as plt
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/sharehome/savoie/tmp/test-mpl/test/lib/python2.6/site-packages/matplotlib-1.4.3rc1-py2.6-linux-x86_64.egg/matplotlib/pyplot.py", line 109, in <module>
_backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
File "/sharehome/savoie/tmp/test-mpl/test/lib/python2.6/site-packages/matplotlib-1.4.3rc1-py2.6-linux-x86_64.egg/matplotlib/backends/__init__.py", line 32, in pylab_setup
globals(),locals(),[backend_name],0)
File "/sharehome/savoie/tmp/test-mpl/test/lib/python2.6/site-packages/matplotlib-1.4.3rc1-py2.6-linux-x86_64.egg/matplotlib/backends/backend_tkagg.py", line 13, in <module>
import matplotlib.backends.tkagg as tkagg
File "/sharehome/savoie/tmp/test-mpl/test/lib/python2.6/site-packages/matplotlib-1.4.3rc1-py2.6-linux-x86_64.egg/matplotlib/backends/tkagg.py", line 7, in <module>
from matplotlib.backends import _tkagg
ImportError: /sharehome/savoie/tmp/test-mpl/test/lib/python2.6/site-packages/matplotlib-1.4.3rc1-py2.6-linux-x86_64.egg/matplotlib/backends/_tkagg.so: undefined symbol: MPL_matplotlib__path_ARRAY_API
>>> with --force savoie@snow ~/tmp/test-mpl$ . test/bin/activate
(test)savoie@snow ~/tmp/test-mpl$ python
Python 2.6 (r26:66714, Oct 28 2010, 20:58:09)
[GCC 4.3.2 [gcc-4_3-branch revision 141291]] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib.pyplot as plt
>>> |
I am trying to build and install matplotlib on a RHEL 5.8 system:
I have numpy 1.8.0 installed. I have tried building and installing matplotlib 1.3.1 or 1.3.0. The installation succeeds, but then importing
matplotlib.pyplot
returns:The
MPL_matplotlib__path_ARRAY_API
symbol is defined in_path.so
file, but is undefined inbackends/_backend_agg.so
:I am not sure why
_backend_agg.so
is referring toMPL_matplotlib__path_ARRAY_API
. On a more modern system (Linux Mint 13), the output from the above command is:I built matplotlib with the following:
Other information:
Am I doing something wrong?
The text was updated successfully, but these errors were encountered: