Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #17960

Re: installing matplotlib in MacOs 10.6.8.

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'python,': 0.01; 'interpreter': 0.05; 'skip:` 10': 0.07; 'stuff,': 0.07; 'wrapper': 0.07; 'python': 0.08; '32-bit': 0.09; 'eclipse': 0.09; 'imported.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'configure': 0.10; '-arch': 0.16; '-i386': 0.16; 'from:addr:acm.org': 0.16; 'helped.': 0.16; 'loaded.': 0.16; 'macos': 0.16; 'matplotlib': 0.16; 'numpy': 0.16; 'subject:installing': 0.16; 'subject:matplotlib': 0.16; 'wrote:': 0.18; 'upgraded': 0.18; 'compatible': 0.21; 'later': 0.21; 'extension': 0.21; 'versions': 0.23; '64-bit': 0.23; 'default,': 0.23; 'mode': 0.25; 'architecture': 0.26; 'import': 0.27; 'tried': 0.27; 'fine.': 0.29; 'installing': 0.29; 'universal': 0.29; 'version.': 0.29; 'problem': 0.29; 'invoke': 0.30; 'alex': 0.31; 'installed': 0.31; "didn't": 0.31; 'version': 0.32; 'developers': 0.32; 'certainly': 0.32; 'everyone,': 0.32; 'matching': 0.32; 'header:User-Agent:1': 0.33; 'actually': 0.33; 'header:X-Complaints-To:1': 0.33; 'to:addr :python-list': 0.34; 'it.': 0.34; 'force': 0.34; 'something': 0.35; 'modules': 0.35; 'similar': 0.36; 'but': 0.37; 'run': 0.37; "there's": 0.37; 'could': 0.37; 'using': 0.38; 'received:org': 0.38; 'some': 0.38; 'python.org': 0.40; 'to:addr:python.org': 0.40; 'might': 0.40; 'forced': 0.67; 'article': 0.74; '2.7.': 0.84; 'runnning': 0.84
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Ned Deily <nad@acm.org>
Subject Re: installing matplotlib in MacOs 10.6.8.
Date Mon, 26 Dec 2011 09:54:41 -0500
References <CAMW75Yv5f=PdcZqt-ti=iee7gxGfzqP8jXh485zjohd9L63vvA@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host 70.44.132.33.res-cmts.sm.ptd.net
User-Agent MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.4101.1324911298.27778.python-list@python.org> (permalink)
Lines 41
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1324911298 news.xs4all.nl 6921 [2001:888:2000:d::a6]:54268
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:17960

Show key headers only | View raw


In article 
<CAMW75Yv5f=PdcZqt-ti=iee7gxGfzqP8jXh485zjohd9L63vvA@mail.gmail.com>,
 Alex Ter-Sarkissov <ater1980@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,
 nad@acm.org

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: installing matplotlib in MacOs 10.6.8. Ned Deily <nad@acm.org> - 2011-12-26 09:54 -0500

csiph-web