installing matplotlib in MacOs 10.6.8.

2011-12-26 Thread Alex Ter-Sarkissov
thanks Ned,

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?

cheers,

Alex
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: installing matplotlib in MacOs 10.6.8.

2011-12-26 Thread Alex Ter-Sarkissov
thanks Ned,

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?

cheers,

Alex

27 декабря 2011 г. 3:54 пользователь Ned Deily n...@acm.org написал:

 In article
 CAMW75Yv5f=PdcZqt-ti=iee7gxgfzqp8jxh485zjohd9l63...@mail.gmail.com,
  Alex Ter-Sarkissov ater1...@gmail.com wrote:
  hi everyone, I run python 2.7.2. in Eclipse (recently upgraded from
 2.6). I
  have a problem with installing matplotlib (I found the version for python
  2.7. MacOs 10.3, no later versions). If I run python in terminal using
 arch
  -i386 python, and then
 
  from matplotlib.pylab import *
 
  and similar stuff, everything works fine. If I run python in eclipse or
  just without arch -i386, I can import matplotlib as
 
  from matplotlib import  *
 
  but actually nothing gets imported. If I do it in the same way as above,
 I
  get the message
 
  no matching architecture in universal wrapper
 
  which means there's conflict of versions or something like that. I tried
  reinstalling the interpreter and adding matplotlib to forced built-ins,
 but
  nothing helped. For some reason I didn't have this problem with numpy and
  tkinter.

 The message means almost certainly means that the Python you are using
 is a 64-bit/32-bit universal version.  When you launch Python with -arch
 i386, you force the Python to run in 32-bit mode so it is compatible
 with the 32-bit-only version of matplotlib you've installed in it.  When
 you launch Python by default, it is runnning in 64-bit mode so the
 32-bit-only C extension modules in that version of matplotlib cannot be
 loaded.  You might want to ask the matplotlib developers to make a
 64-bit version available.  In the mean time, you could try to configure
 Eclipse to invoke the python with `python2.7-32`, which is included with
 distributions like the python.org one to force Python to run in 32-bit
 mode on OS X.

 --
  Ned Deily,
  n...@acm.org

 --
 http://mail.python.org/mailman/listinfo/python-list

-- 
http://mail.python.org/mailman/listinfo/python-list


installing matplotlib in MacOs 10.6.8.

2011-12-24 Thread Alex Ter-Sarkissov
hi everyone, I run python 2.7.2. in Eclipse (recently upgraded from 2.6). I
have a problem with installing matplotlib (I found the version for python
2.7. MacOs 10.3, no later versions). If I run python in terminal using arch
-i386 python, and then

from matplotlib.pylab import *

and similar stuff, everything works fine. If I run python in eclipse or
just without arch -i386, I can import matplotlib as

from matplotlib import  *

but actually nothing gets imported. If I do it in the same way as above, I
get the message

no matching architecture in universal wrapper

which means there's conflict of versions or something like that. I tried
reinstalling the interpreter and adding matplotlib to forced built-ins, but
nothing helped. For some reason I didn't have this problem with numpy and
tkinter.

Any suggestions are appreciated.
-- 
http://mail.python.org/mailman/listinfo/python-list