f



ANN: matplotlib 1.3.1

I'm pleased to announce the release of matplotlib version 1.3.1.  This is a bugfix release.

It may be downloaded from here, or installed through the package manager of your choice (when available):

http://matplotlib.org/downloads

The changelog is copied below:

New in 1.3.1
------------

1.3.1 is a bugfix release, primarily dealing with improved setup and
handling of dependencies, and correcting and enhancing the
documentation.

The following changes were made in 1.3.1 since 1.3.0.

Enhancements
````````````

- Added a context manager for creating multi-page pdfs (see
    `matplotlib.backends.backend_pdf.PdfPages`).

- The WebAgg backend should no have lower latency over heterogeneous
    Internet connections.

Bug fixes
`````````

- Histogram plots now contain the endline.

- Fixes to the Molleweide projection.

- Handling recent fonts from Microsoft and Macintosh-style fonts with
    non-ascii metadata is improved.

- Hatching of fill between plots now works correctly in the PDF
    backend.

- Tight bounding box support now works in the PGF backend.

- Transparent figures now display correctly in the Qt4Agg backend.

- Drawing lines from one subplot to another now works.

- Unit handling on masked arrays has been improved.

Setup and dependencies
``````````````````````

- Now works with any version of pyparsing 1.5.6 or later, without displaying
    hundreds of warnings.

- Now works with 64-bit versions of Ghostscript on MS-Windows.

- When installing from source into an environment without Numpy, Numpy
    will first be downloaded and built and then used to build
    matplotlib.

- Externally installed backends are now always imported using a
    fully-qualified path to the module.

- Works with newer version of wxPython.

- Can now build with a PyCXX installed globally on the system from source.

- Better detection of Gtk3 dependencies.

Testing
```````

- Tests should now work in non-English locales.

- PEP8 conformance tests now report on locations of issues.

Mike

-- 
                    _
|\/|o _|_  _. _ | | \.__  __|__|_|_  _  _ ._ _
|  ||(_| |(_|(/_| |_/|(_)(/_|_ |_|_)(_)(_)| | |

http://www.droettboom.com

0
Michael
10/10/2013 6:19:20 PM
comp.lang.python.announce 7374 articles. 0 followers. Post Follow

4 Replies
542 Views

Similar Articles

[PageSpeed] 16

Michael Droettboom <mdroe@stsci.edu> writes:

> I'm pleased to announce the release of matplotlib version 1.3.1.  This is a bugfix release.
>
> It may be downloaded from here, or installed through the package manager of your choice (when available):
>
> http://matplotlib.org/downloads
>

It is not available through PyPI.

I tried to install it from source, on Mac OS X 10.6.8, with Python
3.3.2, and Tck/Tk 8.5 installed as Frameworks, but I get an error during
compilation. It seems it doesn't find the Tcl/TK framework.


building 'matplotlib.backends._tkagg' extension
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3 -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -I/opt/local/include -DPY_ARRAY_UNIQUE_SYMBOL=MPL_matplotlib_backends__tkagg_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -DPYCXX_PYTHON_2TO3=1 -I/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/numpy/core/include -I/usr/local/include -I/usr/include -I/usr/X11/include -I/opt/local/include -I. -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders -I/Library/Frameworks/Tk.framework/Headers -I/Library/Frameworks/Tk.framework/Versions/Current/PrivateHeaders -Iagg24/include -I/Library/Frameworks/Python.framework/Versions/3.3/include/python3.3m -c src/agg_py_transforms.cpp -o build/temp.macosx-10.6-intel-3.3/src/agg_py_transforms.o -framework Tcl -framework Tk
In file included from /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/numpy/core/include/numpy/ndarraytypes.h:1760,
                 from /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
                 from /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                 from src/agg_py_transforms.cpp:6:
/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused because linking not done
i686-apple-darwin10-gcc-4.2.1: Tcl: linker input file unused because linking not done
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused because linking not done
i686-apple-darwin10-gcc-4.2.1: Tk: linker input file unused because linking not done
In file included from /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/numpy/core/include/numpy/ndarraytypes.h:1760,
                 from /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
                 from /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                 from src/agg_py_transforms.cpp:6:
/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused because linking not done
i686-apple-darwin10-gcc-4.2.1: Tcl: linker input file unused because linking not done
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused because linking not done
i686-apple-darwin10-gcc-4.2.1: Tk: linker input file unused because linking not done
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3 -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -I/opt/local/include -DPY_ARRAY_UNIQUE_SYMBOL=MPL_matplotlib_backends__tkagg_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -DPYCXX_PYTHON_2TO3=1 -I/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/numpy/core/include -I/usr/local/include -I/usr/include -I/usr/X11/include -I/opt/local/include -I. -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders -I/Library/Frameworks/Tk.framework/Headers -I/Library/Frameworks/Tk.framework/Versions/Current/PrivateHeaders -Iagg24/include -I/Library/Frameworks/Python.framework/Versions/3.3/include/python3.3m -c src/_tkagg.cpp -o build/temp.macosx-10.6-intel-3.3/src/_tkagg.o -framework Tcl -framework Tk
In file included from /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/numpy/core/include/numpy/ndarraytypes.h:1760,
                 from /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
                 from /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                 from src/agg_py_path_iterator.h:7,
                 from src/_backend_agg.h:43,
                 from src/_tkagg.cpp:20:
/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"
In file included from src/_tkagg.cpp:30:
/usr/include/tk.h:23:3: error: #error Tk 8.5 must be compiled with tcl.h from Tcl 8.5
In file included from /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/numpy/core/include/numpy/ndarraytypes.h:1760,
                 from /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
                 from /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                 from src/agg_py_path_iterator.h:7,
                 from src/_backend_agg.h:43,
                 from src/_tkagg.cpp:20:
/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"
In file included from src/_tkagg.cpp:30:
/usr/include/tk.h:23:3: error: #error Tk 8.5 must be compiled with tcl.h from Tcl 8.5
lipo: can't figure out the architecture type of: /var/folders/5r/5r4ywY4e2ReN7U+8ZPQSJ++++TI/-Tmp-//ccXN6p4b.out
error: command 'gcc-4.2' failed with exit status 1
You have new mail in /var/mail/piet
bash-3.2$ hg ftp -su
-- 
Piet van Oostrum <piet@vanoostrum.org>
WWW: http://pietvanoostrum.com/
PGP key: [8DAE142BE17999C4]
0
piet2545 (117)
10/18/2013 4:09:42 PM
In article <m2zjq6mugp.fsf@cochabamba.vanoostrum.org>,
 Piet van Oostrum <piet@vanoostrum.org> wrote:
> I tried to install it from source, on Mac OS X 10.6.8, with Python
> 3.3.2, and Tck/Tk 8.5 installed as Frameworks, but I get an error during
> compilation. It seems it doesn't find the Tcl/TK framework.
> 
> 
> building 'matplotlib.backends._tkagg' extension
> gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3 -isysroot 
> /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -isysroot 
> /Developer/SDKs/MacOSX10.6.sdk -I/opt/local/include 
> -DPY_ARRAY_UNIQUE_SYMBOL=MPL_matplotlib_backends__tkagg_ARRAY_API 
> -DPYCXX_ISO_CPP_LIB=1 -DPYCXX_PYTHON_2TO3=1 
> -I/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-package
> s/numpy/core/include -I/usr/local/include -I/usr/include -I/usr/X11/include 
> -I/opt/local/include -I. -I/Library/Frameworks/Tcl.framework/Headers 
> -I/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders 
> -I/Library/Frameworks/Tk.framework/Headers 
> -I/Library/Frameworks/Tk.framework/Versions/Current/PrivateHeaders 
> -Iagg24/include 
> -I/Library/Frameworks/Python.framework/Versions/3.3/include/python3.3m -c 
> src/ag
>  g_py_transforms.cpp -o 
>  build/temp.macosx-10.6-intel-3.3/src/agg_py_transforms.o -framework Tcl 
>  -framework Tk
> In file included from 
> /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/
> numpy/core/include/numpy/ndarraytypes.h:1760,
>                  from 
>                  /Library/Frameworks/Python.framework/Versions/3.3/lib/python3
>                  .3/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
>                  from 
>                  /Library/Frameworks/Python.framework/Versions/3.3/lib/python3
>                  .3/site-packages/numpy/core/include/numpy/arrayobject.h:4,
>                  from src/agg_py_transforms.cpp:6:
> /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/
> numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning 
> "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API 
> NPY_1_7_API_VERSION"
> i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused because 
> linking not done
> i686-apple-darwin10-gcc-4.2.1: Tcl: linker input file unused because linking 
> not done
> i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused because 
> linking not done
> i686-apple-darwin10-gcc-4.2.1: Tk: linker input file unused because linking 
> not done
> In file included from 
> /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/
> numpy/core/include/numpy/ndarraytypes.h:1760,
>                  from 
>                  /Library/Frameworks/Python.framework/Versions/3.3/lib/python3
>                  .3/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
>                  from 
>                  /Library/Frameworks/Python.framework/Versions/3.3/lib/python3
>                  .3/site-packages/numpy/core/include/numpy/arrayobject.h:4,
>                  from src/agg_py_transforms.cpp:6:
> /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/
> numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning 
> "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API 
> NPY_1_7_API_VERSION"
> i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused because 
> linking not done
> i686-apple-darwin10-gcc-4.2.1: Tcl: linker input file unused because linking 
> not done
> i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused because 
> linking not done
> i686-apple-darwin10-gcc-4.2.1: Tk: linker input file unused because linking 
> not done
> gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3 -isysroot 
> /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -isysroot 
> /Developer/SDKs/MacOSX10.6.sdk -I/opt/local/include 
> -DPY_ARRAY_UNIQUE_SYMBOL=MPL_matplotlib_backends__tkagg_ARRAY_API 
> -DPYCXX_ISO_CPP_LIB=1 -DPYCXX_PYTHON_2TO3=1 
> -I/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-package
> s/numpy/core/include -I/usr/local/include -I/usr/include -I/usr/X11/include 
> -I/opt/local/include -I. -I/Library/Frameworks/Tcl.framework/Headers 
> -I/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders 
> -I/Library/Frameworks/Tk.framework/Headers 
> -I/Library/Frameworks/Tk.framework/Versions/Current/PrivateHeaders 
> -Iagg24/include 
> -I/Library/Frameworks/Python.framework/Versions/3.3/include/python3.3m -c 
> src/_t
>  kagg.cpp -o build/temp.macosx-10.6-intel-3.3/src/_tkagg.o -framework Tcl 
>  -framework Tk
> In file included from 
> /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/
> numpy/core/include/numpy/ndarraytypes.h:1760,
>                  from 
>                  /Library/Frameworks/Python.framework/Versions/3.3/lib/python3
>                  .3/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
>                  from 
>                  /Library/Frameworks/Python.framework/Versions/3.3/lib/python3
>                  .3/site-packages/numpy/core/include/numpy/arrayobject.h:4,
>                  from src/agg_py_path_iterator.h:7,
>                  from src/_backend_agg.h:43,
>                  from src/_tkagg.cpp:20:
> /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/
> numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning 
> "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API 
> NPY_1_7_API_VERSION"
> In file included from src/_tkagg.cpp:30:
> /usr/include/tk.h:23:3: error: #error Tk 8.5 must be compiled with tcl.h from 
> Tcl 8.5
> In file included from 
> /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/
> numpy/core/include/numpy/ndarraytypes.h:1760,
>                  from 
>                  /Library/Frameworks/Python.framework/Versions/3.3/lib/python3
>                  .3/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
>                  from 
>                  /Library/Frameworks/Python.framework/Versions/3.3/lib/python3
>                  .3/site-packages/numpy/core/include/numpy/arrayobject.h:4,
>                  from src/agg_py_path_iterator.h:7,
>                  from src/_backend_agg.h:43,
>                  from src/_tkagg.cpp:20:
> /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/
> numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning 
> "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API 
> NPY_1_7_API_VERSION"
> In file included from src/_tkagg.cpp:30:
> /usr/include/tk.h:23:3: error: #error Tk 8.5 must be compiled with tcl.h from 
> Tcl 8.5

This is a bit of a long shot since I have no personal experience with building 
matplotlib but it may be an SDK symlink issue.  IIRC, Xcode 3.2.6, the last 
Xcode 3 release, creates a faulty directory / symlink structure within the 
10.6 SDK.  What you need to have is: 
/Developer/SDKs/MacOSX10.6.sdk/Library/Frameworks containing symlinks to 
/Library/Frameworks/Tcl.framework and /Library/Frameworks/Tk.framework because 
of the -isysroot /Developer/SDKs/MacOSX10.6.sdk on the compiler calls.  Also, 
current versions of Xcode 4 and 5 don't attempt to create a symlink at all so 
you have to do it manually.  3.2.6 does attempt to do so but gets it wrong.

-- 
 Ned Deily,
 nad@acm.org

0
nad4230 (270)
10/18/2013 5:45:43 PM
--047d7bdca8a411b9b704e908d2be
Content-Type: text/plain; charset=ISO-8859-1

I've mentioned on the matplotlib mailing list that 1.3.1 is missing from
pypi.
For installation problems, you'll have more luck on the matplotlib mailing
list than here: it seems you may have some dependencies problem, but I'm
really not competent enough to help you with that.
Cheers,


On 18 October 2013 19:45, Ned Deily <nad@acm.org> wrote:

> In article <m2zjq6mugp.fsf@cochabamba.vanoostrum.org>,
>  Piet van Oostrum <piet@vanoostrum.org> wrote:
> > I tried to install it from source, on Mac OS X 10.6.8, with Python
> > 3.3.2, and Tck/Tk 8.5 installed as Frameworks, but I get an error during
> > compilation. It seems it doesn't find the Tcl/TK framework.
> >
> >
> > building 'matplotlib.backends._tkagg' extension
> > gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3
> -isysroot
> > /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -isysroot
> > /Developer/SDKs/MacOSX10.6.sdk -I/opt/local/include
> > -DPY_ARRAY_UNIQUE_SYMBOL=MPL_matplotlib_backends__tkagg_ARRAY_API
> > -DPYCXX_ISO_CPP_LIB=1 -DPYCXX_PYTHON_2TO3=1
> >
> -I/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-package
> > s/numpy/core/include -I/usr/local/include -I/usr/include
> -I/usr/X11/include
> > -I/opt/local/include -I. -I/Library/Frameworks/Tcl.framework/Headers
> > -I/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders
> > -I/Library/Frameworks/Tk.framework/Headers
> > -I/Library/Frameworks/Tk.framework/Versions/Current/PrivateHeaders
> > -Iagg24/include
> > -I/Library/Frameworks/Python.framework/Versions/3.3/include/python3.3m -c
> > src/ag
> >  g_py_transforms.cpp -o
> >  build/temp.macosx-10.6-intel-3.3/src/agg_py_transforms.o -framework Tcl
> >  -framework Tk
> > In file included from
> >
> /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/
> > numpy/core/include/numpy/ndarraytypes.h:1760,
> >                  from
> >
>  /Library/Frameworks/Python.framework/Versions/3.3/lib/python3
> >
>  .3/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
> >                  from
> >
>  /Library/Frameworks/Python.framework/Versions/3.3/lib/python3
> >
>  .3/site-packages/numpy/core/include/numpy/arrayobject.h:4,
> >                  from src/agg_py_transforms.cpp:6:
> >
> /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/
> > numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning
> > "Using deprecated NumPy API, disable it by " "#defining
> NPY_NO_DEPRECATED_API
> > NPY_1_7_API_VERSION"
> > i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused
> because
> > linking not done
> > i686-apple-darwin10-gcc-4.2.1: Tcl: linker input file unused because
> linking
> > not done
> > i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused
> because
> > linking not done
> > i686-apple-darwin10-gcc-4.2.1: Tk: linker input file unused because
> linking
> > not done
> > In file included from
> >
> /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/
> > numpy/core/include/numpy/ndarraytypes.h:1760,
> >                  from
> >
>  /Library/Frameworks/Python.framework/Versions/3.3/lib/python3
> >
>  .3/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
> >                  from
> >
>  /Library/Frameworks/Python.framework/Versions/3.3/lib/python3
> >
>  .3/site-packages/numpy/core/include/numpy/arrayobject.h:4,
> >                  from src/agg_py_transforms.cpp:6:
> >
> /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/
> > numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning
> > "Using deprecated NumPy API, disable it by " "#defining
> NPY_NO_DEPRECATED_API
> > NPY_1_7_API_VERSION"
> > i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused
> because
> > linking not done
> > i686-apple-darwin10-gcc-4.2.1: Tcl: linker input file unused because
> linking
> > not done
> > i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused
> because
> > linking not done
> > i686-apple-darwin10-gcc-4.2.1: Tk: linker input file unused because
> linking
> > not done
> > gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3
> -isysroot
> > /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -isysroot
> > /Developer/SDKs/MacOSX10.6.sdk -I/opt/local/include
> > -DPY_ARRAY_UNIQUE_SYMBOL=MPL_matplotlib_backends__tkagg_ARRAY_API
> > -DPYCXX_ISO_CPP_LIB=1 -DPYCXX_PYTHON_2TO3=1
> >
> -I/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-package
> > s/numpy/core/include -I/usr/local/include -I/usr/include
> -I/usr/X11/include
> > -I/opt/local/include -I. -I/Library/Frameworks/Tcl.framework/Headers
> > -I/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders
> > -I/Library/Frameworks/Tk.framework/Headers
> > -I/Library/Frameworks/Tk.framework/Versions/Current/PrivateHeaders
> > -Iagg24/include
> > -I/Library/Frameworks/Python.framework/Versions/3.3/include/python3.3m -c
> > src/_t
> >  kagg.cpp -o build/temp.macosx-10.6-intel-3.3/src/_tkagg.o -framework Tcl
> >  -framework Tk
> > In file included from
> >
> /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/
> > numpy/core/include/numpy/ndarraytypes.h:1760,
> >                  from
> >
>  /Library/Frameworks/Python.framework/Versions/3.3/lib/python3
> >
>  .3/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
> >                  from
> >
>  /Library/Frameworks/Python.framework/Versions/3.3/lib/python3
> >
>  .3/site-packages/numpy/core/include/numpy/arrayobject.h:4,
> >                  from src/agg_py_path_iterator.h:7,
> >                  from src/_backend_agg.h:43,
> >                  from src/_tkagg.cpp:20:
> >
> /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/
> > numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning
> > "Using deprecated NumPy API, disable it by " "#defining
> NPY_NO_DEPRECATED_API
> > NPY_1_7_API_VERSION"
> > In file included from src/_tkagg.cpp:30:
> > /usr/include/tk.h:23:3: error: #error Tk 8.5 must be compiled with tcl.h
> from
> > Tcl 8.5
> > In file included from
> >
> /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/
> > numpy/core/include/numpy/ndarraytypes.h:1760,
> >                  from
> >
>  /Library/Frameworks/Python.framework/Versions/3.3/lib/python3
> >
>  .3/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
> >                  from
> >
>  /Library/Frameworks/Python.framework/Versions/3.3/lib/python3
> >
>  .3/site-packages/numpy/core/include/numpy/arrayobject.h:4,
> >                  from src/agg_py_path_iterator.h:7,
> >                  from src/_backend_agg.h:43,
> >                  from src/_tkagg.cpp:20:
> >
> /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/
> > numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning
> > "Using deprecated NumPy API, disable it by " "#defining
> NPY_NO_DEPRECATED_API
> > NPY_1_7_API_VERSION"
> > In file included from src/_tkagg.cpp:30:
> > /usr/include/tk.h:23:3: error: #error Tk 8.5 must be compiled with tcl.h
> from
> > Tcl 8.5
>
> This is a bit of a long shot since I have no personal experience with
> building
> matplotlib but it may be an SDK symlink issue.  IIRC, Xcode 3.2.6, the last
> Xcode 3 release, creates a faulty directory / symlink structure within the
> 10.6 SDK.  What you need to have is:
> /Developer/SDKs/MacOSX10.6.sdk/Library/Frameworks containing symlinks to
> /Library/Frameworks/Tcl.framework and /Library/Frameworks/Tk.framework
> because
> of the -isysroot /Developer/SDKs/MacOSX10.6.sdk on the compiler calls.
>  Also,
> current versions of Xcode 4 and 5 don't attempt to create a symlink at all
> so
> you have to do it manually.  3.2.6 does attempt to do so but gets it wrong.
>
> --
>  Ned Deily,
>  nad@acm.org
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>

--047d7bdca8a411b9b704e908d2be
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I&#39;ve mentioned on the matplotlib mailing list that 1.3=
..1 is missing from pypi.<div>For installation problems, you&#39;ll have mor=
e luck on the matplotlib mailing list than here: it seems you may have some=
 dependencies problem, but I&#39;m really not competent enough to help you =
with that.</div>
<div>Cheers,</div></div><div class=3D"gmail_extra"><br><br><div class=3D"gm=
ail_quote">On 18 October 2013 19:45, Ned Deily <span dir=3D"ltr">&lt;<a hre=
f=3D"mailto:nad@acm.org" target=3D"_blank">nad@acm.org</a>&gt;</span> wrote=
:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-le=
ft:1px #ccc solid;padding-left:1ex">
In article &lt;<a href=3D"mailto:m2zjq6mugp.fsf@cochabamba.vanoostrum.org">=
m2zjq6mugp.fsf@cochabamba.vanoostrum.org</a>&gt;,<br>
<div><div class=3D"h5">=A0Piet van Oostrum &lt;<a href=3D"mailto:piet@vanoo=
strum.org">piet@vanoostrum.org</a>&gt; wrote:<br>
&gt; I tried to install it from source, on Mac OS X 10.6.8, with Python<br>
&gt; 3.3.2, and Tck/Tk 8.5 installed as Frameworks, but I get an error duri=
ng<br>
&gt; compilation. It seems it doesn&#39;t find the Tcl/TK framework.<br>
&gt;<br>
&gt;<br>
&gt; building &#39;matplotlib.backends._tkagg&#39; extension<br>
&gt; gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3 -isy=
sroot<br>
&gt; /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -isysroot<br>
&gt; /Developer/SDKs/MacOSX10.6.sdk -I/opt/local/include<br>
&gt; -DPY_ARRAY_UNIQUE_SYMBOL=3DMPL_matplotlib_backends__tkagg_ARRAY_API<br=
>
&gt; -DPYCXX_ISO_CPP_LIB=3D1 -DPYCXX_PYTHON_2TO3=3D1<br>
&gt; -I/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site=
-package<br>
&gt; s/numpy/core/include -I/usr/local/include -I/usr/include -I/usr/X11/in=
clude<br>
&gt; -I/opt/local/include -I. -I/Library/Frameworks/Tcl.framework/Headers<b=
r>
&gt; -I/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders<br=
>
&gt; -I/Library/Frameworks/Tk.framework/Headers<br>
&gt; -I/Library/Frameworks/Tk.framework/Versions/Current/PrivateHeaders<br>
&gt; -Iagg24/include<br>
&gt; -I/Library/Frameworks/Python.framework/Versions/3.3/include/python3.3m=
 -c<br>
&gt; src/ag<br>
&gt; =A0g_py_transforms.cpp -o<br>
&gt; =A0build/temp.macosx-10.6-intel-3.3/src/agg_py_transforms.o -framework=
 Tcl<br>
&gt; =A0-framework Tk<br>
&gt; In file included from<br>
&gt; /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-p=
ackages/<br>
&gt; numpy/core/include/numpy/ndarraytypes.h:1760,<br>
&gt; =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0from<br>
&gt; =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0/Library/Frameworks/Python.framewor=
k/Versions/3.3/lib/python3<br>
&gt; =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0.3/site-packages/numpy/core/include=
/numpy/ndarrayobject.h:17,<br>
&gt; =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0from<br>
&gt; =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0/Library/Frameworks/Python.framewor=
k/Versions/3.3/lib/python3<br>
&gt; =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0.3/site-packages/numpy/core/include=
/numpy/arrayobject.h:4,<br>
&gt; =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0from src/agg_py_transforms.cpp:6:<b=
r>
&gt; /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-p=
ackages/<br>
&gt; numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warn=
ing<br>
&gt; &quot;Using deprecated NumPy API, disable it by &quot; &quot;#defining=
 NPY_NO_DEPRECATED_API<br>
&gt; NPY_1_7_API_VERSION&quot;<br>
&gt; i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused be=
cause<br>
&gt; linking not done<br>
&gt; i686-apple-darwin10-gcc-4.2.1: Tcl: linker input file unused because l=
inking<br>
&gt; not done<br>
&gt; i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused be=
cause<br>
&gt; linking not done<br>
&gt; i686-apple-darwin10-gcc-4.2.1: Tk: linker input file unused because li=
nking<br>
&gt; not done<br>
&gt; In file included from<br>
&gt; /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-p=
ackages/<br>
&gt; numpy/core/include/numpy/ndarraytypes.h:1760,<br>
&gt; =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0from<br>
&gt; =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0/Library/Frameworks/Python.framewor=
k/Versions/3.3/lib/python3<br>
&gt; =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0.3/site-packages/numpy/core/include=
/numpy/ndarrayobject.h:17,<br>
&gt; =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0from<br>
&gt; =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0/Library/Frameworks/Python.framewor=
k/Versions/3.3/lib/python3<br>
&gt; =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0.3/site-packages/numpy/core/include=
/numpy/arrayobject.h:4,<br>
&gt; =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0from src/agg_py_transforms.cpp:6:<b=
r>
&gt; /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-p=
ackages/<br>
&gt; numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warn=
ing<br>
&gt; &quot;Using deprecated NumPy API, disable it by &quot; &quot;#defining=
 NPY_NO_DEPRECATED_API<br>
&gt; NPY_1_7_API_VERSION&quot;<br>
&gt; i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused be=
cause<br>
&gt; linking not done<br>
&gt; i686-apple-darwin10-gcc-4.2.1: Tcl: linker input file unused because l=
inking<br>
&gt; not done<br>
&gt; i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused be=
cause<br>
&gt; linking not done<br>
&gt; i686-apple-darwin10-gcc-4.2.1: Tk: linker input file unused because li=
nking<br>
&gt; not done<br>
&gt; gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3 -isy=
sroot<br>
&gt; /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -isysroot<br>
&gt; /Developer/SDKs/MacOSX10.6.sdk -I/opt/local/include<br>
&gt; -DPY_ARRAY_UNIQUE_SYMBOL=3DMPL_matplotlib_backends__tkagg_ARRAY_API<br=
>
&gt; -DPYCXX_ISO_CPP_LIB=3D1 -DPYCXX_PYTHON_2TO3=3D1<br>
&gt; -I/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site=
-package<br>
&gt; s/numpy/core/include -I/usr/local/include -I/usr/include -I/usr/X11/in=
clude<br>
&gt; -I/opt/local/include -I. -I/Library/Frameworks/Tcl.framework/Headers<b=
r>
&gt; -I/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders<br=
>
&gt; -I/Library/Frameworks/Tk.framework/Headers<br>
&gt; -I/Library/Frameworks/Tk.framework/Versions/Current/PrivateHeaders<br>
&gt; -Iagg24/include<br>
&gt; -I/Library/Frameworks/Python.framework/Versions/3.3/include/python3.3m=
 -c<br>
</div></div>&gt; src/_t<br>
<div><div class=3D"h5">&gt; =A0kagg.cpp -o build/temp.macosx-10.6-intel-3.3=
/src/_tkagg.o -framework Tcl<br>
&gt; =A0-framework Tk<br>
&gt; In file included from<br>
&gt; /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-p=
ackages/<br>
&gt; numpy/core/include/numpy/ndarraytypes.h:1760,<br>
&gt; =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0from<br>
&gt; =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0/Library/Frameworks/Python.framewor=
k/Versions/3.3/lib/python3<br>
&gt; =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0.3/site-packages/numpy/core/include=
/numpy/ndarrayobject.h:17,<br>
&gt; =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0from<br>
&gt; =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0/Library/Frameworks/Python.framewor=
k/Versions/3.3/lib/python3<br>
&gt; =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0.3/site-packages/numpy/core/include=
/numpy/arrayobject.h:4,<br>
&gt; =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0from src/agg_py_path_iterator.h:7,<=
br>
&gt; =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0from src/_backend_agg.h:43,<br>
&gt; =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0from src/_tkagg.cpp:20:<br>
&gt; /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-p=
ackages/<br>
&gt; numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warn=
ing<br>
&gt; &quot;Using deprecated NumPy API, disable it by &quot; &quot;#defining=
 NPY_NO_DEPRECATED_API<br>
&gt; NPY_1_7_API_VERSION&quot;<br>
&gt; In file included from src/_tkagg.cpp:30:<br>
&gt; /usr/include/tk.h:23:3: error: #error Tk 8.5 must be compiled with tcl=
..h from<br>
&gt; Tcl 8.5<br>
&gt; In file included from<br>
&gt; /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-p=
ackages/<br>
&gt; numpy/core/include/numpy/ndarraytypes.h:1760,<br>
&gt; =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0from<br>
&gt; =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0/Library/Frameworks/Python.framewor=
k/Versions/3.3/lib/python3<br>
&gt; =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0.3/site-packages/numpy/core/include=
/numpy/ndarrayobject.h:17,<br>
&gt; =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0from<br>
&gt; =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0/Library/Frameworks/Python.framewor=
k/Versions/3.3/lib/python3<br>
&gt; =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0.3/site-packages/numpy/core/include=
/numpy/arrayobject.h:4,<br>
&gt; =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0from src/agg_py_path_iterator.h:7,<=
br>
&gt; =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0from src/_backend_agg.h:43,<br>
&gt; =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0from src/_tkagg.cpp:20:<br>
&gt; /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-p=
ackages/<br>
&gt; numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warn=
ing<br>
&gt; &quot;Using deprecated NumPy API, disable it by &quot; &quot;#defining=
 NPY_NO_DEPRECATED_API<br>
&gt; NPY_1_7_API_VERSION&quot;<br>
&gt; In file included from src/_tkagg.cpp:30:<br>
&gt; /usr/include/tk.h:23:3: error: #error Tk 8.5 must be compiled with tcl=
..h from<br>
&gt; Tcl 8.5<br>
<br>
</div></div>This is a bit of a long shot since I have no personal experienc=
e with building<br>
matplotlib but it may be an SDK symlink issue. =A0IIRC, Xcode 3.2.6, the la=
st<br>
Xcode 3 release, creates a faulty directory / symlink structure within the<=
br>
10.6 SDK. =A0What you need to have is:<br>
/Developer/SDKs/MacOSX10.6.sdk/Library/Frameworks containing symlinks to<br=
>
/Library/Frameworks/Tcl.framework and /Library/Frameworks/Tk.framework beca=
use<br>
of the -isysroot /Developer/SDKs/MacOSX10.6.sdk on the compiler calls. =A0A=
lso,<br>
current versions of Xcode 4 and 5 don&#39;t attempt to create a symlink at =
all so<br>
you have to do it manually. =A03.2.6 does attempt to do so but gets it wron=
g.<br>
<span class=3D"HOEnZb"><font color=3D"#888888"><br>
--<br>
=A0Ned Deily,<br>
=A0<a href=3D"mailto:nad@acm.org">nad@acm.org</a><br>
<br>
--<br>
<a href=3D"https://mail.python.org/mailman/listinfo/python-list" target=3D"=
_blank">https://mail.python.org/mailman/listinfo/python-list</a><br>
</font></span></blockquote></div><br></div>

--047d7bdca8a411b9b704e908d2be--
0
10/18/2013 7:20:00 PM
Ned Deily <nad@acm.org> writes:

> In article <m2zjq6mugp.fsf@cochabamba.vanoostrum.org>,
>  Piet van Oostrum <piet@vanoostrum.org> wrote:
>> I tried to install it from source, on Mac OS X 10.6.8, with Python
>> 3.3.2, and Tck/Tk 8.5 installed as Frameworks, but I get an error during
>> compilation. It seems it doesn't find the Tcl/TK framework.
>> 
>> 
>> building 'matplotlib.backends._tkagg' extension
>> gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3 -isysroot 
>> /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -isysroot 
>> /Developer/SDKs/MacOSX10.6.sdk -I/opt/local/include 
>> -DPY_ARRAY_UNIQUE_SYMBOL=MPL_matplotlib_backends__tkagg_ARRAY_API 
>> -DPYCXX_ISO_CPP_LIB=1 -DPYCXX_PYTHON_2TO3=1 
>> -I/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-package
>> s/numpy/core/include -I/usr/local/include -I/usr/include -I/usr/X11/include 
>> -I/opt/local/include -I. -I/Library/Frameworks/Tcl.framework/Headers 
>> -I/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders 
>> -I/Library/Frameworks/Tk.framework/Headers 
>> -I/Library/Frameworks/Tk.framework/Versions/Current/PrivateHeaders 
>> -Iagg24/include 
>> -I/Library/Frameworks/Python.framework/Versions/3.3/include/python3.3m -c 
>> src/ag
>>  g_py_transforms.cpp -o 
>>  build/temp.macosx-10.6-intel-3.3/src/agg_py_transforms.o -framework Tcl 
>>  -framework Tk
>> In file included from 
>> /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/
>> numpy/core/include/numpy/ndarraytypes.h:1760,
>>                  from 
>>                  /Library/Frameworks/Python.framework/Versions/3.3/lib/python3
>>                  .3/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
>>                  from 
>>                  /Library/Frameworks/Python.framework/Versions/3.3/lib/python3
>>                  .3/site-packages/numpy/core/include/numpy/arrayobject.h:4,
>>                  from src/agg_py_transforms.cpp:6:
>> /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/
>> numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning 
>> "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API 
>> NPY_1_7_API_VERSION"
>> i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused because 
>> linking not done
>> i686-apple-darwin10-gcc-4.2.1: Tcl: linker input file unused because linking 
>> not done
>> i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused because 
>> linking not done
>> i686-apple-darwin10-gcc-4.2.1: Tk: linker input file unused because linking 
>> not done
>> In file included from 
>> /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/
>> numpy/core/include/numpy/ndarraytypes.h:1760,
>>                  from 
>>                  /Library/Frameworks/Python.framework/Versions/3.3/lib/python3
>>                  .3/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
>>                  from 
>>                  /Library/Frameworks/Python.framework/Versions/3.3/lib/python3
>>                  .3/site-packages/numpy/core/include/numpy/arrayobject.h:4,
>>                  from src/agg_py_transforms.cpp:6:
>> /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/
>> numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning 
>> "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API 
>> NPY_1_7_API_VERSION"
>> i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused because 
>> linking not done
>> i686-apple-darwin10-gcc-4.2.1: Tcl: linker input file unused because linking 
>> not done
>> i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused because 
>> linking not done
>> i686-apple-darwin10-gcc-4.2.1: Tk: linker input file unused because linking 
>> not done
>> gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3 -isysroot 
>> /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -isysroot 
>> /Developer/SDKs/MacOSX10.6.sdk -I/opt/local/include 
>> -DPY_ARRAY_UNIQUE_SYMBOL=MPL_matplotlib_backends__tkagg_ARRAY_API 
>> -DPYCXX_ISO_CPP_LIB=1 -DPYCXX_PYTHON_2TO3=1 
>> -I/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-package
>> s/numpy/core/include -I/usr/local/include -I/usr/include -I/usr/X11/include 
>> -I/opt/local/include -I. -I/Library/Frameworks/Tcl.framework/Headers 
>> -I/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders 
>> -I/Library/Frameworks/Tk.framework/Headers 
>> -I/Library/Frameworks/Tk.framework/Versions/Current/PrivateHeaders 
>> -Iagg24/include 
>> -I/Library/Frameworks/Python.framework/Versions/3.3/include/python3.3m -c 
>> src/_t
>>  kagg.cpp -o build/temp.macosx-10.6-intel-3.3/src/_tkagg.o -framework Tcl 
>>  -framework Tk
>> In file included from 
>> /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/
>> numpy/core/include/numpy/ndarraytypes.h:1760,
>>                  from 
>>                  /Library/Frameworks/Python.framework/Versions/3.3/lib/python3
>>                  .3/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
>>                  from 
>>                  /Library/Frameworks/Python.framework/Versions/3.3/lib/python3
>>                  .3/site-packages/numpy/core/include/numpy/arrayobject.h:4,
>>                  from src/agg_py_path_iterator.h:7,
>>                  from src/_backend_agg.h:43,
>>                  from src/_tkagg.cpp:20:
>> /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/
>> numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning 
>> "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API 
>> NPY_1_7_API_VERSION"
>> In file included from src/_tkagg.cpp:30:
>> /usr/include/tk.h:23:3: error: #error Tk 8.5 must be compiled with tcl.h from 
>> Tcl 8.5
>> In file included from 
>> /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/
>> numpy/core/include/numpy/ndarraytypes.h:1760,
>>                  from 
>>                  /Library/Frameworks/Python.framework/Versions/3.3/lib/python3
>>                  .3/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
>>                  from 
>>                  /Library/Frameworks/Python.framework/Versions/3.3/lib/python3
>>                  .3/site-packages/numpy/core/include/numpy/arrayobject.h:4,
>>                  from src/agg_py_path_iterator.h:7,
>>                  from src/_backend_agg.h:43,
>>                  from src/_tkagg.cpp:20:
>> /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/
>> numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning 
>> "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API 
>> NPY_1_7_API_VERSION"
>> In file included from src/_tkagg.cpp:30:
>> /usr/include/tk.h:23:3: error: #error Tk 8.5 must be compiled with tcl.h from 
>> Tcl 8.5
>
> This is a bit of a long shot since I have no personal experience with building 
> matplotlib but it may be an SDK symlink issue.  IIRC, Xcode 3.2.6, the last 
> Xcode 3 release, creates a faulty directory / symlink structure within the 
> 10.6 SDK.  What you need to have is: 
> /Developer/SDKs/MacOSX10.6.sdk/Library/Frameworks containing symlinks to 
> /Library/Frameworks/Tcl.framework and /Library/Frameworks/Tk.framework because 
> of the -isysroot /Developer/SDKs/MacOSX10.6.sdk on the compiler calls.  Also, 
> current versions of Xcode 4 and 5 don't attempt to create a symlink at all so 
> you have to do it manually.  3.2.6 does attempt to do so but gets it wrong.

Thanks for your suggestion. I needed to do this, but it solved a different problem.

The compilation problem above appears to be caused by settings of CPPFLAGS and/or LDFLAGS that pointed to my macports installation. Unsetting these before compilation solved the compiler error.

However, the links you mentioned were also necessary. Without them matplotlib links against the system Tcl/TK in /System/Library, whereas Python's tkinter is linked to the one in /Library. This gives a clash at runtime:

"Class TKApplication is implemented in both /Library/Frameworks/Tk.framework/Versions/8.5/Tk and /System/Library/Frameworks/Tk.framework/Versions/8.5/Tk. One of the two will be used. Which one is undefined."

and a couple more of these. Thereafter it crashes. The links in /Developer/SDKs/MacOSX10.6.sdk/Library/Frameworks to the frameworks in /Library make the thing consistent.
-- 
Piet van Oostrum <piet@vanoostrum.org>
WWW: http://pietvanoostrum.com/
PGP key: [8DAE142BE17999C4]
0
piet2545 (117)
10/19/2013 3:18:35 PM
Reply:

Similar Artilces:

Problem installing matplotlib 1.3.1 with Python 2.7.6 and 3.3.3 (release candidate 1)
Hello, I tried to install matplotlib 1.3.1 on the release candidates of Python 2.7.6 and 3.3.3. I am on Mac OS X 10.6.8. Although the installation gave no problems, there is a problem with Tcl/Tk. The new Pythons have their own embedded Tcl/Tk, but when installing matplotlib it links to the Frameworks version of Tcl and TK, not to the embedded version. This causes confusion when importing matplotlib.pyplot: objc[70648]: Class TKApplication is implemented in both /Library/Frameworks/Python.framework/Versions/2.7/lib/libtk8.5.dylib and /Library/Frameworks/Tk.framework/Versions/8.5/Tk....

[RELEASED] Python 3.2.4 rc 1 and Python 3.3.1 rc 1
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On behalf of the Python development team, I am pleased to announce the first release candidates of Python 3.2.4 and 3.3.1. Python 3.2.4 will be the last regular maintenance release for the Python 3.2 series, while Python 3.3.1 is the first maintenance release for the 3.3 series. Both releases include hundreds of bugfixes. There has recently been a lot of discussion about XML-based denial of service attacks. Specifically, certain XML files can cause XML parsers, including ones in the Python stdlib, to consume gigabytes of RAM and swamp the CPU. These releases do not include any changes in Python XML code to address these issues. Interested parties should examine the defusedxml package on PyPI: https://pypi.python.org/pypi/defusedxml These are testing releases: Please consider trying them with your code and reporting any bugs you may notice to: http://bugs.python.org/ To download Python 3.2.4 or Python 3.3.1, visit: http://www.python.org/download/releases/3.2.4/ or http://www.python.org/download/releases/3.3.1/ respectively. Enjoy! - -- Georg Brandl, Release Manager georg at python.org (on behalf of the entire python-dev team and all contributors) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iEYEARECAAYFAlFRRIoACgkQN9GcIYhpnLD6jACgnzYdYRKZ4kwkKeN3zSLSZ3Zr M/IAn17vlpxI3a3xk+i/ODOrCkMnRZro =B5sA -----END PGP SIGNATURE----- ...

[RELEASED] Python 3.2.4 rc 1 and Python 3.3.1 rc 1
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On behalf of the Python development team, I am pleased to announce the first release candidates of Python 3.2.4 and 3.3.1. Python 3.2.4 will be the last regular maintenance release for the Python 3.2 series, while Python 3.3.1 is the first maintenance release for the 3.3 series. Both releases include hundreds of bugfixes. There has recently been a lot of discussion about XML-based denial of service attacks. Specifically, certain XML files can cause XML parsers, including ones in the Python stdlib, to consume gigabytes of RAM and swa...

ActivePython 3.1.1.2 vs Python 3.1.1 for OSX?
I am just curious which I should use. I am going to start learning Python soon. Are they comparable and I just do a "eenie meenie minie moe"? Bob On 1 Oct, 00:51, Robert Hicks <sigz...@gmail.com> wrote: > I am just curious which I should use. I am going to start learning > Python soon. Are they comparable and I just do a "eenie meenie minie > moe"? > > Bob First off, a great choice of language to begin trying! Is it your first language (I'm guessing not), or do you come from another 'background'. Basically, Active is a possible 'supe...

how can i write this statement labels=[1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;2;2;2;2;2;2;2;2;2;2;2;2;2;2;2;2;2;2;2;2;2;2;2;2;3;3;3;3;3;3;3;3;3;3;3;3;3;3;3;3;3;3;3;3;3;3;3;3;]; in compress fo
How to write it in compact form to avoid repetition "shah " <shahkhn3@gmail.com> wrote in message <lodugh$8hr$1@newscl01ah.mathworks.com>... > How to write it in compact form to avoid repetition You'll find in this thread different solutions for similar question http://www.mathworks.fr/matlabcentral/newsreader/view_thread/335814 Bruno ...

ANN: Openstep for Zaurus: mySTEP-1.4, myPDA-3.1a5 ANN: Openstep for Zaurus: mySTEP-1.3, myPDA-3.1a4, Zaurus-gcc-2.95.3X10.3a1 ANN: Openstep for Zaurus: mySTEP-1.4, myPDA-3.1a5
Dear all, again new releases for the GNUstep clone "mySTEP" for the Sharp Zaurus and its runtime environment "myPDA" (X11 + window manager) as well as an update for the gcc cross-compiler development kit hosted on MacOS X 10.3 are available. The system is becoming more and more mature - although it is not yet ripe enough for productivity. It allows you to take the source of Cocoa applications, add a simple shell-script build phase, and compile into a "fat binary" .app bundle that runs verbatim on MacOS X as well as on a standard Zaurus on which myPDA is...

1 - 1, 1 -1, 1-1, 1
Hi, I have a question regarding lexical analysis. I recently came across a bug in our lexical analyser in phc (www.phpcompiler.org), that I am unsure how to solve. This is the problem: our current definition for integer constant looks something like INT ([1-9][0-9]*)|0 In particular, note that it does not allow for an (optional) "+" or "-" at the start of the integer. This means that the strings "1 - 1", "1 -1" and "1-1" all generate the same sequence of three tokens INT(1), OP(-), INT(1), for which the syntax analyser generates the subtree BIN_OP(-, 1, 1). For the string "1 - -1", the lexer (unsurprisingly) generates INT(1), OP(-), OP(-), INT(1). The syntax analyser recognises this as BIN_OP(1, UNARY_OP(-, 1)). In other words, the second "-" is treated as a unary operator, rather than as part of the number. This works fine, with the sole exception of the number "-2147483648". The problem is, of course, overflow: -2147483648 is a valid negative number (assuming 32-bit numbers), but the integer 2147483648 is _not_ a valid positive number. Thus, the above method of dealing with "-" as a unary operator breaks down. The solution is to interpret the "-" as part of the number, and generate INT(-2147483648), rather than OP(-), INT(...). However, changing the definition of INT to INT [+-]?([1-9][0-9]*)|0 causes "1-1" to be recognised as INT(1), INT(-1), which is...

1.1.1.1 ?
hi my firewall logs dropped packets from an internal IP address trying to contact 1.1.1.1 through port 9999. Any ideas whether 1.1.1.1 is valid IP? and what is port 9999?? thanks mike wrote: > hi > > my firewall logs dropped packets from an internal IP address trying to > contact 1.1.1.1 through port 9999. Any ideas whether 1.1.1.1 is valid > IP? and what is port 9999?? > thanks These trojans *BlitzNet*, *Backdoor.Oracle*, *Backdoor.Spadeace* uses port 9999 -- S.S. "StarScripter" <Star@privacy.net> wrote in message news:<bv8ejj$p54t3$1@ID-185702.new...

[ANN] Pylint 1.3.1 / Astroid 1.2.1 released
Hello! I'm happy to announce that Pylint 1.3.1 and Astroid 1.2.1 were released. These releases include some bugfixes with the new string formatting checker and a couple of crash fixes. Please note that Pylint 1.3.X is the last version of Pylint which supports Python 2.5 and 2.6. Enjoy! ...

[ANN] Pylint 1.3.1 / Astroid 1.2.1 released
Hello! I'm happy to announce that Pylint 1.3.1 and Astroid 1.2.1 were released. These releases include some bugfixes with the new string formatting checker and a couple of crash fixes. Please note that Pylint 1.3.X is the last version of Pylint which supports Python 2.5 and 2.6. Enjoy! ...

[ANN] Pylint 1.4.1 / Astroid 1.3.3 released
Hello, It's my pleasure to announce the release of both Pylint 1.4.1 and Astroid 1.3.3 respectively. The following bug fixes and features made their way into Astroid 1.3.3: * Restore file_stream to a property, but deprecate it in favour of the newly added method Module.stream. * Add inference tips for 'tuple', 'list', 'dict' and 'set' builtins. * Add brain definition for most string and unicode methods * Add a new method to Class nodes, 'mro', for obtaining the the method resolution order of the clas...

[ANN] Pylint 1.4.1 / Astroid 1.3.3 released
Hello, It's my pleasure to announce the release of both Pylint 1.4.1 and Astroid 1.3.3 respectively. The following bug fixes and features made their way into Astroid 1.3.3: * Restore file_stream to a property, but deprecate it in favour of the newly added method Module.stream. * Add inference tips for 'tuple', 'list', 'dict' and 'set' builtins. * Add brain definition for most string and unicode methods * Add a new method to Class nodes, 'mro', for obtaining the the method resolution order of the clas...

[1 1 1 1 1 ;2 2 2 2 2 ;3 3 3 3 3 3;....;n n n n n]
Hi, Anybody knows how to create this matrix but without using any loops? a=[1 1 1 1 1 ;2 2 2 2 2 ;3 3 3 3 3 ;.......;n n n n n ] Thank you. Hana. Hana wrote: > Hi, > Anybody knows how to create this matrix but without using any loops? > a=[1 1 1 1 1 ;2 2 2 2 2 ;3 3 3 3 3 ;.......;n n n n n ] HELP REPMAT - Randy Hana wrote: > > > Hi, > Anybody knows how to create this matrix but without using any > loops? > a=[1 1 1 1 1 ;2 2 2 2 2 ;3 3 3 3 3 ;.......;n n n n n ] > > Thank you. > Hana. Hope this isn't homework. >> repmat([1:n]'...

ANN: ParseTree 1.3.3 and ruby2c 1.0.0 beta 1
Actual announcements are on http://blog.zenspider.com/ Copy/paste job below: ===== I am releasing ParseTree 1.3.3 today in preparation of our ruby2c release (also today). Changes in ParseTree are minor, but necessary for ruby2c. ParseTree is a C extension (using RubyInline) that extracts the parse tree for an entire class or a specific method and returns it as a s-expression (aka sexp) using ruby's arrays, strings, symbols, and integers. As an example: def conditional1(arg1) if arg1 == 0 then return 1 end return 0 end becomes: [:defn, :c...

ANN: Webware for Python 1.1.1 released
Version 1.1.1 of Webware for Python can now be downloaded at http://downloads.sourceforge.net/webware/Webware-1.1.1.tar.gz. This is a bugfix release with some fixes and small improvements. Webware for Python is a mature and stable web framework that has been around since more than a decade. Version 1.1.1 runs on Python 2.4 to 2.7. You can find more info on the Webware for Python homepage at http://www.webwareforpython.org/ Support is available via the Webware for Python mailing lists at https://sourceforge.net/mail/?group_id=4866 -- Christoph Zwerschke ...

Port 6667 & 10.0.1.128/1.1.1.1/1.3.3.7
Hello, I'm seeing a lot of traffic trying to leave my firewall destined for port 6667 at the IPs 10.0.1.128, 10.10.10.10, 1.1.1.1 and 1.3.3.7 (sounds like l337/elite to me :-). Yes - I know the 10.x.x.x traffic isn't going too far.... RFC1918, etc, etc. Various Google searches and searches on the various A/V sites haven't turned up a definite answer - just more questions about the same thing. Can anyone clue me in to the exact trojan/worm/virus this may be and/or if they're seeing the same kind of traffic. Any insight is appreciated.... Thanks. B > Hello, > >...

[ANN] unicorn 3.3.1 and 1.1.6
Unicorn is an HTTP server for Rack applications designed to only serve fast clients on low-latency, high-bandwidth connections and take advantage of features in Unix/Unix-like kernels. Slow clients should only be served by placing a reverse proxy capable of fully buffering both the the request and response in between Unicorn and slow clients. * http://unicorn.bogomips.org/ * mongrel-unicorn@rubyforge.org * git://git.bogomips.org/unicorn.git Changes: We now close the client socket after closing the response body. This does not affect most applications that run under Unicorn, i...

ANN: HDF5 for Python (h5py) 1.3.1 BETA
HDF5 for Python (h5py) 1.3.1 *BETA* =================================== HDF5 for Python 1.3.1-beta is now available! This release includes numerous bugfixes and performance improvements, along with support for new versions of HDF5 and Python. In particular, HDF5 1.8.5 is now supported, along with Python 2.7 on Windows. The beta will be available for approximately two weeks. Bug reports and comments are more than welcome, either at the h5py mailing list (h5py at googlegroups) or directly via the bug tracker at h5py.googlecode.com. What is h5py? ------------- HDF5 for Python...

ANN: Portable Python 3.2.1.1 released
Dear people, I would like to announce new release of Portable Python based on Python 3.2= .. Included in this release: ------------------------- * NetworkX v.1.4 * PySerial v.2.5 * PyScripter v.2.4.1 * PyWin32 v.216 * RPyC v.3.0.7 Installation and use: --------------------- After downloading, run the installer, select the packages you would like to= install, select target folder and you are done! In the main folder you wil= l find shortcuts for selected applications in that package. Some of the mos= t popular free Python IDE=92s come preinstalled and preconfigured with Port= able Python. How to use and configure them further please consult their doc= umentation or project sites. kind regards, Perica Zivkovic http://www.PortablePython.com ...

[tao-announce] [ANN] R2CORBA 1.3.1 released.
Remedy IT is pleased to announce the release of version 1.3.1 of R2CORBA, an implementation of the Ruby CORBA Language mapping (RCLM). This software is provided as Open Source. R2CORBA provides a 100% OMG RCLM compliant CORBA implementation for MRI and JRuby running on Windows (32bit and 64bit) and Linux (32bit and 64bit) featuring: * 100% native Ruby IDL compiler; * support for direct IDL inclusion in Ruby code; * support for Ruby CORBA clients; * support for Ruby CORBA servants; * support for all IDL defined datatypes; * and more... The most important changes in this release ...

[ciao-announce] [ANN] R2CORBA 1.3.1 released.
Remedy IT is pleased to announce the release of version 1.3.1 of R2CORBA, an implementation of the Ruby CORBA Language mapping (RCLM). This software is provided as Open Source. R2CORBA provides a 100% OMG RCLM compliant CORBA implementation for MRI and JRuby running on Windows (32bit and 64bit) and Linux (32bit and 64bit) featuring: * 100% native Ruby IDL compiler; * support for direct IDL inclusion in Ruby code; * support for Ruby CORBA clients; * support for Ruby CORBA servants; * support for all IDL defined datatypes; * and more... The most important changes in this release ...

plot 1, -1, 1, -1, -1
Hi, How to plot those numbers in a rectangle style? thanks x = linspace(-4*pi,4*pi,1000); y = sin(x); plot(x,sign(y)), axis([-12 12 -2 2]) PZ <patrick.zou@gmail.com> wrote in message <d64c545f-f2ac-4f87-af89-051bda896707@x6g2000vbg.googlegroups.com>... > Hi, > > How to plot those numbers in a rectangle style? > > thanks help stairs stairs([-1 1 -1 1 -1 1]) hth Jos ...

ANNOUNCE: omniORB 4.1.1 and omniORBpy 3.1
I am pleased to announce that omniORB 4.1.1 and omniORBpy 3.1 are now available. omniORB is a robust, high performance CORBA implementation for C++; omniORBpy is a version for Python. You can download them in source and Windows binary forms from SourceForge: http://sourceforge.net/project/showfiles.php?group_id=51138&package_id=44914&release_id=544978 http://sourceforge.net/project/showfiles.php?group_id=51138&package_id=48639&release_id=544980 These are mainly bug fix releases, with a number of minor new features. See the release notes and bug lists for more details: F...

Shorten for Python 3.1 (Petit =?iso-8859-1?q?abg=E9r=E9_Python?= 3.1)
This is (sadly) not an update of the PARC, just a two-sides A4, in french, = for=20 students, but which can be reused by other people as a memento. It is available at: http://perso.limsi.fr/pointal/python:cours:abrege Direct PDF link: http://perso.limsi.fr/pointal/_media/python:cours:abregepython.pdf And if you want to rework/modify it (by exemple traduce the few sentences i= t=20 contains into english, deutch, spanish... - I'll be happy to put it online = in=20 same page), the source ODT link: http://perso.limsi.fr/pointal/_media/python:cours:abregepython.odt A+ Laure...

Web resources about - ANN: matplotlib 1.3.1 - comp.lang.python.announce

matplotlib: python plotting — Matplotlib 1.3.1 documentation
), web application servers, and six graphical user interface toolkits. matplotlib tries to make easy things easy and hard things possible. You ...

matplotlib: python plotting — Matplotlib 1.1.1rc documentation
Please donate to support matplotlib development. Matplotlib 1.1.1 is available for download .See what's new and tips on installing . Sandro ...

GitHub - jakevdp/mpld3: D3 Renderings of Matplotlib Graphics
mpld3 - D3 Renderings of Matplotlib Graphics

Pythonista 1.5: Custom Interfaces, matplotlib, and No More “Open In”
Pythonista 1.5, the latest version of Ole Zorn's Python interpreter for iOS, has been released today on the App Store, bringing new modules, ...

Newest 'vim' Questions - Stack Overflow
... learn python27. I am using windows 8.1, cygwin, and Vim74 (running from cygwin command line). When executing this simple script...import matplotlib.pyplot ...

Chris Fonnesbeck (@fonnesbeck) on Twitter
Sign in Sign up To bring you Twitter, we and our partners use cookies on our and other websites. Cookies help personalize Twitter content, tailor ...

MATLAB - Wikipedia, the free encyclopedia
MATLAB ( mat rix lab oratory) is a numerical computing environment and fourth-generation programming language . Developed by MathWorks , MATLAB ...

Python (programming language) - Wikipedia, the free encyclopedia
.py, .pyw, .pyc, .pyo, .pyd Python is an interpreted computer language; it first converts the source code into intermediate " bytecode ", then ...

Neopythonic
skip to main - skip to sidebar Thursday, November 5, 2009 Python in the Scientific World Yesterday I attended a biweekly meeting of an informal ...

Google Developers Blog: maps apis
Last week Felipe and Michael from the Google Cloud Platform Developer Relations team released a video demonstrating the new Pearson correlation ...

Resources last updated: 3/3/2016 3:08:09 PM