Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Net-Twitter-Lite CPAN distribution.

Report information
The Basics
Id: 46855
Status: resolved
Priority: 0/
Queue: Net-Twitter-Lite

People
Owner: MMIMS [...] cpan.org
Requestors: shuff [...] hmdc.harvard.edu
Cc: mcox [...] hmdc.harvard.edu
AdminCc:

Bug Information
Severity: Important
Broken in:
  • 0.01000
  • 0.01001
  • 0.02000
Fixed in: (no value)



CC: mcox [...] hmdc.harvard.edu
Subject: incorrect LWP::UserAgent dependency
I think that the version of LWP::UserAgent that Net::Twitter:Lite reports that it needs is not correct. I'm using RHEL v5 (which does have slightly older versions of Perl and libwww), however, they seem to be within the range supported. I'm seeing a problem that the LWP::UserAgent does not seem to have the required 'add_handler' method: $ perl -MNet::Twitter::Lite -e '$nt = Net::Twitter::Lite->new();' Can't locate object method "add_handler" via package "LWP::UserAgent" at Net/Twitter/Lite.pm line 48. $ perl Makefile.PL *** Module::AutoInstall version 1.03 *** Checking for Perl dependencies... [Core Features] - JSON::Any ...loaded. (1.19 >= 1.19) - URI::Escape ...loaded. (3.28) - LWP::UserAgent ...loaded. (2.033 >= 2.032) *** Module::AutoInstall configuration finished. Checking if your kit is complete... Looks good Warning: prerequisite ExtUtils::MakeMaker 6.42 not found. We have 6.30. Writing Makefile for Net::Twitter::Lite $ perl -v This is perl, v5.8.8 built for x86_64-linux-thread-multi $ rpm -q perl-libwww-perl perl-libwww-perl-5.805-1.1.1 $ uname -a Linux ***.***.harvard.edu 2.6.18-128.el5 #1 SMP Wed Dec 17 11:41:38 EST 2008 x86_64 x86_64 x86_64 GNU/Linux CPAN indicates that the required 'add_handler' method was first added in LWP::UserAgent 5.819; the appropriate fix for this issue, it seems, would be to increase the LWP::UserAgent dependency in your Makefile.PL from 2.032 to 5.819 (which will, unfortunately, preclude this module from running on RHEL 5 or earlier). -- Steve Huff - Systems Administrator, HMDC
I've reverted the "feature" that required add_handler so that the a newer LWP::UserAgent will not be required. Net::Twitter::Lite is intended for use on older systems and with minimal dependencies in order to accommodate environments like shared hosting sites where users may not have the ability to install CPAN modules to meet newer dependencies. The "feature" added a Basic Auth header on initial requests, rather than waiting for Twitter to return a 401 response including the realm. Without this feature, Net::Twitter::Lite behaves the same way Net::Twitter 2.12 and prior did. I may reintroduce the feature with a different implementation that does not require the add_handler method.
Subject: Re: [rt.cpan.org #46855] incorrect LWP::UserAgent dependency
Date: Thu, 11 Jun 2009 13:28:03 -0400
To: bug-Net-Twitter-Lite [...] rt.cpan.org
From: Steve Huff <shuff [...] hmdc.harvard.edu>
On 6/11/09 12:52 PM, Marc Mims via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=46855> > > I've reverted the "feature" that required add_handler so that the a > newer LWP::UserAgent will not be required.
You're a machine! Thanks for the prompt response; it builds fine for us and appears to work as desired. -Steve -- Steve Huff - Systems Administrator, HMDC
Looks like the follow-up message re-opened the bug.