Ticket #362 (closed bug: fixed)

Opened 10 months ago

Last modified 5 months ago

Fwd: [mpich-discuss] Python 2.6 warnings

Reported by: goodell Owned by: goodell
Priority: minor Milestone: mpich2-1.1b1
Component: mpich2 Keywords:
Cc: atchley@…

Description

We need to figure out a fix for Scott's issue.

-Dave

Begin forwarded message:

> From: Scott Atchley <atchley@myri.com>
> Date: January 13, 2009 Jan 13 9:03:47 AM CST
> To: mpich-discuss@mcs.anl.gov
> Subject: [mpich-discuss] Python 2.6 warnings
> Reply-To: mpich-discuss@mcs.anl.gov
>
> Hi all,
>
> We have a customer using MPICH2-MX 1.0.7 and he reports the
> following when launching mpdboot using python 2.6:
>
>> Just downloaded mpich2-mx-1.0.7..2 I was able to compile it and
>> install
>> it with no problems on sles 11 RC 1.  When I try to start up
>> mpdboot I
>> get the following error message.
>>
>> $ ./bin/mpdboot
>> ./bin/mpdboot:56: DeprecationWarning: The popen2 module is
>> deprecated.
>> Use the subprocess module.
>> from popen2   import Popen4, Popen3, popen2
>> /opt/mpich-mx/bin/mpdlib.py:15: DeprecationWarning: the md5
>> module is deprecated; use hashlib instead
>> from  md5       import  new as md5new
>>
>>
>> $ python
>> Python 2.6 (r26:66714, Dec  6 2008, 02:02:53)
>> [GCC 4.3.2 [gcc-4_3-branch revision 141291]] on linux2
>> Type "help", "copyright", "credits" or "license" for more
>> information.
>>
>> I take it python 2.6 no longer supports popen2 and md5.  Do you
>> have a
>> version that of mpich-mx that works with python 2.6?
>
> I checked the 1.0.8 and 1.0 branches and mpdboot is still using
> popen2 and md5. Has anyone else encountered this and/or is anyone
> working on a patch?
>
> Scott

Attachments

mpd_deprecated_workaround.patch (0.6 KB) - added by goodell 10 months ago.
patch to suppress deprecated warnings from python2.6

Change History

Changed 10 months ago by Dave Goodell

  • id set to 362

This message has 0 attachment(s)

Changed 10 months ago by goodell

  • cc atchley@… added
  • priority changed from major to minor
  • milestone set to mpich2-1.1a3

Changed 10 months ago by goodell

patch to suppress deprecated warnings from python2.6

Changed 10 months ago by goodell

  • owner set to goodell
  • status changed from new to assigned

According to Ralph Butler, these warnings were introduced in python2.6 to start herding everyone towards python 3.0 compliance. Other than an unsightly warning message, they don't interfere with the actual operation of the code. So I've attached a patch that should suppress the warnings for now. Give it a try and let me know if that solves your problem.

In the long run we'll either need to update mpd to use the new modules or we'll have to deprecate mpd in favor of hydra, once it's ready for production use.

-Dave

Changed 10 months ago by goodell

  • status changed from assigned to closed
  • resolution set to fixed

Committed as r3726. Resolving as fixed for now.

Scott, please let us know if this solves your problem.

-Dave

Changed 10 months ago by Scott Atchley

On Jan 15, 2009, at 11:28 AM, mpich2 wrote:

> Scott, please let us know if this solves your problem.
>
> -Dave

Hi Dave,

I passed the patch on to the customer. He ran into a separate issue
where ROMIO failed to compile.

FYI, the IBM XL compilers do not like --version. Every time configure
tries to use it to determine the compiler's version, xlc and xlf dump
their man pages. :-P  His config.log was 4 MBs.

He has switched to Open-MPI for the time being.

Thanks,

Scott

Changed 10 months ago by Rajeev Thakur

What was the ROMIO error?

Rajeev

>  I passed the patch on to the customer. He ran into a separate issue
>  where ROMIO failed to compile.
>
>  FYI, the IBM XL compilers do not like --version. Every time configure
>  tries to use it to determine the compiler's version, xlc and xlf dump
>  their man pages. :-P  His config.log was 4 MBs.
>
>  He has switched to Open-MPI for the time being.
>
>  Thanks,
>
>  Scott

Changed 10 months ago by Scott Atchley

On Jan 15, 2009, at 1:17 PM, mpich2 wrote:

> What was the ROMIO error?
>
> Rajeev

I have attached his logs.

Scott

Changed 9 months ago by goodell

  • milestone changed from mpich2-1.1a3 to mpich2-1.1b1

Changed 5 months ago by goodell

FYI, similar warning suppression changes were made to the other mpd scripts in r4923.

WARNING! You need to either login using OpenID here or enter your email address here before you can create or edit tickets. Otherwise the ticket will get treated as spam. More information on creating tickets can be found here.

Don't forget to add your email address to the cc list to make sure that you get updated of the ticket status.

Add/Change #362 (Fwd: [mpich-discuss] Python 2.6 warnings)

Author



Change Properties
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.