DeprecationWarning

cerr ron.eggler at gmail.com
Fri Sep 3 03:39:07 CEST 2010


On Sep 2, 4:25 pm, Chris Rebert <c... at rebertia.com> wrote:
> On Thu, Sep 2, 2010 at 4:19 PM, cerr <ron.egg... at gmail.com> wrote:
> > On Sep 1, 5:04 pm, Chris Rebert <c... at rebertia.com> wrote:
> >> On Wed, Sep 1, 2010 at 8:58 AM, cerr <ron.egg... at gmail.com> wrote:
> >> > Hi There,
>
> >> > I would like to create an scp handle and download a file from a
> >> > client. I have following code:
> >> <snip>
> >> > 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 : Downloading P-file failed.
>
> >> > What does that mean and how do i resolve this?
>
> >>http://stackoverflow.com/questions/1272138/baseexception-message-depr...
> >> As the warning message says, line 243 of
> >> /opt/lampp/cgi-bin/attachment.py is the cause of the warning.
>
> >> However, that's only a warning (albeit probably about a small part of
> >> some error-raising code), not an error itself, so it's not the cause
> >> of the download failure.
> >> Printing out the IOError encountered would be the first step in
> >> debugging the download failure.
>
> >> Cheers,
> >> Chris
>
> > Hi Chris,
>
> > Thanks for getting back!
> > I get an "I/O error(2): No such file or directory" error even tho the
> > file i'm trying to copy at /usr/share/NovaxTSP/P0086_2003.xml is
> > present, an "ls /usr/share/NovaxTSP/P0086_2003.xml" on the target is
> > succesful... :( What am i doing wrong?
>
> Asking on the Paramiko mailinglist might be more fruitful:http://www.lag.net/mailman/listinfo/paramiko

Yep, thanks. I guess I try my luck there then. Thanks!
Ron



More information about the Python-list mailing list