Re: DeprecationWarning but replacement doesn't work

2023-02-05 Thread Chris Green
Roel Schroeven wrote: > Chris Green schreef op 4/02/2023 om 16:17: > > I am using Image from PIL and I'm getting a deprecation warning as > > follows:- > > > > /home/chris/bin/picShrink.py:80: DeprecationWarning: ANTIALIAS is > > deprecated > and will

Re: DeprecationWarning but replacement doesn't work

2023-02-04 Thread Roel Schroeven
Chris Green schreef op 4/02/2023 om 16:17: I am using Image from PIL and I'm getting a deprecation warning as follows:- /home/chris/bin/picShrink.py:80: DeprecationWarning: ANTIALIAS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.LANCZOS instead. But if I c

Re: DeprecationWarning but replacement doesn't work

2023-02-04 Thread Chris Angelico
On Sun, 5 Feb 2023 at 07:52, Chris Green wrote: > > I am using Image from PIL and I'm getting a deprecation warning as > follows:- > > /home/chris/bin/picShrink.py:80: DeprecationWarning: ANTIALIAS is deprecated > and will be removed in Pillow 10 (2023-07-01). Use Res

DeprecationWarning but replacement doesn't work

2023-02-04 Thread Chris Green
I am using Image from PIL and I'm getting a deprecation warning as follows:- /home/chris/bin/picShrink.py:80: DeprecationWarning: ANTIALIAS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.LANCZOS instead. The code is very simple:- ... ... fro

Re: DeprecationWarning in Python 3.6 and 3.7

2019-04-02 Thread אורי
pgrade it manually? The first line of code from my script in the log above is line 177 (`cp env.ini.tests env.ini`), which comes from https://github.com/speedy-net/speedy-net/blob/uri_run_tests_with_deprecation_warnings_2019-04-02_a/.travis.yml line 17. I also asked this question on Stack Overflow

Re: DeprecationWarning in Python 3.6 and 3.7

2019-04-02 Thread Inada Naoki
. Install latest virtualenv in virtualenv *created by* old virtualenv is not enough. ‪On Wed, Apr 3, 2019 at 11:35 AM ‫אורי‬‎ wrote:‬ > > > אורי > u...@speedy.net > > > On Wed, Apr 3, 2019 at 2:50 AM Inada Naoki wrote: >> >> The DeprecationWarning is raised for virtu

Re: DeprecationWarning in Python 3.6 and 3.7

2019-04-02 Thread אורי
אורי u...@speedy.net On Wed, Apr 3, 2019 at 2:50 AM Inada Naoki wrote: > The DeprecationWarning is raised for virtualenv's distutils. > It is fixed already. Use latest virtualenv. > That's what I wrote. I tried to upgrade to the latest virtualenv (virtualenv==16.4.3) i

Re: DeprecationWarning in Python 3.6 and 3.7

2019-04-02 Thread Inada Naoki
The DeprecationWarning is raised for virtualenv's distutils. It is fixed already. Use latest virtualenv. Links: https://github.com/pypa/virtualenv/pull/1289 https://virtualenv.pypa.io/en/latest/changes/#v16-4-0-2019-02-09 -- Inada Naoki -- https://mail.python.org/mailman/listinfo/python-list

Re: DeprecationWarning in Python 3.6 and 3.7

2019-04-02 Thread Karsten Hilbert
On Tue, Apr 02, 2019 at 01:29:08PM +0300, אורי wrote: > DeprecationWarning in Python 3.6 and 3.7 > <https://github.com/python-pillow/Pillow/issues/3547> > > I tried to upgrade to the latest virtualenv (virtualenv==16.4.3) in the > tests but the tests still fail in Python 3

Re: DeprecationWarning in Python 3.6 and 3.7

2019-04-02 Thread Rhodri James
On 02/04/2019 16:52, אורי wrote: On Tue, Apr 2, 2019 at 6:33 PM Terry Reedy wrote: On 4/2/2019 6:29 AM, אורי wrote: Hi, Please look at this issue: DeprecationWarning in Python 3.6 and 3.7 <https://github.com/python-pillow/Pillow/issues/3547> I tried to upgrade to the latest virt

Re: DeprecationWarning in Python 3.6 and 3.7

2019-04-02 Thread אורי
On Tue, Apr 2, 2019 at 6:33 PM Terry Reedy wrote: > On 4/2/2019 6:29 AM, אורי wrote: > > Hi, > > > > Please look at this issue: > > DeprecationWarning in Python 3.6 and 3.7 > > <https://github.com/python-pillow/Pillow/issues/3547> > > > > I tr

Re: DeprecationWarning in Python 3.6 and 3.7

2019-04-02 Thread Terry Reedy
On 4/2/2019 6:29 AM, אורי wrote: Hi, Please look at this issue: DeprecationWarning in Python 3.6 and 3.7 <https://github.com/python-pillow/Pillow/issues/3547> I tried to upgrade to the latest virtualenv (virtualenv==16.4.3) in the tests but the tests still fail in Python 3.6 and 3.7 wi

DeprecationWarning in Python 3.6 and 3.7

2019-04-02 Thread אורי
Hi, Please look at this issue: DeprecationWarning in Python 3.6 and 3.7 <https://github.com/python-pillow/Pillow/issues/3547> I tried to upgrade to the latest virtualenv (virtualenv==16.4.3) in the tests but the tests still fail in Python 3.6 and 3.7 with the DeprecationWarning: (with

Re: Unexpected behaviour with DeprecationWarning, Python 3.7 and escape codes

2018-08-23 Thread D'Arcy Cain
On 2018-08-23 06:08 AM, Peter via Python-list wrote: > I understand that Python 3.7 now issues DeprecationWarning for code > entered in the interactive shell and also for single-module programs. I > see this behaviour with: > > C:\wrk> python > python 3.7.0 (v3.7.0:... >&

Unexpected behaviour with DeprecationWarning, Python 3.7 and escape codes

2018-08-23 Thread Peter via Python-list
I understand that Python 3.7 now issues DeprecationWarning for code entered in the interactive shell and also for single-module programs. I see this behaviour with: C:\wrk> python python 3.7.0 (v3.7.0:... import imp __main__:1: DeprecationWarning: the imp module is deprecated... But i

Re: unittest.TestCase.assertRaisesRegex throws DeprecationWarning

2018-07-31 Thread Peter Otten
Uri Even-Chen wrote: > Do you know what is the problem and why I receive these deprecation > warnings? I poked around a bit and found https://bugs.python.org/issue24134 Perhaps you can make sense of it (I can't). -- https://mail.python.org/mailman/listinfo/python-list

Re: unittest.TestCase.assertRaisesRegex throws DeprecationWarning

2018-07-31 Thread Peter Otten
/accounts/tests/test_models.py > . When I run tests regularly (with "./manage.py test") they pass, But when > I run tests with "python -W error::DeprecationWarning manage.py test", > (with Python 3.5.5), I receive errors like this: > > DeprecationWarning: '

unittest.TestCase.assertRaisesRegex throws DeprecationWarning

2018-07-31 Thread Uri Even-Chen
"./manage.py test") they pass, But when I run tests with "python -W error::DeprecationWarning manage.py test", (with Python 3.5.5), I receive errors like this: DeprecationWarning: 'callable' is an invalid keyword argument for this function See the full errors here: htt

Re: question about numpy, subclassing, and a DeprecationWarning

2012-06-27 Thread Robert Kern
27;s __init__... This is some sample code: >>> import numpy as np >>> class derived(np.ndarray): ... def __init__(self, stuff): ... np.ndarray.__init__(self, stuff) ... >>> l = derived((2,3)) __main__:3: DeprecationWarning: object.__init__() takes no par

question about numpy, subclassing, and a DeprecationWarning

2012-06-27 Thread Jason Swails
t;>> import numpy as np >>> class derived(np.ndarray): ... def __init__(self, stuff): ... np.ndarray.__init__(self, stuff) ... >>> l = derived((2,3)) __main__:3: DeprecationWarning: object.__init__() takes no parameters >>> l derived([[ 8.87744455e

Re: Python 2.6: How to turn off cgitb.py's DeprecationWarning: BaseException.message has been deprecated

2010-09-24 Thread Thomas Jollans
On Friday 24 September 2010, it occurred to pyt...@bdurham.com to exclaim: > Python 2.6: We're using the standard lib's cgitb module to > provide diagnostic messages when unexpected exceptions occur. > > Unfortunately, this module raises a DeprecationWarning like below >

Python 2.6: How to turn off cgitb.py's DeprecationWarning: BaseException.message has been deprecated

2010-09-23 Thread python
Python 2.6: We're using the standard lib's cgitb module to provide diagnostic messages when unexpected exceptions occur. Unfortunately, this module raises a DeprecationWarning like below when it is used: C:\Python26\lib\cgitb.py:245: DeprecationWarning: BaseException.message has been

Re: DeprecationWarning

2010-09-02 Thread cerr
download a file from a > >> > client. I have following code: > >> > >> > but what i'm getting is this and no file is downloaded...: > >> > /opt/lampp/cgi-bin/attachment.py:243: DeprecationWarning: > >> > BaseException.message has been depr

Re: DeprecationWarning

2010-09-02 Thread Chris Rebert
ode: >> >> > but what i'm getting is this and no file is downloaded...: >> > /opt/lampp/cgi-bin/attachment.py:243: DeprecationWarning: >> > BaseException.message has been deprecated as of Python 2.6 >> >  chan.send('\x01'+e.message) >>

Re: DeprecationWarning

2010-09-02 Thread cerr
downloaded...: > > /opt/lampp/cgi-bin/attachment.py:243: DeprecationWarning: > > BaseException.message has been deprecated as of Python 2.6 > >  chan.send('\x01'+e.message) > > 09/01/2010 08:53:56 : Downloading P-file failed. > > > What does that mean and ho

Re: DeprecationWarning

2010-09-01 Thread Chris Rebert
On Wed, Sep 1, 2010 at 8:58 AM, cerr wrote: > Hi There, > > I would like to create an scp handle and download a file from a > client. I have following code: > but what i'm getting is this and no file is downloaded...: > /opt/lampp/cgi-bin/attachment.py:

DeprecationWarning

2010-09-01 Thread cerr
writelog("Downloading P-file failed. \n") but what i'm getting is this and no file is downloaded...: /opt/lampp/cgi-bin/attachment.py:243: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6 chan.send('\x01'+e.message) 09/01/2010 08:53:56 :

Re: DeprecationWarning on md5

2009-11-18 Thread Zeynel
both in Scrapy and Python. When I create a project with > > Scrapy I get these errors: > > > C:\Python26\lib\site-packages\twisted\python\filepath.py:12: > > DeprecationWarning: the sha module is deprecated; use the hashlib > > module instead import sha > > C:

Re: DeprecationWarning on md5

2009-11-18 Thread Chris Rebert
On Wed, Nov 18, 2009 at 5:23 PM, Zeynel wrote: > Hello, > > I am a newbie both in Scrapy and Python. When I create a project with > Scrapy I get these errors: > > C:\Python26\lib\site-packages\twisted\python\filepath.py:12: > DeprecationWarning: the sha module is deprec

DeprecationWarning on md5

2009-11-18 Thread Zeynel
Hello, I am a newbie both in Scrapy and Python. When I create a project with Scrapy I get these errors: C:\Python26\lib\site-packages\twisted\python\filepath.py:12: DeprecationWarning: the sha module is deprecated; use the hashlib module instead import sha C:\Python26\lib\site-packages\twisted

Re: incorrect DeprecationWarning (patch needed)

2009-09-08 Thread Alan G Isaac
On 9/5/2009 5:50 PM, Alan G Isaac wrote: I've filed a bug report: http://bugs.python.org/issue6844 This is now an accepted bug with a patch request. Can someone on this list please assist with a patch? Thanks, Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Re: incorrect DeprecationWarning?

2009-09-05 Thread Alan G Isaac
I've filed a bug report: http://bugs.python.org/issue6844 Sadly the Twisted developers apparently did not file a bug report when they were bitten by this ... Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Re: incorrect DeprecationWarning?

2009-09-05 Thread exarkun
On 02:28 pm, alan.is...@gmail.com wrote: I am not sure how best to deprecate dependence on the Python 2.5 mistake, but this is not it. And I know at least one important library that is affected. I'll agree that it's not great. I certainly would have preferred it not to have been done. It i

Re: incorrect DeprecationWarning?

2009-09-05 Thread Terry Reedy
exar...@twistedmatrix.com wrote: On 12:20 pm, alan.is...@gmail.com wrote: I think you are missing my point. I understand it is just a DeprecationWarning. But **why** should I receive a deprecation warning when I am **not** using the deprecated practice? Since I am **not** using the deprecated

Re: incorrect DeprecationWarning?

2009-09-05 Thread Alan G Isaac
On 9/5/2009 9:07 AM, exar...@twistedmatrix.com wrote: You are using the deprecated practice. Clearly not, or it would fail in Python 3, which it does not. Attributes are not scoped to a particular class. There is only one "message" attribute on your "MyError" instance. It does not belong just

Re: incorrect DeprecationWarning?

2009-09-05 Thread exarkun
f __init__(self, message): ... Exception.__init__(self) ... self.message = message ... e = MyError('msg') __main__:4: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6 So? Why would that mean I cannot add such an attribute to derived classes? On 9/4/2009

Re: incorrect DeprecationWarning?

2009-09-05 Thread Alan G Isaac
_init__(self) ... self.message = message ... e = MyError('msg') __main__:4: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6 So? Why would that mean I cannot add such an attribute to derived classes? On 9/4/2009 6:42 PM, Terry Reedy wrote: It does not me

Re: incorrect DeprecationWarning?

2009-09-04 Thread Terry Reedy
ge): ... Exception.__init__(self) ... self.message = message ... e = MyError('msg') __main__:4: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6 So? Why would that mean I cannot add such an attribute to derived classes? It does not mean that. Try prin

incorrect DeprecationWarning?

2009-09-04 Thread Alan G Isaac
self) ... self.message = message ... e = MyError('msg') __main__:4: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6 So? Why would that mean I cannot add such an attribute to derived classes? Contrast: Python 2.6.2 (r262:71605, Apr 14 2009, 22

Re: PyModerator, serverFiles.py:13: DeprecationWarning: the sha module is deprecated; use the hashlib module instead import sha

2009-04-22 Thread Carl Banks
On Apr 22, 6:16 pm, "Jim Carlock" wrote: > I downloaded Python 2.6.2 today. Anyone here know what that error in > the subject really means and possibly what I should look at? I took > a look at line 13 in the specified file and it states the line that > it has a problem with. > > import sha > > I'

Re: PyModerator, serverFiles.py:13: DeprecationWarning: the sha module is deprecated; use the hashlib module instead import sha

2009-04-22 Thread David Robinow
On Wed, Apr 22, 2009 at 9:16 PM, Jim Carlock wrote: > I downloaded Python 2.6.2 today. Anyone here know what that error in > the subject really means and possibly what I should look at? I took > a look at line 13 in the specified file and it states the line that > it has a problem with. > > import

Re: PyModerator, serverFiles.py:13: DeprecationWarning: the sha module is deprecated; use the hashlib module instead import sha

2009-04-22 Thread Chris Rebert
On Wed, Apr 22, 2009 at 6:16 PM, Jim Carlock wrote: > I downloaded Python 2.6.2 today. Anyone here know what that error in > the subject really means and possibly what I should look at? I took > a look at line 13 in the specified file and it states the line that > it has a problem with. > > import

PyModerator, serverFiles.py:13: DeprecationWarning: the sha module is deprecated; use the hashlib module instead import sha

2009-04-22 Thread Jim Carlock
I downloaded Python 2.6.2 today. Anyone here know what that error in the subject really means and possibly what I should look at? I took a look at line 13 in the specified file and it states the line that it has a problem with. import sha I'm running Python in Windows XP. -- Jim Carlock More Th

Re: Encoding DeprecationWarning

2007-08-04 Thread Carsten Haese
On Sat, 2007-08-04 at 15:52 -0700, [EMAIL PROTECTED] wrote: > On Aug 4, 11:43 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > >>> from wt.lib.misc_lists import all_countries > > > > __console__:1: DeprecationWarning: Non-ASCII character '\x

Re: Encoding DeprecationWarning

2007-08-04 Thread [EMAIL PROTECTED]
On Aug 4, 11:43 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > >>> from wt.lib.misc_lists import all_countries > > __console__:1: DeprecationWarning: Non-ASCII character '\xc3' in file / > Django/wt/../wt/lib/misc_lists.py on line 141, but n

Re: Encoding DeprecationWarning

2007-08-04 Thread [EMAIL PROTECTED]
>>> from wt.lib.misc_lists import all_countries __console__:1: DeprecationWarning: Non-ASCII character '\xc3' in file / Django/wt/../wt/lib/misc_lists.py on line 141, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details -- http://mail.python.o

Re: Encoding DeprecationWarning

2007-08-04 Thread Carsten Haese
On Sat, 2007-08-04 at 12:07 -0700, [EMAIL PROTECTED] wrote: > Hey There, > > Sorry if I am missing something here, but I get a DeprecationWarning > when importing a list which has some unicode characters in it Please copy and paste the full text of the warning. -- Carste

Encoding DeprecationWarning

2007-08-04 Thread [EMAIL PROTECTED]
Hey There, Sorry if I am missing something here, but I get a DeprecationWarning when importing a list which has some unicode characters in it (it's a list of countries -- it's being raised on Åland), and I am left wondering why. I am using the syntax u' to denote a unicode str

Re: How to suppress "DeprecationWarning: Old style callback, use cb_func(ok, store) instead"

2007-02-06 Thread Thomas Bellman
"Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Sat, 03 Feb 2007 07:35:22 -0300, Peter Otten <[EMAIL PROTECTED]> > escribió: >> #!/usr/bin/env python2.5 >> >> python2.5 will be that single argument and no options are possible at >> all. >> What might be the reasons for such a seemingly ar

Re: How to suppress "DeprecationWarning: Old style callback, use cb_func(ok, store) instead"

2007-02-05 Thread Gabriel Genellina
ort warnings >>> warnings.filterwarnings("ignore", message="Old style callback, use >>> cb_func(ok, store) instead") >> >> Or you can be more aggressive and filter out all DeprecationWarnings: >> warnings.simplefilter("ignore",Deprecation

Re: How to suppress "DeprecationWarning: Old style callback, use cb_func(ok, store) instead"

2007-02-03 Thread John Nagle
Gabriel Genellina wrote: > En Sat, 03 Feb 2007 06:12:33 -0300, Peter Otten <[EMAIL PROTECTED]> > escribió: > >> John Nagle wrote: >> >>>How do I suppress "DeprecationWarning: Old style callback, use >>>cb_func(ok, >>> store) i

Re: How to suppress "DeprecationWarning: Old style callback, use cb_func(ok, store) instead"

2007-02-03 Thread Peter Otten
Gabriel Genellina wrote: > En Sat, 03 Feb 2007 06:12:33 -0300, Peter Otten <[EMAIL PROTECTED]> > escribió: > >> John Nagle wrote: >> >>>How do I suppress "DeprecationWarning: Old style callback, use >>>cb_func(ok, >>> store) inst

Re: How to suppress "DeprecationWarning: Old style callback, use cb_func(ok, store) instead"

2007-02-03 Thread Neil Cerutti
On 2007-02-03, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > En Sat, 03 Feb 2007 06:12:33 -0300, Peter Otten <[EMAIL PROTECTED]> > escribió: > >> John Nagle wrote: >> >>>How do I suppress "DeprecationWarning: Old style callback, use >&g

Re: How to suppress "DeprecationWarning: Old style callback, use cb_func(ok, store) instead"

2007-02-03 Thread Gabriel Genellina
En Sat, 03 Feb 2007 06:12:33 -0300, Peter Otten <[EMAIL PROTECTED]> escribió: > John Nagle wrote: > >>How do I suppress "DeprecationWarning: Old style callback, use >>cb_func(ok, >> store) instead". A library is triggering this message, the libra

Re: How to suppress "DeprecationWarning: Old style callback, use cb_func(ok, store) instead"

2007-02-03 Thread Peter Otten
John Nagle wrote: >How do I suppress "DeprecationWarning: Old style callback, use >cb_func(ok, > store) instead". A library is triggering this message, the library is > being fixed, but I need to make the message disappear from the output of a > CGI

How to suppress "DeprecationWarning: Old style callback, use cb_func(ok, store) instead"

2007-02-03 Thread John Nagle
How do I suppress "DeprecationWarning: Old style callback, use cb_func(ok, store) instead". A library is triggering this message, the library is being fixed, but I need to make the message disappear from the output of a CGI program. John Nagl

Re: years later DeprecationWarning

2006-03-25 Thread Steven D'Aprano
On Wed, 22 Mar 2006 13:59:00 -0800, Chris Lasher wrote: > Two things: > 1) math.floor returns a float, not an int. Doing an int() conversion on > a float already floors the value, anyways. No it doesn't, or rather, int() is only equivalent to floor() if you limit the input to non-negative numbers

Re: years later DeprecationWarning

2006-03-22 Thread Enigma Curry
> (That long-gone guy is actually me, according to the notes in the program. > However those brain cells are long gone now, so it might as well not be me.) I had a great long laugh with this bit. I guess it's because I can relate so well :) -- http://mail.python.org/mailman/listinfo/python-list

Re: years later DeprecationWarning

2006-03-22 Thread Ben Finney
Dan Jacobson <[EMAIL PROTECTED]> writes: > Here's the deal: I have to maintain this long gone guy's programs and > lately they've been saying > ./north_pass.py:14: DeprecationWarning: integer argument expected, got float > fl=range(1000*(math.floor(25000*f2m/10

Re: years later DeprecationWarning

2006-03-22 Thread Chris Lasher
Two things: 1) math.floor returns a float, not an int. Doing an int() conversion on a float already floors the value, anyways. Try replacing math.floor(...) with int(...) e.g. >>> math.floor(5.9) 5.0 >>> int(5.9) 5 2) What kind of data is in f2m? If f2m is a float, you will get float values in the

Re: years later DeprecationWarning

2006-03-22 Thread Terry Reedy
"Dan Jacobson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Here's the deal: I have to maintain this long gone guy's programs and > lately they've been saying > ./north_pass.py:14: DeprecationWarning: integer argument expected, got > f

years later DeprecationWarning

2006-03-22 Thread Dan Jacobson
Here's the deal: I have to maintain this long gone guy's programs and lately they've been saying ./north_pass.py:14: DeprecationWarning: integer argument expected, got float fl=range(1000*(math.floor(25000*f2m/1000)),46000*f2m,1000) As I don't know python, I tried sticking

Re: DeprecationWarning: Non-ASCII character '\xf3'

2005-08-23 Thread Benjamin Niemann
on "program" (i have to call it by > someway, hahaha) > > print "hello world" > > i get this output > > hello world > sys:1: DeprecationWarning: Non-ASCII character '\xf3' in file > C:\Workspace\J&J\src\es\jau\main.py on line 2, but

Re: DeprecationWarning: Non-ASCII character '\xf3'

2005-08-23 Thread Fredrik Lundh
"jau" <[EMAIL PROTECTED]> wrote: > print "hello world" > > i get this output > > hello world > sys:1: DeprecationWarning: Non-ASCII character '\xf3' in file > C:\Workspace\J&J\src\es\jau\main.py on line 2, but no encoding declare

DeprecationWarning: Non-ASCII character '\xf3'

2005-08-23 Thread jau
;hello world" i get this output hello world sys:1: DeprecationWarning: Non-ASCII character '\xf3' in file C:\Workspace\J&J\src\es\jau\main.py on line 2, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details the article mentioned above didn't