Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problem installing matplotlib 1.3.1 with Python 2.7.6 and 3.3.3 (release candidate 1)

101 views
Skip to first unread message

Piet van Oostrum

unread,
Nov 3, 2013, 8:15:51 PM11/3/13
to matplotl...@lists.sourceforge.net, pytho...@python.org, pytho...@python.org
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. One of the two will be used. Which one is undefined.
objc[70648]: Class TKMenu is implemented in both /Library/Frameworks/Python.framework/Versions/2.7/lib/libtk8.5.dylib and /Library/Frameworks/Tk.framework/Versions/8.5/Tk. One of the two will be used. Which one is undefined.
objc[70648]: Class TKContentView is implemented in both /Library/Frameworks/Python.framework/Versions/2.7/lib/libtk8.5.dylib and /Library/Frameworks/Tk.framework/Versions/8.5/Tk. One of the two will be used. Which one is undefined.
objc[70648]: Class TKWindow is implemented in both /Library/Frameworks/Python.framework/Versions/2.7/lib/libtk8.5.dylib and /Library/Frameworks/Tk.framework/Versions/8.5/Tk. One of the two will be used. Which one is undefined.

And then later it gives a lot of error messages.

So I think it should be linked to the embedded version. For this the matplotlib setupext.py should be adapted to find out if there is an embedded Tcl/Tk in the Python installation and set the link parameters accordingly. However, the installed Python versions (from the DMG's) do not contain the Tcl/Tk header files, only the shared library and the tcl files. So I thing the distributed Python should also include the Tcl/Tk header files.
--
Piet van Oostrum <pi...@vanoostrum.org>
WWW: http://pietvanoostrum.com/
PGP key: [8DAE142BE17999C4]

Ned Deily

unread,
Nov 3, 2013, 7:59:26 PM11/3/13
to pytho...@python.org, pytho...@python.org, matplotl...@lists.sourceforge.net
In article <21110.62791....@cochabamba.vanoostrum.org>,
Piet van Oostrum <pi...@vanoostrum.org> wrote:
> I tried to install matplotlib 1.3.1 on the release candidates of Python 2.7.6
> and 3.3.3.

[...]

Please open an issue on the Python bug tracker for the Python component of
this.

http://bugs.python.org

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

Georg Brandl

unread,
Nov 4, 2013, 1:41:21 AM11/4/13
to pytho...@python.org, matplotl...@lists.sourceforge.net, pytho...@python.org
And please mark as release blocker, I think this should go into 3.3.3rc2.

Georg

0 new messages