← Back to team overview

yade-dev team mailing list archive

Re: [Bug 1134422] Re: The "version" argument to ArgumentParser is deprecated.

 

Hello,

in last commit, this bug should be fixed. I removed the deprication warning
reported by Bruno and left old optparse module if argparse is not found,
reported by Christian.
I am sorry for the problems, I did not expect them while using
non-deprecated module instead of the deprecated one :-)

Please try the new version and in case of no troubles, close the bug.
Cheers
Jan


2013/2/28 Jan Stránský <honzik.stransky@xxxxxxxxx>

> The deprication warning is because of arguments of the parser.
> Unfortunately the argparse module is not 100% compatible with optparse. I
> will solve it today.
> Jan
> Dne 27.2.2013 21:25 "Bruno Chareyre" <1134422@xxxxxxxxxxxxxxxxxx>
> napsal(a):
>
> Thanks Jan. It is a bit surprising to see a deprecation warning appear
>> when an old module is replaced by a new one!
>>
>> --
>> You received this bug notification because you are a member of Yade
>> developers, which is subscribed to Yade.
>> https://bugs.launchpad.net/bugs/1134422
>>
>> Title:
>>   The "version" argument to ArgumentParser is deprecated.
>>
>> Status in Yet Another Dynamic Engine:
>>   New
>>
>> Bug description:
>>   What is that? (ubuntu 10.04)
>>
>>   me: ./yade
>>   /usr/lib/pymodules/python2.6/argparse.py:1576: DeprecationWarning: The
>> "version" argument to ArgumentParser is deprecated. Please use
>> "add_argument(..., action='version', version="N", ...)" instead
>>     """instead""", DeprecationWarning)
>>   Welcome to Yade 2013-02-26.git-e25a399
>>
>> To manage notifications about this bug go to:
>> https://bugs.launchpad.net/yade/+bug/1134422/+subscriptions
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~yade-dev
>> Post to     : yade-dev@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~yade-dev
>> More help   : https://help.launchpad.net/ListHelp
>>
>

-- 
You received this bug notification because you are a member of Yade
developers, which is subscribed to Yade.
https://bugs.launchpad.net/bugs/1134422

Title:
  The "version" argument to ArgumentParser is deprecated.

Status in Yet Another Dynamic Engine:
  New

Bug description:
  What is that? (ubuntu 10.04)

  me: ./yade
  /usr/lib/pymodules/python2.6/argparse.py:1576: DeprecationWarning: The "version" argument to ArgumentParser is deprecated. Please use "add_argument(..., action='version', version="N", ...)" instead
    """instead""", DeprecationWarning)
  Welcome to Yade 2013-02-26.git-e25a399

To manage notifications about this bug go to:
https://bugs.launchpad.net/yade/+bug/1134422/+subscriptions


References