From: Andrew L. <one...@gm...> - 2005-09-19 13:04:10
|
Hi Stas, On the first point, the traceback he posted is from CVS revision 1.59; I suggested he add the [] in 1.60 to turn the 2.4-only generator expression into a 2.0+ (?) compatible list comprehension. I can't imagine how that fix could have caused trouble. I have a Linux machine running 2.3 available, but won't have time to actually work on anything until at least this evening, possibly much later. So if Waseem or someone can check the code before then that would be better. Andrew On 9/19/05, Stas Z <sta...@gm...> wrote: > On 9/18/05, Waseem S. Daher <wd...@mi...> wrote: > > Stas- > > > > Thanks for all your hard work! > > Right now when I run the latest CVS version, I get the following error: > > > > wdaher@zygorthian-space-raiders:~/Projects/libgmail$ python libgmail.py > > File "libgmail.py", line 93 > > data =3D '\n'.join(x for x in lines if x and x[0] in ['D', ')', ','= , > > ']']) > > ^ > > SyntaxError: invalid syntax > I suspect that your copy of libgmail.py is corrupted. I assume that you > cut and paste the above traceback. > The correct line is: > data =3D '\n'.join([x for x in lines if x and x[0] in ['D', ')', ',', ']'= ]]) > . ^^^ >=20 > When I test it with Python2.3: > stas@mobi:~/CVS-WORK/libgmail$ python2.3 libgmail.py > Gmail account name: gatester1 > Password: >=20 > Please wait, logging in... > Login successful. >=20 > 23 MB of 2608 MB used. (1%) >=20 > Select folder or label to list: (Ctrl-C to exit) > 0. inbox > 1. starred > 2. all > 3. drafts > 4. sent > 5. spam > Choice: 0 >=20 >=20 > 105ede6be44ce5b9 2 test mail > 1045b58fffb35c40 1 test mail > 105ede6be44ce5b9 2 Re: test mail > ...... > ...... >=20 > Can you check your copy of libgmail.py? >=20 > > Also, I uncommented a 'deal with multiline notes fields in contacts', > > and that test does not yet pass for some reason. I'll try to investigat= e > > further. I /have/ checked in this version of testlibgmail.py though. > OK, but I suggest that we release libgmail as it is now *after* you > check that you can > run it on your Python2.3 system. >=20 > Stas >=20 > -- > A nation that continues year after year to spend more money on military d= efense > than on programs of social uplift is approaching spiritual doom. > Martin Luther King, Jr. >=20 >=20 > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. > Download it for free - -and be entered to win a 42" plasma tv or your ver= y > own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Gmailagent-devel mailing list > Gma...@li... > https://lists.sourceforge.net/lists/listinfo/gmailagent-devel > |