Hello,
I'm trying to plot a couple of lists using matplotlib's pyplot. In
particular I'm using python2.5 and matplotlib-py25 (0.98.5.2-1). When I try
to import pyplot, I receive the following error:
Traceback (most recent call last):
File "./hemo.py", line 50, in <module>
import matplotlib.pyplot as plt
File "/sw/lib/python2.5/site-packages/matplotlib/pyplot.py", line 6, in
<module>
from matplotlib.figure import Figure, figaspect
File "/sw/lib/python2.5/site-packages/matplotlib/figure.py", line 19, in
<module>
from axes import Axes, SubplotBase, subplot_class_factory
File "/sw/lib/python2.5/site-packages/matplotlib/axes.py", line 16, in
<module>
import matplotlib.dates as mdates
File "/sw/lib/python2.5/site-packages/matplotlib/dates.py", line 87, in
<module>
import pytz
File "/sw/lib/python2.5/site-packages/pytz/__init__.py", line 29, in
<module>
from pkg_resources import resource_stream
File "/sw/lib/python2.5/site-packages/pkg_resources.py", line 657, in
<module>
class Environment(object):
File "/sw/lib/python2.5/site-packages/pkg_resources.py", line 660, in
Environment
def __init__(self, search_path=None, platform=get_supported_platform(),
python=PY_MAJOR):
File "/sw/lib/python2.5/site-packages/pkg_resources.py", line 55, in
get_supported_platform
plat = get_build_platform(); m = macosVersionString.match(plat)
File "/sw/lib/python2.5/site-packages/pkg_resources.py", line 187, in
get_build_platform
plat = get_platform()
File "/sw/lib/python2.5/distutils/util.py", line 78, in get_platform
cfgvars = get_config_vars()
File "/sw/lib/python2.5/distutils/sysconfig.py", line 493, in
get_config_vars
func()
File "/sw/lib/python2.5/distutils/sysconfig.py", line 378, in _init_posix
raise DistutilsPlatformError(my_msg)
distutils.errors.DistutilsPlatformError: $MACOSX_DEPLOYMENT_TARGET mismatch:
now "10.4" but "10.5" during configure
Can anyone help me make sense of this error? The relevant code is simply
# plot results
import matplotlib.pyplot as plt
plt.figure(1)
plt.subplot(211)
plt.plot(z, pNew, 'bo')
plt.subplot(212)
plt.plot(z, qNew, 'r--')
where z, pNew, and qNew are all either lists or numpy arrays (I've tried it
both ways).
Thanks very much for any assistance you can provide.
Regards,
Todd
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Fink-beginners mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.beginners