Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#31639 closed defect (duplicate)

py27-matplotlib @1.1.0 Install hangs in setup.py

Reported by: macports@… Owned by: skymoo (Adam Mercer)
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc: nicholas.clark@…
Port: py27-matplotlib

Description

During port install py27-matplotlib, the check_for_tk() function in setupext.py hangs on my system when invoked with python and tcl from MacPorts.

This evokes the problem on my machine: port install py27-matplotlib (install hung at "Building" stage -- no CPU usage, no hard drive spinning)

I diagnosed by: cd'ing to the work directory and running setup.py build. It gets as far as the libpng version and then hung. Looking at setup.py, tk is the next test run after libpng. I started a Python 2.7 interpreter and ran import setupext; setupext.check_for_tk(). The process hung.

I can run easy_install matplotlib with system Python and it installs okay. The problem persists after running port selfupdate; port update outdated. I'm running OS X 10.6.8. I've attached a copy of the port install debug log.

This probably deserves to be a Tk bug, but I don't know where to file that and this is how it's manifesting to me. Can you help advise where this belongs?

Thanks!

Attachments (2)

install_log.txt (68.6 KB) - added by macports@… 13 years ago.
main.log (356.0 KB) - added by daniel_popescu@… 13 years ago.

Download all attachments as: .zip

Change History (16)

Changed 13 years ago by macports@…

Attachment: install_log.txt added

comment:1 Changed 13 years ago by skymoo (Adam Mercer)

Owner: changed from macports-tickets@… to ram@…

I can't reproduce this:

[ram@cizin ~]$ sw_vers
ProductName:	Mac OS X
ProductVersion:	10.6.8
BuildVersion:	10K549
[ram@cizin ~]$ xcodebuild -version
Xcode 4.0.2
Build version 4A2002a         
[ram@cizin ~]$ sudo port install py27-matplotlib +cairo +ghostscript +latex +tkinter
--->  Computing dependencies for py27-matplotlib
--->  Fetching archive for py27-matplotlib
--->  Attempting to fetch py27-matplotlib-1.1.0_0+cairo+ghostscript+latex+tkinter.darwin_10.x86_64.tbz2 from http://packages.macports.org/py27-matplotlib
--->  Fetching py27-matplotlib
--->  Verifying checksum(s) for py27-matplotlib
--->  Extracting py27-matplotlib
--->  Applying patches to py27-matplotlib
--->  Configuring py27-matplotlib
--->  Building py27-matplotlib
--->  Staging py27-matplotlib into destroot
--->  Installing py27-matplotlib @1.1.0_0+cairo+ghostscript+latex+tkinter
--->  Activating py27-matplotlib @1.1.0_0+cairo+ghostscript+latex+tkinter

The default backend is now the non-interactive Agg backend, different
backends can be specified using the ~/.matplotlib/matplotlibrc file.
More details, regarding backends, can be found in the matplotlib FAQ:

http://matplotlib.sourceforge.net/faq/installing_faq.html#what-is-a-backend

--->  Cleaning py27-matplotlib
[ram@cizin ~]$ 

What platform and what version of Xcode are you using?

comment:2 Changed 13 years ago by skymoo (Adam Mercer)

Port: py27-matplotlib added

comment:3 Changed 13 years ago by macports@…

Thanks for the response. My versions:

darkside:ninepin tim$ sw_vers
ProductName:	Mac OS X
ProductVersion:	10.6.8
BuildVersion:	10K549

darkside:ninepin tim$ xcodebuild -version
Xcode 3.2.6
Component versions: DevToolsCore-1809.0; DevToolsSupport-1806.0
BuildVersion: 10M2518

Building with +cairo -tkinter does not resolve the hang for me, and neither does setting tkagg=False in setup.cfg (which is already set in the -tkinter variant) before running setup.py build manually -- it still tries to check for Tk.

comment:4 Changed 13 years ago by nicholas.clark@…

I have a similar problem, except that the installer hangs for me on "Staging py27-matplotlib into destroot". Any thoughts?

comment:5 Changed 13 years ago by nicholas.clark@…

My versions are:

[15:48:23 nick@bedrock] ~$ sw_vers
ProductName:	Mac OS X
ProductVersion:	10.6.8
BuildVersion:	10K549
[15:49:23 nick@bedrock] ~$ xcodebuild -version
Xcode 4.0.2
Build version 4A2002a

comment:6 Changed 13 years ago by nicholas.clark@…

Cc: nicholas.clark@… added

Cc Me!

Changed 13 years ago by daniel_popescu@…

Attachment: main.log added

comment:7 Changed 13 years ago by daniel_popescu@…

Using Lion & XCode 4.2.

After the recent fix that was just made to use llvm-gcc-4.2 (instead of clang 3.0), py27-matlpolib builds but it gets stuck in "Staging py27-matplotlib into destroot"...:

---> Computing dependencies for py27-matplotlib ---> Fetching archive for py27-matplotlib ---> Attempting to fetch py27-matplotlib-1.1.0_0+tkinter.darwin_11.x86_64.tbz2 from http://packages.macports.org/py27-matplotlib ---> Fetching py27-matplotlib ---> Verifying checksum(s) for py27-matplotlib ---> Extracting py27-matplotlib ---> Applying patches to py27-matplotlib ---> Configuring py27-matplotlib ---> Building py27-matplotlib ---> Staging py27-matplotlib into destroot

comment:8 Changed 13 years ago by skymoo (Adam Mercer)

Resolution: duplicate
Status: newclosed

Seems to be the same issue as #30882

comment:9 in reply to:  8 Changed 13 years ago by macports@…

Replying to ram@…:

Seems to be the same issue as #30882

I'm leaving the ticket closed in deference to your judgement, but the issue I opened the ticket to report (hang while running matplotlib's setup.py in the build stage) is different from the duplicate issue that other commenters are describing on this ticket (hang while staging into destroot).

comment:10 Changed 13 years ago by macports@…

(Though, to be fair, I still think I really have a Tk problem and not a matplotlib problem. I'll try to figure out what the real problem is and refile against Tk.)

comment:11 in reply to:  10 Changed 13 years ago by skymoo (Adam Mercer)

Replying to macports@…:

I'm leaving the ticket closed in deference to your judgement, but the issue I opened the ticket to report (hang while running matplotlib's setup.py in the build stage) is different from the duplicate issue that other commenters are describing on this ticket (hang while staging into destroot).

They are both apparently hanging when setup.py is called, there is nothing in the logs that explains this; it simply stops. They appear to be the same problem.

Replying to macports@…:

(Though, to be fair, I still think I really have a Tk problem and not a matplotlib problem. I'll try to figure out what the real problem is and refile against Tk.)

Thanks, as I have no idea what's going on here.

comment:12 Changed 13 years ago by daniel_popescu@…

could be related to this: 31996?

comment:13 Changed 13 years ago by daniel_popescu@…

issue #31996, I mean.

comment:14 Changed 13 years ago by skymoo (Adam Mercer)

Seems to be related to the update to Tcl/Tk 5.8.11 which has just happened, so I doubt it.

Note: See TracTickets for help on using tickets.