#19955: matplotlib-0.98.5.3 Configure error - Build fails when Tkinter missing ------------------------------------------+--------------------------------- Reporter: hans.ekkehard.plesser@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: | Port: matplotlib ------------------------------------------+--------------------------------- I tried to install matplotlib issuing {{{ sudo port install matplotlib }}} and ended up with the following error message {{{ ---> Building py25-matplotlib Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-matplotlib/work/matplotlib-0.98.5.3" && /opt/local/bin/python2.5 setup.py --no-user-cfg build " returned error 1 Command output: ============================================================================ BUILDING MATPLOTLIB matplotlib: 0.98.5.3 python: 2.5.4 (r254:67916, Mar 11 2009, 12:47:11) [GCC 4.0.1 (Apple Inc. build 5490)] platform: darwin REQUIRED DEPENDENCIES numpy: 1.2.1 freetype2: 9.19.3 OPTIONAL BACKEND DEPENDENCIES libpng: 1.2.35 Tkinter: no * TKAgg requires Tkinter Traceback (most recent call last): File "setup.py", line 137, in <module> build_tkagg(ext_modules, packages) File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-matplotlib/work/matplotlib-0.98.5.3/setupext.py", line 1123, in build_tkagg add_tk_flags(module) # do this first File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-matplotlib/work/matplotlib-0.98.5.3/setupext.py", line 1041, in add_tk_flags module.libraries.extend(['tk' + tk_ver, 'tcl' + tk_ver]) UnboundLocalError: local variable 'tk_ver' referenced before assignment }}} The error did not disappear after installing py25-tkinter` and `tk`. Installation worked when deactivating tkinter variant with `-tkinter`. -- Ticket URL: <http://trac.macports.org/ticket/19955> MacPorts <http://www.macports.org/> Ports system for Mac OS