<div id=":10n" class="ii gt" style="font-size:13px;margin-top:5px;margin-right:15px;margin-bottom:5px;margin-left:15px;padding-bottom:20px;font-family:arial,sans-serif;background-color:rgb(255,255,255)"><div id=":10m">thanks Ned,<div>
<br></div><div>that's quite weird: if I run python2.7-32 in terminal, it works like you said, but when I add it as an interpreter in Eclipse, matplotlib.pyplot doesn't get imported for some reason. Even more strange, either way platform.architecture() reports 64-bit. What's wrong here?</div>
<div><br></div><div>cheers,</div><div><br></div><font color="#888888"><div>Alex</div></font></div></div><br><div class="gmail_quote">27 ÄÅËÁÂÒÑ 2011šÇ. 3:54 ÐÏÌØÚÏ×ÁÔÅÌØ Ned Deily <span dir="ltr"><<a href="mailto:nad@acm.org">nad@acm.org</a>></span> ÎÁÐÉÓÁÌ:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">In article<br>
<CAMW75Yv5f=PdcZqt-ti=<a href="mailto:iee7gxGfzqP8jXh485zjohd9L63vvA@mail.gmail.com">iee7gxGfzqP8jXh485zjohd9L63vvA@mail.gmail.com</a>>,<br>
<div><div></div><div class="h5">šAlex Ter-Sarkissov <<a href="mailto:ater1980@gmail.com">ater1980@gmail.com</a>> wrote:<br>
> hi everyone, I run python 2.7.2. in Eclipse (recently upgraded from 2.6). I<br>
> have a problem with installing matplotlib (I found the version for python<br>
> 2.7. MacOs 10.3, no later versions). If I run python in terminal using arch<br>
> -i386 python, and then<br>
><br>
> from matplotlib.pylab import *<br>
><br>
> and similar stuff, everything works fine. If I run python in eclipse or<br>
> just without arch -i386, I can import matplotlib as<br>
><br>
> from matplotlib import š*<br>
><br>
> but actually nothing gets imported. If I do it in the same way as above, I<br>
> get the message<br>
><br>
> no matching architecture in universal wrapper<br>
><br>
> which means there's conflict of versions or something like that. I tried<br>
> reinstalling the interpreter and adding matplotlib to forced built-ins, but<br>
> nothing helped. For some reason I didn't have this problem with numpy and<br>
> tkinter.<br>
<br>
</div></div>The message means almost certainly means that the Python you are using<br>
is a 64-bit/32-bit universal version. šWhen you launch Python with -arch<br>
i386, you force the Python to run in 32-bit mode so it is compatible<br>
with the 32-bit-only version of matplotlib you've installed in it. šWhen<br>
you launch Python by default, it is runnning in 64-bit mode so the<br>
32-bit-only C extension modules in that version of matplotlib cannot be<br>
loaded. šYou might want to ask the matplotlib developers to make a<br>
64-bit version available. šIn the mean time, you could try to configure<br>
Eclipse to invoke the python with `python2.7-32`, which is included with<br>
distributions like the <a href="http://python.org" target="_blank">python.org</a> one to force Python to run in 32-bit<br>
mode on OS X.<br>
<br>
--<br>
šNed Deily,<br>
š<a href="mailto:nad@acm.org">nad@acm.org</a><br>
<font color="#888888"><br>
--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</font></blockquote></div><br>