<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18852">
<STYLE>@font-face {
        font-family: 宋体;
}
@font-face {
        font-family: Verdana;
}
@font-face {
        font-family: @宋体;
}
@page Section1 {size: 595.3pt 841.9pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; layout-grid: 15.6pt; }
P.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10.5pt
}
LI.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10.5pt
}
DIV.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10.5pt
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        FONT-STYLE: normal; FONT-FAMILY: Verdana; COLOR: windowtext; FONT-WEIGHT: normal; TEXT-DECORATION: none; mso-style-type: personal-compose
}
DIV.Section1 {
        page: Section1
}
UNKNOWN {
        FONT-SIZE: 10pt
}
BLOCKQUOTE {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</STYLE>
</HEAD>
<BODY style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt">
<DIV><FONT color=#000080 size=2 face=Verdana>Hi Dave,</FONT></DIV>
<DIV><FONT color=#000080></FONT> </DIV>
<DIV><FONT color=#000080>I changed the first line in the installed mpd script to
the following:</FONT></DIV>
<DIV>#!/usr/bin/env python2.4</DIV>
<DIV>And it worked!</DIV>
<DIV> </DIV>
<DIV>Thank you for your reply.</DIV>
<DIV> </DIV>
<DIV>-Hailong</DIV>
<DIV><FONT color=#000080 size=2 face=Verdana></FONT> </DIV>
<DIV><FONT color=#c0c0c0 size=2 face=Verdana>2009-11-15 </FONT></DIV><FONT
color=#000080 size=2 face=Verdana>
<HR style="WIDTH: 100px" align=left color=#b5c4df SIZE=1>
</FONT>
<DIV><FONT color=#c0c0c0 size=2 face=Verdana><SPAN>
<DIV>
<DIV>***********************************************<BR>* Hailong Yang, PhD.
Candidate <BR>* Sino-German Joint Software Institute, <BR>* School of Computer
Science&Engineering, Beihang University<BR>* Phone: (86-010)82315908<BR>*
Email: <A
href="mailto:hailong.yang1115@gmail.com">hailong.yang1115@gmail.com</A><BR>*
Address: G413, New Main Building in Beihang University,
<BR>*
No.37 XueYuan Road,HaiDian District,
<BR>*
Beijing,P.R.China,100191<BR>***********************************************</DIV></DIV></SPAN></FONT></DIV>
<HR color=#b5c4df SIZE=1>
<DIV><FONT size=2 face=Verdana><STRONG>发件人:</STRONG> Dave Goodell </FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>发送时间:</STRONG> 2009-11-15 10:06:46
</FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>收件人:</STRONG> mpich-discuss </FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>抄送:</STRONG> </FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>主题:</STRONG> Re: [mpich-discuss] Problems
with starting mpd </FONT></DIV>
<DIV><FONT size=2 face=Verdana></FONT> </DIV>
<DIV><FONT size=2 face=Verdana>
<DIV>MPD is not currently compatible with python 2.2. Using a newer (2.x) </DIV>
<DIV>version of python should solve this problem. Depending on how you </DIV>
<DIV>upgraded to the newer version, the mpd scripts may still be using your </DIV>
<DIV>older version of python. Check the shebang line at the top of the </DIV>
<DIV>installed python script and make sure that it makes sense, and check </DIV>
<DIV>that the upgraded python is in your path. You will probably need to </DIV>
<DIV>rebuild MPICH2 after upgrading your python installation to make sure </DIV>
<DIV>that it picks up the new version. If it still auto-detects the wrong </DIV>
<DIV>python installation, you can help it pick the right one by passing "-- </DIV>
<DIV>with-python=/path/to/python" to configure.</DIV>
<DIV></DIV>
<DIV>-Dave</DIV>
<DIV></DIV>
<DIV>On Nov 13, 2009, at 10:42 PM, hailong.yang1115 wrote:</DIV>
<DIV></DIV>
<DIV>> Hi there,</DIV>
<DIV>></DIV>
<DIV>> I have recently installed mpich2-1.2 on RedHat SL 3. After that I </DIV>
<DIV>> started the mpd, which gave me the following error:</DIV>
<DIV>></DIV>
<DIV>> [root@jsiserver112 root]# mpd &</DIV>
<DIV>> [1] 1797</DIV>
<DIV>> [root@jsiserver112 root]# Traceback (most recent call last):</DIV>
<DIV>> File "/usr/local/mpich2-1.2/bin/mpd", line 87, in ?</DIV>
<DIV>> from sets import Set as set</DIV>
<DIV>> ImportError: No module named sets</DIV>
<DIV>> [1]+ Exit 1 mpd</DIV>
<DIV>></DIV>
<DIV>> I googled to find that maybe it was incompatible with the older </DIV>
<DIV>> version of Python 2.2. So I changed to version 2.4 and version </DIV>
<DIV>> 3.1.1(most recently) but still got the same error.</DIV>
<DIV>></DIV>
<DIV>> Looking for any help.</DIV>
<DIV>></DIV>
<DIV>> -Hailong</DIV>
<DIV>></DIV>
<DIV>> 2009-11-14</DIV>
<DIV>> ***********************************************</DIV>
<DIV>> * Hailong Yang, PhD. Candidate</DIV>
<DIV>> * Sino-German Joint Software Institute,</DIV>
<DIV>> * School of Computer Science&Engineering, Beihang University</DIV>
<DIV>> * Phone: (86-010)82315908</DIV>
<DIV>> * Email: hailong.yang1115@gmail.com</DIV>
<DIV>> * Address: G413, New Main Building in Beihang University,</DIV>
<DIV>> * No.37 XueYuan Road,HaiDian District,</DIV>
<DIV>> * Beijing,P.R.China,100191</DIV>
<DIV>> ***********************************************</DIV>
<DIV>> _______________________________________________</DIV>
<DIV>> mpich-discuss mailing list</DIV>
<DIV>> mpich-discuss@mcs.anl.gov</DIV>
<DIV>> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</DIV>
<DIV></DIV>
<DIV>_______________________________________________</DIV>
<DIV>mpich-discuss mailing list</DIV>
<DIV>mpich-discuss@mcs.anl.gov</DIV>
<DIV>https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</DIV></FONT></DIV></BODY></HTML>