Loading ...
Sorry, an error occurred while loading the content.

Re: Possible Thera 2.0.2 bug

Expand Messages
  • wolfiegoth
    Thanks that seems to have a problem changing to the path at the start of main. I ll try and work it out thanks for the help ;-)
    Message 1 of 8 , Feb 21, 2012
    • 0 Attachment
      Thanks that seems to have a problem changing to the path at the start of main.
      I'll try and work it out thanks for the help ;-)

      --- In atlantisdev@yahoogroups.com, Anthony Briggs <anthony.briggs@...> wrote:
      >
      > Pretty sure it depends on whether they're MIME/multipart messages or just
      > text emails.
      >
      > Looks like that 2.0.2 might not be the latest version. I haven't touched
      > Thera for at least a couple of years, so I don't remember exactly where
      > it's got to, but my local svn copy here is different to the 2.0.2 I just
      > downloaded. Try checking out via svn, or else use the version which I've
      > attached - see if that works any better.
      >
      > Switching over to github/bitbucket and uploading all of these personal
      > projects is on my list of things to do, but not sure when I'll get to it.
      >
      > Ant
      >
      > On 21 February 2012 23:03, wolfiegoth <monsieurmarc@...> wrote:
      >
      > > **
      > >
      > >
      > > Python 2.7.1+
      > > There 2.0.2
      > >
      > > Its odd some emails are fine some are not which is puzzling.
      > > I am running on a tiny little Beagleboard running on solar power so bit of
      > > a bizarre project all around. I can give you an ssh login if it helps.
      > >
      > >
      > > Marc
      > >
      > > --- In atlantisdev@yahoogroups.com, Anthony Briggs <anthony.briggs@>
      > > wrote:
      > > >
      > > > Ok, well the payload is apparently a Message object rather than a string,
      > > > so I'm not sure from here. Which versions of Python and Thera are you
      > > > running?
      > > >
      > > >
      > > > On 21 February 2012 21:45, wolfiegoth <monsieurmarc@> wrote:
      > > >
      > > > > **
      > >
      > > > >
      > > > >
      > > > > Ok tried that and now I see the following:
      > > > >
      > > > > 2012 Feb 21 (Tue) 10:02:59 There was an error when processing msgID <
      > > > > 1329750073.28671.YahooMailNeo@>:
      > >
      > > > > 2012 Feb 21 (Tue) 10:02:59 Traceback (most recent call last):
      > > > > 2012 Feb 21 (Tue) 10:02:59 File "./thera.py", line 148, in main
      > > > > 2012 Feb 21 (Tue) 10:02:59 processMail(eachEmail)
      > > > > 2012 Feb 21 (Tue) 10:02:59 File "./thera.py", line 94, in processMail
      > > > > 2012 Feb 21 (Tue) 10:02:59 mailBody = [line.rstrip() for line in
      > > > > mail.get_payload()]
      > > > > 2012 Feb 21 (Tue) 10:02:59 AttributeError: Message instance has no
      > > > > attribute 'rstrip'
      > > > > 2012 Feb 21 (Tue) 10:02:59
      > > > >
      > > > > Thanks for the help its appreciated.
      > > > > Marc
      > > > >
      > > > >
      > > > > --- In atlantisdev@yahoogroups.com, Anthony Briggs <anthony.briggs@>
      > > > > wrote:
      > > > > >
      > > > > > It's possible that the API of mail has changed, and get_payload() now
      > > > > > returns a list. If that's the case, then just chop the split('\n')
      > > off
      > > > > the
      > > > > > end and it should work.
      > > > > >
      > > > > > Let me know how that goes,
      > > > > >
      > > > > > Anthony
      > > > > >
      > > > > > On 21 February 2012 02:25, wolfiegoth <monsieurmarc@> wrote:
      > > > > >
      > > > > > > **
      > > > >
      > > > > > >
      > > > > > >
      > > > > > > I think i have found a bug when processing orders.
      > > > > > >
      > > > > > > I often see this when processing emails from webmail clients:
      > > > > > >
      > > > > > > 2012 Feb 20 (Mon) 15:01:21 There was an error when processing
      > > msgID <
      > > > > > > 1329750073.28671.YahooMailNeo@>:
      > >
      > > > >
      > > > > > > 2012 Feb 20 (Mon) 15:01:21 Traceback (most recent call last):
      > > > > > > 2012 Feb 20 (Mon) 15:01:21 File "./thera.py", line 148, in main
      > > > > > > 2012 Feb 20 (Mon) 15:01:21 processMail(eachEmail)
      > > > > > > 2012 Feb 20 (Mon) 15:01:21 File "./thera.py", line 94, in
      > > processMail
      > > > > > > 2012 Feb 20 (Mon) 15:01:21 mailBody = [line.rstrip() for line in
      > > > > > > mail.get_payload().split('\n')]
      > > > > > > 2012 Feb 20 (Mon) 15:01:21 AttributeError: 'list' object has no
      > > > > attribute
      > > > > > > 'split'
      > > > > > >
      > > > > > > Any thoughts? I am using 2.0.2
      > > > > > >
      > > > > > > Regards
      > > > > > > Marc
      > > > > > >
      > > > > > >
      > > > > > >
      > > > > >
      > > > >
      > > > >
      > > > >
      > > >
      > >
      > >
      > >
      >
    • wolfiegoth
      Lastest SV trunk build works I ll be smart and check there first nexttime. Marc
      Message 2 of 8 , Feb 21, 2012
      • 0 Attachment
        Lastest SV trunk build works I'll be smart and check there first nexttime.

        Marc

        --- In atlantisdev@yahoogroups.com, Anthony Briggs <anthony.briggs@...> wrote:
        >
        > Pretty sure it depends on whether they're MIME/multipart messages or just
        > text emails.
        >
        > Looks like that 2.0.2 might not be the latest version. I haven't touched
        > Thera for at least a couple of years, so I don't remember exactly where
        > it's got to, but my local svn copy here is different to the 2.0.2 I just
        > downloaded. Try checking out via svn, or else use the version which I've
        > attached - see if that works any better.
        >
        > Switching over to github/bitbucket and uploading all of these personal
        > projects is on my list of things to do, but not sure when I'll get to it.
        >
        > Ant
        >
        > On 21 February 2012 23:03, wolfiegoth <monsieurmarc@...> wrote:
        >
        > > **
        > >
        > >
        > > Python 2.7.1+
        > > There 2.0.2
        > >
        > > Its odd some emails are fine some are not which is puzzling.
        > > I am running on a tiny little Beagleboard running on solar power so bit of
        > > a bizarre project all around. I can give you an ssh login if it helps.
        > >
        > >
        > > Marc
        > >
        > > --- In atlantisdev@yahoogroups.com, Anthony Briggs <anthony.briggs@>
        > > wrote:
        > > >
        > > > Ok, well the payload is apparently a Message object rather than a string,
        > > > so I'm not sure from here. Which versions of Python and Thera are you
        > > > running?
        > > >
        > > >
        > > > On 21 February 2012 21:45, wolfiegoth <monsieurmarc@> wrote:
        > > >
        > > > > **
        > >
        > > > >
        > > > >
        > > > > Ok tried that and now I see the following:
        > > > >
        > > > > 2012 Feb 21 (Tue) 10:02:59 There was an error when processing msgID <
        > > > > 1329750073.28671.YahooMailNeo@>:
        > >
        > > > > 2012 Feb 21 (Tue) 10:02:59 Traceback (most recent call last):
        > > > > 2012 Feb 21 (Tue) 10:02:59 File "./thera.py", line 148, in main
        > > > > 2012 Feb 21 (Tue) 10:02:59 processMail(eachEmail)
        > > > > 2012 Feb 21 (Tue) 10:02:59 File "./thera.py", line 94, in processMail
        > > > > 2012 Feb 21 (Tue) 10:02:59 mailBody = [line.rstrip() for line in
        > > > > mail.get_payload()]
        > > > > 2012 Feb 21 (Tue) 10:02:59 AttributeError: Message instance has no
        > > > > attribute 'rstrip'
        > > > > 2012 Feb 21 (Tue) 10:02:59
        > > > >
        > > > > Thanks for the help its appreciated.
        > > > > Marc
        > > > >
        > > > >
        > > > > --- In atlantisdev@yahoogroups.com, Anthony Briggs <anthony.briggs@>
        > > > > wrote:
        > > > > >
        > > > > > It's possible that the API of mail has changed, and get_payload() now
        > > > > > returns a list. If that's the case, then just chop the split('\n')
        > > off
        > > > > the
        > > > > > end and it should work.
        > > > > >
        > > > > > Let me know how that goes,
        > > > > >
        > > > > > Anthony
        > > > > >
        > > > > > On 21 February 2012 02:25, wolfiegoth <monsieurmarc@> wrote:
        > > > > >
        > > > > > > **
        > > > >
        > > > > > >
        > > > > > >
        > > > > > > I think i have found a bug when processing orders.
        > > > > > >
        > > > > > > I often see this when processing emails from webmail clients:
        > > > > > >
        > > > > > > 2012 Feb 20 (Mon) 15:01:21 There was an error when processing
        > > msgID <
        > > > > > > 1329750073.28671.YahooMailNeo@>:
        > >
        > > > >
        > > > > > > 2012 Feb 20 (Mon) 15:01:21 Traceback (most recent call last):
        > > > > > > 2012 Feb 20 (Mon) 15:01:21 File "./thera.py", line 148, in main
        > > > > > > 2012 Feb 20 (Mon) 15:01:21 processMail(eachEmail)
        > > > > > > 2012 Feb 20 (Mon) 15:01:21 File "./thera.py", line 94, in
        > > processMail
        > > > > > > 2012 Feb 20 (Mon) 15:01:21 mailBody = [line.rstrip() for line in
        > > > > > > mail.get_payload().split('\n')]
        > > > > > > 2012 Feb 20 (Mon) 15:01:21 AttributeError: 'list' object has no
        > > > > attribute
        > > > > > > 'split'
        > > > > > >
        > > > > > > Any thoughts? I am using 2.0.2
        > > > > > >
        > > > > > > Regards
        > > > > > > Marc
        > > > > > >
        > > > > > >
        > > > > > >
        > > > > >
        > > > >
        > > > >
        > > > >
        > > >
        > >
        > >
        > >
        >
      Your message has been successfully submitted and would be delivered to recipients shortly.