Skip Menu |

This queue is for tickets about the WWW-Yahoo-Groups CPAN distribution.

Report information
The Basics
Id: 3205
Status: resolved
Priority: 0/
Queue: WWW-Yahoo-Groups

People
Owner: spoon [...] cpan.org
Requestors: bobhopefan2003 [...] yahoo.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Date: Sun, 10 Aug 2003 23:22:23 -0700 (PDT)
From: Frank Thomas <bobhopefan2003 [...] yahoo.com>
Subject: Urgently need install help
To: bug-WWW-Yahoo-Groups [...] rt.cpan.org
I tried installing the WWW::Yahoo:Groups module, successfully installing all the prerequisite modules (had one problem with HTML::Parser which I found the solution for (was a bug in the module, but with the workaround managed to install it without any test errors or other problems) before hand. There is a great deal of urgency to this request since Yahoo is planning to remove all attachments to emails in a few days from now and I'm trying to download a truckload of emails via a perl script prior to the deadline. Upon running "make test TEST_VERBOSE=1" I get the following output.... (my perl version info follows below): PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(1, 'blib/lib', 'blib/arch')" t/*.t t/00load.........1..1 ok 1 - use WWW::Yahoo::Groups; ok t/01login........1..4 ok 1 - use WWW::Yahoo::Groups; ok 2 - The object isa WWW::Yahoo::Groups ok 3 - Login failed: Nope. That's not a good login. ok 4 - Fetch failed: Cannot fetch a message without a list being specified. ok t/02badparam.....1..32 ok 1 - use WWW::Yahoo::Groups; ok 2 - The object isa WWW::Yahoo::Groups ok 3 - autosleep_fractional: Parameter \#1 to WWW::Yahoo::Groups::Mechanize::autosleep did not pass the 'is integer' callback ok 4 - autosleep_string: Parameter \#1 to WWW::Yahoo::Groups::Mechanize::autosleep did not pass the 'is integer' callback ok 5 - autosleep_subzero: Parameter \#1 to WWW::Yahoo::Groups::Mechanize::autosleep did not pass the 'is integer' callback ok 6 - autosleep_toomany: 2 parameters were passed to WWW::Yahoo::Groups::Mechanize::autosleep but 1 was expected ok 7 - autosleep_undef: Parameter \#1 to WWW::Yahoo::Groups::Mechanize::autosleep was an 'undef', which is not one of the allowed types: scalar ok 8 - fetch_message_fractional: Parameter \#1 to WWW::Yahoo::Groups::fetch_message did not pass the 'is integer' callback ok 9 - fetch_message_insufficient: 0 parameters were passed to WWW::Yahoo::Groups::fetch_message but 1 was expected ok 10 - fetch_message_string: Parameter \#1 to WWW::Yahoo::Groups::fetch_message did not pass the 'is integer' callback ok 11 - fetch_message_toomany: 2 parameters were passed to WWW::Yahoo::Groups::fetch_message but 1 was expected ok 12 - fetch_message_undef: Parameter \#1 to WWW::Yahoo::Groups::fetch_message was an 'undef', which is not one of the allowed types: scalar ok 13 - fetch_message_zero: Parameter \#1 to WWW::Yahoo::Groups::fetch_message did not pass the 'greater than zero' callback ok 14 - fetch_rss_fractional: Parameter \#1 to WWW::Yahoo::Groups::fetch_rss did not pass the 'is integer' callback ok 15 - fetch_rss_hundred_one: Parameter \#1 to WWW::Yahoo::Groups::fetch_rss did not pass the 'less than or equal to one hundred' callback ok 16 - fetch_rss_string: Parameter \#1 to WWW::Yahoo::Groups::fetch_rss did not pass the 'is integer' callback ok 17 - fetch_rss_toomany: 2 parameters were passed to WWW::Yahoo::Groups::fetch_rss but 0 - 1 was expected ok 18 - fetch_rss_undef: Parameter \#1 to WWW::Yahoo::Groups::fetch_rss was an 'undef', which is not one of the allowed types: scalar ok 19 - fetch_rss_zero: Parameter \#1 to WWW::Yahoo::Groups::fetch_rss did not pass the 'greater than zero' callback ok 20 - first_msg_id_toomany: 1 parameter was passed to WWW::Yahoo::Groups::first_msg_id but 0 were expected ok 21 - last_msg_id_toomany: 1 parameter was passed to WWW::Yahoo::Groups::last_msg_id but 0 were expected ok 22 - list_badchars: Parameter \#1 to WWW::Yahoo::Groups::list did not pass the 'appropriate characters' callback ok 23 - list_blank: Parameter \#1 to WWW::Yahoo::Groups::list did not pass the 'defined and of length' callback ok 24 - list_toomany: 2 parameters were passed to WWW::Yahoo::Groups::list but 1 was expected ok 25 - lists_toomany: 1 parameter was passed to WWW::Yahoo::Groups::lists but 0 were expected ok 26 - loggedin_toomany: 1 parameter was passed to WWW::Yahoo::Groups::loggedin but 0 were expected ok 27 - login_arrayref: Parameter \#1 to WWW::Yahoo::Groups::login was an 'arrayref', which is not one of the allowed types: scalar ok 28 - login_insufficient: 1 parameter was passed to WWW::Yahoo::Groups::login but 2 were expected ok 29 - login_named: 4 parameters were passed to WWW::Yahoo::Groups::login but 2 were expected ok 30 - login_named_dash: 4 parameters were passed to WWW::Yahoo::Groups::login but 2 were expected ok 31 - login_toomany: 3 parameters were passed to WWW::Yahoo::Groups::login but 2 were expected ok 32 - logout_toomany: 1 parameter was passed to WWW::Yahoo::Groups::logout but 0 were expected ok t/03adult........1..8 ok 1 - use WWW::Yahoo::Groups; ok 2 - The object isa WWW::Yahoo::Groups Nope. That's not a good login. at /usr/lib/perl5/site_perl/5.8.0/Exception/Class.pm line 233. # Looks like you planned 8 tests but only ran 2. # Looks like your test died just after 2. dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 3-8 Failed 6/8 tests, 25.00% okay t/03message......1..10 ok 1 - use WWW::Yahoo::Groups; ok 2 - The object isa WWW::Yahoo::Groups Nope. That's not a good login. at /usr/lib/perl5/site_perl/5.8.0/Exception/Class.pm line 233. # Looks like you planned 10 tests but only ran 2. # Looks like your test died just after 2. dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 3-10 Failed 8/10 tests, 20.00% okay t/04rss..........1..23 ok 1 - use WWW::Yahoo::Groups; ok 2 - The object isa WWW::Yahoo::Groups Nope. That's not a good login. at /usr/lib/perl5/site_perl/5.8.0/Exception/Class.pm line 233. # Looks like you planned 23 tests but only ran 2. # Looks like your test died just after 2. dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 3-23 Failed 21/23 tests, 8.70% okay t/05lists........1..7 ok 1 - use WWW::Yahoo::Groups; ok 2 - The object isa WWW::Yahoo::Groups ok 3 - We are not logged in ok 4 - One cannot fetch lists while not logged in. Nope. That's not a good login. at /usr/lib/perl5/site_perl/5.8.0/Exception/Class.pm line 233. # Looks like you planned 7 tests but only ran 4. # Looks like your test died just after 4. dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 5-7 Failed 3/7 tests, 57.14% okay t/06lastmsgid....1..16 ok 1 - use WWW::Yahoo::Groups; ok 2 - The object isa WWW::Yahoo::Groups Nope. That's not a good login. at /usr/lib/perl5/site_perl/5.8.0/Exception/Class.pm line 233. # Looks like you planned 16 tests but only ran 2. # Looks like your test died just after 2. dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 3-16 Failed 14/16 tests, 12.50% okay t/07sleep........1..7 ok 1 - use WWW::Yahoo::Groups; ok 2 - The object isa WWW::Yahoo::Groups ok 3 - autosleep() returns what was given Nope. That's not a good login. at /usr/lib/perl5/site_perl/5.8.0/Exception/Class.pm line 233. # Looks like you planned 7 tests but only ran 3. # Looks like your test died just after 3. dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 4-7 Failed 4/7 tests, 42.86% okay t/08logout.......1..11 ok 1 - use WWW::Yahoo::Groups; ok 2 - The object isa WWW::Yahoo::Groups ok 3 - Can not log out if not logged in. not ok 4 - Logged in # Failed test (t/08logout.t at line 20) not ok 5 - Am logged in # Failed test (t/08logout.t at line 21) ok 6 - Logged out ok 7 - Am logged out not ok 8 - Logged in # Failed test (t/08logout.t at line 20) not ok 9 - Am logged in # Failed test (t/08logout.t at line 21) ok 10 - Logged out ok 11 - Am logged out # Looks like you failed 4 tests of 11. dubious Test returned status 4 (wstat 1024, 0x400) DIED. FAILED tests 4-5, 8-9 Failed 4/11 tests, 63.64% okay t/09badfetch.....1..3 ok 1 - use WWW::Yahoo::Groups; ok 2 - The object isa WWW::Yahoo::Groups ok 3 - Correctly given a fatal BadFetch. ok t/10agent........1..7 ok 1 - use WWW::Yahoo::Groups; ok 2 - The object isa WWW::Yahoo::Groups ok 3 - The object isa WWW::Mechanize ok 4 - Same object as before ok 5 - The object isa WWW::Yahoo::Groups ok 6 - Same object as before ok 7 - The object isa Fnar ok t/11reform.......1..4 ok 1 - use WWW::Yahoo::Groups; ok 2 - The object isa WWW::Yahoo::Groups ok 3 - Reformatted message headers ok 4 - All done ok t/99pod..........1..1 ok 1 # skip File::Find::Rule not installed ok 1/1 skipped: File::Find::Rule not installed Failed 7/14 test scripts, 50.00% okay. 60/134 subtests failed, 55.22% okay. Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/03adult.t 255 65280 8 6 75.00% 3-8 t/03message.t 255 65280 10 8 80.00% 3-10 t/04rss.t 255 65280 23 21 91.30% 3-23 t/05lists.t 255 65280 7 3 42.86% 5-7 t/06lastmsgid.t 255 65280 16 14 87.50% 3-16 t/07sleep.t 255 65280 7 4 57.14% 4-7 t/08logout.t 4 1024 11 4 36.36% 4-5 8-9 1 subtest skipped. make: *** [test_dynamic] Error 29 Perl Version Info: Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration: Platform: osname=linux, osvers=2.4.18-11smp, archname=i386-linux-thread-multi uname='linux daffy.perf.redhat.com 2.4.18-11smp #1 smp thu aug 15 06:41:59 edt 2002 i686 i686 i386 gnulinux ' config_args='-des -Doptimize=-O2 -march=i386 -mcpu=i686 -Dmyhostname=localhost -Dperladmin=root@localhost -Dcc=gcc -Dcf_by=Red Hat, Inc. -Dinstallprefix=/usr -Dprefix=/usr -Darchname=i386-linux -Dvendorprefix=/usr -Dsiteprefix=/usr -Duseshrplib -Dusethreads -Duseithreads -Duselargefiles -Dd_dosuid -Dd_semctl_semun -Di_db -Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm -Duseperlio -Dinstallusrbinperl -Ubincompat5005 -Uversiononly -Dpager=/usr/bin/less -isr' hint=recommended, useposix=true, d_sigaction=define usethreads=define use5005threads=undef useithreads=define usemultiplicity=define useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm', optimize='-O2 -march=i386 -mcpu=i686', cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -I/usr/include/gdbm' ccversion='', gccversion='3.2 20020822 (Red Hat Linux Rawhide 3.2-5)', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=4, prototype=define Linker and Libraries: ld='gcc', ldflags =' -L/usr/local/lib' libpth=/usr/local/lib /lib /usr/lib libs=-lnsl -lgdbm -ldb -ldl -lm -lpthread -lc -lcrypt -lutil perllibs=-lnsl -ldl -lm -lpthread -lc -lcrypt -lutil libc=/lib/libc-2.2.92.so, so=so, useshrplib=true, libperl=libperl.so gnulibc_version='2.2.92' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic -Wl,-rpath,/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE' cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT Built under linux Compiled at Sep 1 2002 23:56:49 @INC: /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl . Thanks! --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software

Message body is not shown because it is too large.

[bobhopefan2003@yahoo.com - Mon Aug 11 02:22:30 2003]: Show quoted text
> I tried installing the WWW::Yahoo:Groups module, > successfully installing all the prerequisite modules (had > one problem with HTML::Parser which I found the solution > for (was a bug in the module, but with the workaround > managed to install it without any test errors or other > problems) before hand.
Out of interest, what was the HTML::Parser problem (if it can be easily summarised)? I like to find out about prereq problems. Show quoted text
> There is a great deal of urgency to this request since > Yahoo is planning to remove all attachments to emails in a > few days from now and I'm trying to download a truckload > of emails via a perl script prior to the deadline.
On the 21st apparently. There was an extension. Still, it does take time to download a whole archive, particularly if there are many large attachments. Show quoted text
> Upon running "make test TEST_VERBOSE=1" I get the following output.... > (my perl version info follows below):
[...] Show quoted text
> t/03message......1..10 > ok 1 - use WWW::Yahoo::Groups; > ok 2 - The object isa WWW::Yahoo::Groups > Nope. That's not a good login. at > /usr/lib/perl5/site_perl/5.8.0/Exception/Class.pm line 233. > # Looks like you planned 10 tests but only ran 2. > # Looks like your test died just after 2. > dubious > Test returned status 255 (wstat 65280, 0xff00) > DIED. FAILED tests 3-10 > Failed 8/10 tests, 20.00% okay
[...] Hmm. Looks like Yahoo itself is being a bit flaky. It's doing much the same on my machines. Perhaps assume the tests work, and try with a real program (something like the example in the examples directory). The tests are failing on my machines, but my cron job to update a local archive of one of my lists is happily still working. It's possible their systems have picked up on the test user and are being horrible to it. I'll see if the problem persists and try to remedy if it does. The problem with these web based modules is that sometimes the web just isn't cooperative. Hope that helps, cheers, -- Iain.
[guest - Sun Aug 17 04:39:24 2003]: Show quoted text
> The install seemed to go fine and I wrote a small snippet > of code to test things - that's where the problem > immediately shows up.
The problem appears to be related to the speed of fetches. If I make the default autosleep around 5 seconds it seems to be much happier. I'm guessing that Yahoo's put in some rate limiting software so that people don't inundate their site trying to download archives automatically. So, the solution is to either modify autosleep in lib/WWW/Yahoo/Groups/Mechanize.pm so that the last line has a 5 instead of a 0, like thus: sub autosleep { [...] return $w->{__PACKAGE__.'-sleep'}||5; } Or do do this: #!/usr/bin/perl -w use WWW::Yahoo::Groups; my $user = 'username'; my $pass = 'password'; my $y = WWW::Yahoo::Groups->new(); $y->autosleep(5); # XXX THIS LINE HERE WAS ADDED. $y->debug(1); # you may find this useful $y->login ($user => $pass); $y->list ('Wonderful_Resources'); my $email = $y->fetch_message(1116); print "Here is the email:\n"; print "$email\n"; See how this goes? (note that as a sideeffect this will mean the minimum time to download Wonderful_Resources is about 2 hours, 15 minutes). cheers, -- Iain.