|
From: Travis B. <td...@fa...> - 2005-04-25 00:25:11
|
Has anyone successfully installed and run matplotlib from the .dmg here: http://sda.iu.edu/projects.html ? I'm able to install just fine and I can import pylab and create a plot, but using "pylab.show()" crashes Python and returns "Segmentation Fault" and nothing else. Also has anyone successfully installed BaseMap on OS X? I've attempted to install the latest BaseMap package (I believe it's 0.3.2) and receive the following error: error: could not create '/System/Library/Frameworks/Python.framework/Versions/2.3/share/basemap-py23': Permission denied I'm running the stock Python 2.3 and Matplotlib 0.72.1 from the link above. Thanks, Travis Brady -- Travis Brady td...@fa... |
|
From: Jeff W. <js...@fa...> - 2005-04-25 00:30:37
|
Travis Brady wrote: >Has anyone successfully installed and run matplotlib from the .dmg here: > http://sda.iu.edu/projects.html ? >I'm able to install just fine and I can import pylab and create a plot, >but using "pylab.show()" crashes Python and returns "Segmentation Fault" >and nothing else. > > >Also has anyone successfully installed BaseMap on OS X? >I've attempted to install the latest BaseMap package (I believe it's >0.3.2) and receive the following error: >error: could not create >'/System/Library/Frameworks/Python.framework/Versions/2.3/share/basemap-py23': >Permission denied > >I'm running the stock Python 2.3 and Matplotlib 0.72.1 from the link >above. > >Thanks, > >Travis Brady > > Travis: Regarding the basemap install - you need admin privileges on your mac to install using "python setup.py install", so either run it as sudo, or if you don't have admin access try "python setup.py install --home=~" (this will install it in your home directory). If you do the latter, you'll have to add ~/lib/python to your PYTHONPATH. -Jeff -- Jeffrey S. Whitaker Phone : (303)497-6313 NOAA/OAR/CDC R/CDC1 FAX : (303)497-6449 325 Broadway Web : http://www.cdc.noaa.gov/~jsw Boulder, CO, USA 80305-3328 Office: Skaggs Research Cntr 1D-124 |
|
From: Travis B. <td...@fa...> - 2005-04-25 00:48:42
|
Excellent, thanks for the prompt response, Jeff.
I've just tried the ireland.py example and am at a complete loss as to
what to do about the following error.
Traceback (most recent call last):
File "ireland.py", line 21, in ?
show()
File "/platlib/matplotlib/backends/backend_wx.py", line 1156, in show
File "/platlib/matplotlib/backends/backend_wxagg.py", line 52, in draw
File "/platlib/matplotlib/backends/backend_agg.py", line 319, in draw
File "/platlib/matplotlib/figure.py", line 338, in draw
File "/platlib/matplotlib/axes.py", line 1296, in draw
File "/platlib/matplotlib/lines.py", line 283, in draw
File "/platlib/matplotlib/lines.py", line 543, in _draw_dashed
TypeError: CXX: type error.
Any thoughts?
Travis
On Sun, 24 Apr 2005 18:30:21 -0600, "Jeff Whitaker" <js...@fa...>
said:
> Travis Brady wrote:
>
> >Has anyone successfully installed and run matplotlib from the .dmg here:
> > http://sda.iu.edu/projects.html ?
> >I'm able to install just fine and I can import pylab and create a plot,
> >but using "pylab.show()" crashes Python and returns "Segmentation Fault"
> >and nothing else.
> >
> >
> >Also has anyone successfully installed BaseMap on OS X?
> >I've attempted to install the latest BaseMap package (I believe it's
> >0.3.2) and receive the following error:
> >error: could not create
> >'/System/Library/Frameworks/Python.framework/Versions/2.3/share/basemap-py23':
> >Permission denied
> >
> >I'm running the stock Python 2.3 and Matplotlib 0.72.1 from the link
> >above.
> >
> >Thanks,
> >
> >Travis Brady
> >
> >
> Travis: Regarding the basemap install - you need admin privileges on
> your mac to install using "python setup.py install", so either run it as
> sudo, or if you don't have admin access try "python setup.py install
> --home=~" (this will install it in your home directory). If you do the
> latter, you'll have to add ~/lib/python to your PYTHONPATH.
>
>
> -Jeff
>
> --
> Jeffrey S. Whitaker Phone : (303)497-6313
> NOAA/OAR/CDC R/CDC1 FAX : (303)497-6449
> 325 Broadway Web : http://www.cdc.noaa.gov/~jsw
> Boulder, CO, USA 80305-3328 Office: Skaggs Research Cntr 1D-124
>
--
Travis Brady
td...@fa...
|
|
From: Travis B. <td...@fa...> - 2005-04-25 02:43:24
|
Thanks, John.
That worked, but Matplotlib is now spitting out the error below and I
can't even find the rc file in the location it lists:
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/matplotlib/__init__.py:642:
UserWarning: Bad val "error" on line #200
"verbose.level : error # one of silent, error, helpful,
debug, debug-annoying"
in file
"/System/Library/Frameworks/Python.framework/Versions/2.3/share/matplotlib/.matplotlibrc"
Illegal verbose string "error". Legal values are ('silent',
'helpful', 'debug', 'debug-annoying')
warnings.warn('Bad val "%s" on line #%d\n\t"%s"\n\tin file "%s"\n\t%s'
% (val, cnt, line, fname, msg))
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/matplotlib/__init__.py:630:
UserWarning: Bad key "verbose.erro" on line 202 in
/System/Library/Frameworks/Python.framework/Versions/2.3/share/matplotlib/.matplotlibrc
warnings.warn('Bad key "%s" on line %d in %s' % (key, cnt, fname))
Bus error
Travis
On Sun, 24 Apr 2005 20:15:11 -0500, "John Hunter" <jd...@gm...>
said:
> On 4/24/05, Travis Brady <td...@fa...> wrote:
> > Excellent, thanks for the prompt response, Jeff.
> >
> > I've just tried the ireland.py example and am at a complete loss as to
> > what to do about the following error.
> > ...snip ....
> > File "/platlib/matplotlib/lines.py", line 543, in _draw_dashed
> > TypeError: CXX: type error.
> >
> > Any thoughts?
>
>
> You're going to need the latest matplotlib to run the latest basemap.
> Robert Kern has a build in mac enthon -- check out
> http://download.enthought.com/MacEnthon (this also includes a slightly
> older basemap 0.1.2). You can either install the entire macenthon
> package or selected subpacakges -- check out the readme on the site.
--
Travis Brady
td...@fa...
|
|
From: Jeff W. <js...@fa...> - 2005-04-25 12:05:27
|
Travis Brady wrote:
>Thanks, John.
>That worked, but Matplotlib is now spitting out the error below and I
>can't even find the rc file in the location it lists:
>
>/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/matplotlib/__init__.py:642:
>UserWarning: Bad val "error" on line #200
> "verbose.level : error # one of silent, error, helpful,
> debug, debug-annoying"
> in file
> "/System/Library/Frameworks/Python.framework/Versions/2.3/share/matplotlib/.matplotlibrc"
> Illegal verbose string "error". Legal values are ('silent',
> 'helpful', 'debug', 'debug-annoying')
> warnings.warn('Bad val "%s" on line #%d\n\t"%s"\n\tin file "%s"\n\t%s'
> % (val, cnt, line, fname, msg))
>/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/matplotlib/__init__.py:630:
>UserWarning: Bad key "verbose.erro" on line 202 in
>/System/Library/Frameworks/Python.framework/Versions/2.3/share/matplotlib/.matplotlibrc
> warnings.warn('Bad key "%s" on line %d in %s' % (key, cnt, fname))
>Bus error
>
>
>
Travis: The matplotlib package in fink (http://fink.sf.net) is up to
date, and includes basemap-0.3.2. First, you'll need to install the
developer tools. After running the fink installer, enable the unstable
tree by editing /sw/etc/fink.conf (add 'unstable/main' and
'unstable/crypto' to the 'Trees:' line). Then run "fink selfupdate",
and when that is done "fink install matplotlib-py24". Go get several
cups of coffee as fink downloads and builds a whole bunch of depedencies
(including python 2.4.1). The fink installed python distribution will
live entirely independently of your apple system python. I keep the
matplotlib package up to date, so all that will be needed to get the
latest version will be to run "fink update matplotlib-py24"
occasionally. The disadvantage of the fink route is that you'll have to
use X11 to run matplotlib with the gtk-agg backend, since fink python is
a unix build and doesn't support using the native wx or tk toolkits.
Right now I actually think of this an advantage, since as you've seen
these toolkits are a bit buggy (the gtk-agg backend is better tested,
since I believe it is the default under linux and windows).
-Jeff
P.S. If you decide to go this route, be sure to read section 2.3 of the
fink user's guide
(http://fink.sourceforge.net/doc/users-guide/install.php?phpLang=en#setup).
--
Jeffrey S. Whitaker Phone : (303)497-6313
NOAA/OAR/CDC R/CDC1 FAX : (303)497-6449
325 Broadway Web : http://www.cdc.noaa.gov/~jsw
Boulder, CO, USA 80305-3328 Office: Skaggs Research Cntr 1D-124
|