[MacPorts] #19987: py25-matplotlib+tkinter -0.98.5.3 fails to build

MacPorts noreply at macports.org
Wed Jun 17 15:09:11 PDT 2009


#19987: py25-matplotlib+tkinter -0.98.5.3 fails to build
---------------------------------+------------------------------------------
 Reporter:  tino@…               |       Owner:  macports-tickets@…                   
     Type:  defect               |      Status:  new                                  
 Priority:  Normal               |   Milestone:                                       
Component:  ports                |     Version:  1.7.1                                
 Keywords:  matplotlib, Tkinter  |        Port:  py25-matplotlib-0.98.5.3             
---------------------------------+------------------------------------------
 I saw this same problem in ticket #19955. The problem there was solved by
 upgrading the python version.  I have the latest version python25
 @2.5.4_5+darwin_9+macosx and still get the same error.

 {{{
 sudo port install py25-matplotlib
 ...
 --->  Building py25-matplotlib
 Error: Target org.macports.build returned: shell command " cd
 "/macports/var/macports/build/_macports_var_macports_sources_rsync.macports.org_release_ports_python_py25-matplotlib/work/matplotlib-0.98.5.3"
 && /macports/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, Jun 17 2009, 14:04:54)  [GCC
                         4.0.1 (Apple Inc. build 5490)]
               platform: darwin

 REQUIRED DEPENDENCIES
                  numpy: 1.3.0
              freetype2: 9.20.3

 OPTIONAL BACKEND DEPENDENCIES
                 libpng: 1.2.37
                Tkinter: no
                         * TKAgg requires Tkinter
 Traceback (most recent call last):
   File "setup.py", line 137, in <module>
     build_tkagg(ext_modules, packages)
   File
 "/macports/var/macports/build/_macports_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
 "/macports/var/macports/build/_macports_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

 }}}


 As suggested in the previous ticket I ran:

 {{{
 $ sudo port clean py25-matplotlib
 $ sudo port -d install py25-matplotlib
 }}}

 and here is the output:


 {{{
 DEBUG: Found port in
 file:///macports/var/macports/sources/rsync.macports.org/release/ports/python/py25-matplotlib
 DEBUG: Changing to port directory:
 /macports/var/macports/sources/rsync.macports.org/release/ports/python/py25-matplotlib
 DEBUG: setting option os.universal_supported to yes
 DEBUG: org.macports.load registered provides 'load', a pre-existing
 procedure. Target override will not be provided
 DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-
 existing procedure. Target override will not be provided
 DEBUG: Using group file
 /macports/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/python25-1.0.tcl
 DEBUG: not using configure, so not adding the default universal variant
 DEBUG: Requested variant darwin is not provided by port py25-matplotlib.
 DEBUG: Requested variant i386 is not provided by port py25-matplotlib.
 DEBUG: Requested variant macosx is not provided by port py25-matplotlib.
 DEBUG: Executing variant darwin_9 provides darwin_9
 DEBUG: Executing variant tkinter provides tkinter
 DEBUG: Found port in
 file:///macports/var/macports/sources/rsync.macports.org/release/ports/lang/python25
 DEBUG: Changing to port directory:
 /macports/var/macports/sources/rsync.macports.org/release/ports/lang/python25
 DEBUG: setting option os.universal_supported to yes
 DEBUG: org.macports.load registered provides 'load', a pre-existing
 procedure. Target override will not be provided
 DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-
 existing procedure. Target override will not be provided
 DEBUG: Using group file
 /macports/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/select-1.0.tcl
 DEBUG: universal variant already exists, so not adding the default one
 DEBUG: Requested variant darwin is not provided by port python25.
 DEBUG: Requested variant i386 is not provided by port python25.
 DEBUG: Executing variant macosx provides macosx
 DEBUG: Executing variant darwin_9 provides darwin_9
 DEBUG: Searching for dependency: python25
 DEBUG: Found Dependency: receipt exists for python25
 DEBUG: Found port in
 file:///macports/var/macports/sources/rsync.macports.org/release/ports/print/freetype
 DEBUG: Changing to port directory:
 /macports/var/macports/sources/rsync.macports.org/release/ports/print/freetype
 DEBUG: setting option os.universal_supported to yes
 DEBUG: org.macports.load registered provides 'load', a pre-existing
 procedure. Target override will not be provided
 DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-
 existing procedure. Target override will not be provided
 DEBUG: Using group file
 /macports/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/muniversal-1.0.tcl
 DEBUG: universal variant already exists, so not adding the default one
 DEBUG: Requested variant darwin is not provided by port freetype.
 DEBUG: Requested variant i386 is not provided by port freetype.
 DEBUG: Executing variant macosx provides macosx
 DEBUG: Searching for dependency: freetype
 DEBUG: Found Dependency: receipt exists for freetype
 DEBUG: Found port in
 file:///macports/var/macports/sources/rsync.macports.org/release/ports/graphics/libpng
 DEBUG: Changing to port directory:
 /macports/var/macports/sources/rsync.macports.org/release/ports/graphics/libpng
 DEBUG: setting option os.universal_supported to yes
 DEBUG: org.macports.load registered provides 'load', a pre-existing
 procedure. Target override will not be provided
 DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-
 existing procedure. Target override will not be provided
 DEBUG: Using group file
 /macports/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/muniversal-1.0.tcl
 DEBUG: universal variant already exists, so not adding the default one
 DEBUG: Requested variant darwin is not provided by port libpng.
 DEBUG: Requested variant i386 is not provided by port libpng.
 DEBUG: Requested variant macosx is not provided by port libpng.
 DEBUG: Searching for dependency: libpng
 DEBUG: Found Dependency: receipt exists for libpng
 DEBUG: Found port in
 file:///macports/var/macports/sources/rsync.macports.org/release/ports/python/py25-dateutil
 DEBUG: Changing to port directory:
 /macports/var/macports/sources/rsync.macports.org/release/ports/python/py25-dateutil
 DEBUG: setting option os.universal_supported to yes
 DEBUG: org.macports.load registered provides 'load', a pre-existing
 procedure. Target override will not be provided
 DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-
 existing procedure. Target override will not be provided
 DEBUG: Using group file
 /macports/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/python25-1.0.tcl
 DEBUG: 'universal_variant no' specified, so not adding the default
 universal variant
 DEBUG: Requested variant darwin is not provided by port py25-dateutil.
 DEBUG: Requested variant i386 is not provided by port py25-dateutil.
 DEBUG: Requested variant macosx is not provided by port py25-dateutil.
 DEBUG: Searching for dependency: py25-dateutil
 DEBUG: Found Dependency: receipt exists for py25-dateutil
 DEBUG: Found port in
 file:///macports/var/macports/sources/rsync.macports.org/release/ports/python/py25-tz
 DEBUG: Changing to port directory:
 /macports/var/macports/sources/rsync.macports.org/release/ports/python/py25-tz
 DEBUG: setting option os.universal_supported to yes
 DEBUG: org.macports.load registered provides 'load', a pre-existing
 procedure. Target override will not be provided
 DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-
 existing procedure. Target override will not be provided
 DEBUG: Using group file
 /macports/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/python25-1.0.tcl
 DEBUG: not using configure, so not adding the default universal variant
 DEBUG: Requested variant darwin is not provided by port py25-tz.
 DEBUG: Requested variant i386 is not provided by port py25-tz.
 DEBUG: Requested variant macosx is not provided by port py25-tz.
 DEBUG: Searching for dependency: py25-tz
 DEBUG: Found Dependency: receipt exists for py25-tz
 DEBUG: Found port in
 file:///macports/var/macports/sources/rsync.macports.org/release/ports/python/py25-numpy
 DEBUG: Changing to port directory:
 /macports/var/macports/sources/rsync.macports.org/release/ports/python/py25-numpy
 DEBUG: setting option os.universal_supported to yes
 DEBUG: org.macports.load registered provides 'load', a pre-existing
 procedure. Target override will not be provided
 DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-
 existing procedure. Target override will not be provided
 DEBUG: Using group file
 /macports/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/python25-1.0.tcl
 DEBUG: not using configure, so not adding the default universal variant
 DEBUG: Requested variant darwin is not provided by port py25-numpy.
 DEBUG: Requested variant i386 is not provided by port py25-numpy.
 DEBUG: Requested variant macosx is not provided by port py25-numpy.
 DEBUG: Searching for dependency: py25-numpy
 DEBUG: Found Dependency: receipt exists for py25-numpy
 DEBUG: Found port in
 file:///macports/var/macports/sources/rsync.macports.org/release/ports/python/py25-configobj
 DEBUG: Changing to port directory:
 /macports/var/macports/sources/rsync.macports.org/release/ports/python/py25-configobj
 DEBUG: setting option os.universal_supported to yes
 DEBUG: org.macports.load registered provides 'load', a pre-existing
 procedure. Target override will not be provided
 DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-
 existing procedure. Target override will not be provided
 DEBUG: Using group file
 /macports/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/python25-1.0.tcl
 DEBUG: not using configure, so not adding the default universal variant
 DEBUG: Requested variant darwin is not provided by port py25-configobj.
 DEBUG: Requested variant i386 is not provided by port py25-configobj.
 DEBUG: Requested variant macosx is not provided by port py25-configobj.
 DEBUG: Searching for dependency: py25-configobj
 DEBUG: Found Dependency: receipt exists for py25-configobj
 DEBUG: Found port in
 file:///macports/var/macports/sources/rsync.macports.org/release/ports/python/py25-pyobjc2
 DEBUG: Changing to port directory:
 /macports/var/macports/sources/rsync.macports.org/release/ports/python/py25-pyobjc2
 DEBUG: setting option os.universal_supported to yes
 DEBUG: org.macports.load registered provides 'load', a pre-existing
 procedure. Target override will not be provided
 DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-
 existing procedure. Target override will not be provided
 DEBUG: Using group file
 /macports/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/python25-1.0.tcl
 DEBUG: not using configure, so not adding the default universal variant
 DEBUG: Requested variant darwin is not provided by port py25-pyobjc2.
 DEBUG: Requested variant i386 is not provided by port py25-pyobjc2.
 DEBUG: Requested variant macosx is not provided by port py25-pyobjc2.
 DEBUG: Searching for dependency: py25-pyobjc2
 DEBUG: Found Dependency: receipt exists for py25-pyobjc2
 DEBUG: Found port in
 file:///macports/var/macports/sources/rsync.macports.org/release/ports/python/py25-pyobjc2-cocoa
 DEBUG: Changing to port directory:
 /macports/var/macports/sources/rsync.macports.org/release/ports/python/py25-pyobjc2-cocoa
 DEBUG: setting option os.universal_supported to yes
 DEBUG: org.macports.load registered provides 'load', a pre-existing
 procedure. Target override will not be provided
 DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-
 existing procedure. Target override will not be provided
 DEBUG: Using group file
 /macports/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/python25-1.0.tcl
 DEBUG: not using configure, so not adding the default universal variant
 DEBUG: Requested variant darwin is not provided by port
 py25-pyobjc2-cocoa.
 DEBUG: Requested variant i386 is not provided by port py25-pyobjc2-cocoa.
 DEBUG: Requested variant macosx is not provided by port
 py25-pyobjc2-cocoa.
 DEBUG: Searching for dependency: py25-pyobjc2-cocoa
 DEBUG: Found Dependency: receipt exists for py25-pyobjc2-cocoa
 DEBUG: Executing org.macports.main (py25-matplotlib)
 --->  Fetching py25-matplotlib
 DEBUG: Executing org.macports.fetch (py25-matplotlib)
 --->  Verifying checksum(s) for py25-matplotlib
 DEBUG: Executing org.macports.checksum (py25-matplotlib)
 --->  Checksumming matplotlib-0.98.5.3.tar.gz
 DEBUG: Correct (md5) checksum for matplotlib-0.98.5.3.tar.gz
 DEBUG: Correct (sha1) checksum for matplotlib-0.98.5.3.tar.gz
 DEBUG: Correct (rmd160) checksum for matplotlib-0.98.5.3.tar.gz
 --->  Extracting py25-matplotlib
 DEBUG: Executing org.macports.extract (py25-matplotlib)
 --->  Extracting matplotlib-0.98.5.3.tar.gz
 DEBUG: setting option extract.args to
 /macports/var/macports/distfiles/python/matplotlib-0.98.5.3.tar.gz
 DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.5'
 DEBUG: Assembled command: 'cd
 "/macports/var/macports/build/_macports_var_macports_sources_rsync.macports.org_release_ports_python_py25-matplotlib/work"
 && gzip -dc
 /macports/var/macports/distfiles/python/matplotlib-0.98.5.3.tar.gz |
 /usr/bin/gnutar --no-same-owner -xf -'
 DEBUG: Executing org.macports.patch (py25-matplotlib)
 --->  Applying patches to py25-matplotlib
 --->  Applying
 /macports/var/macports/sources/rsync.macports.org/release/ports/python/py25-matplotlib/files
 /patch-setupext.py.diff
 DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.5'
 DEBUG: Assembled command: 'cd
 "/macports/var/macports/build/_macports_var_macports_sources_rsync.macports.org_release_ports_python_py25-matplotlib/work/matplotlib-0.98.5.3"
 && patch -p0'
 patching file setupext.py
 Hunk #2 succeeded at 321 (offset -6 lines).
 Hunk #3 succeeded at 947 (offset -35 lines).
 Hunk #4 succeeded at 971 (offset -32 lines).
 --->  Applying
 /macports/var/macports/sources/rsync.macports.org/release/ports/python/py25-matplotlib/files
 /patch-setup.cfg.diff
 DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.5'
 DEBUG: Assembled command: 'cd
 "/macports/var/macports/build/_macports_var_macports_sources_rsync.macports.org_release_ports_python_py25-matplotlib/work/matplotlib-0.98.5.3"
 && patch -p0'
 patching file setup.cfg
 --->  Applying
 /macports/var/macports/sources/rsync.macports.org/release/ports/python/py25-matplotlib/files
 /patch-disable_optional_deps.diff
 DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.5'
 DEBUG: Assembled command: 'cd
 "/macports/var/macports/build/_macports_var_macports_sources_rsync.macports.org_release_ports_python_py25-matplotlib/work/matplotlib-0.98.5.3"
 && patch -p0'
 patching file setupext.py
 Hunk #1 succeeded at 340 (offset -10 lines).
 Hunk #2 succeeded at 451 with fuzz 1 (offset -67 lines).
 DEBUG: Executing proc-post-org.macports.patch-patch-0
 DEBUG: Executing proc-post-org.macports.patch-patch-1
 --->  Configuring py25-matplotlib
 DEBUG: Using compiler 'Mac OS X gcc 4.0'
 DEBUG: Executing org.macports.configure (py25-matplotlib)
 --->  Building py25-matplotlib
 DEBUG: Executing org.macports.build (py25-matplotlib)
 DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.5' MPLIB_BASE='/macports'
 DEBUG: Assembled command: 'cd
 "/macports/var/macports/build/_macports_var_macports_sources_rsync.macports.org_release_ports_python_py25-matplotlib/work/matplotlib-0.98.5.3"
 && /macports/bin/python2.5 setup.py --no-user-cfg build'
 ============================================================================
 BUILDING MATPLOTLIB
             matplotlib: 0.98.5.3
                 python: 2.5.4 (r254:67916, Jun 17 2009, 14:04:54)  [GCC
                         4.0.1 (Apple Inc. build 5490)]
               platform: darwin

 REQUIRED DEPENDENCIES
                  numpy: 1.3.0
              freetype2: 9.20.3

 OPTIONAL BACKEND DEPENDENCIES
                 libpng: 1.2.37
                Tkinter: no
                         * TKAgg requires Tkinter
 Traceback (most recent call last):
   File "setup.py", line 137, in <module>
     build_tkagg(ext_modules, packages)
   File
 "/macports/var/macports/build/_macports_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
 "/macports/var/macports/build/_macports_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
 Error: Target org.macports.build returned: shell command " cd
 "/macports/var/macports/build/_macports_var_macports_sources_rsync.macports.org_release_ports_python_py25-matplotlib/work/matplotlib-0.98.5.3"
 && /macports/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, Jun 17 2009, 14:04:54)  [GCC
                         4.0.1 (Apple Inc. build 5490)]
               platform: darwin

 REQUIRED DEPENDENCIES
                  numpy: 1.3.0
              freetype2: 9.20.3

 OPTIONAL BACKEND DEPENDENCIES
                 libpng: 1.2.37
                Tkinter: no
                         * TKAgg requires Tkinter
 Traceback (most recent call last):
   File "setup.py", line 137, in <module>
     build_tkagg(ext_modules, packages)
   File
 "/macports/var/macports/build/_macports_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
 "/macports/var/macports/build/_macports_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

 Warning: the following items did not execute (for py25-matplotlib):
 org.macports.activate org.macports.build org.macports.destroot
 org.macports.install
 }}}

 I have an intel mac running leopard 10.5.7.
 Thanks

-- 
Ticket URL: <http://trac.macports.org/ticket/19987>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list