Bug 1153940 - LWP::UserAgent version 5.827 required--this is only version 2.033
Summary: LWP::UserAgent version 5.827 required--this is only version 2.033
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: perl-WWW-Mechanize
Version: 20
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Emmanuel Seyman
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-10-17 07:39 UTC by Sidney Sedlak
Modified: 2014-10-17 08:43 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-10-17 08:43:00 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Perl test script (79 bytes, application/x-perl)
2014-10-17 07:39 UTC, Sidney Sedlak
no flags Details

Description Sidney Sedlak 2014-10-17 07:39:34 UTC
Created attachment 947809 [details]
Perl test script

Description of problem:
When executing script which uses the WWW::Mechanize module, the following error is thrown:
LWP::UserAgent version 5.827 required--this is only version 2.033 at /usr/share/perl5/vendor_perl/WWW/Mechanize.pm line 132.
BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/WWW/Mechanize.pm line 132.


Version-Release number of selected component (if applicable):
perl-WWW-Mechanize-1.72-6.fc20.noarch
perl-libwww-perl-6.05-3.fc20.noarch


How reproducible:
#!/usr/bin/perl -w
use 5.10.1;
use strict;
use warnings;
use WWW::Mechanize;

Steps to Reproduce:
1. Create a test script with content above
2. Run it
3.

Actual results:
LWP::UserAgent version 5.827 required--this is only version 2.033 at /usr/share/perl5/vendor_perl/WWW/Mechanize.pm line 132.
BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/WWW/Mechanize.pm line 132.

Expected results:
Script runs without errors


Additional info:
Fedora 20 x86_64 with latest updates

Comment 1 Petr Pisar 2014-10-17 07:49:29 UTC
I cannot reproduce it. I suspect you have an old LWP::UserAgent installed in a path that precedes vendor path. Try this command to identify the LWP::UserAgent, you use:

$ perl -e 'require LWP::UserAgent; print qq{$INC{q{LWP/UserAgent.pm}} $LWP::UserAgent::VERSION\n}'
/usr/share/perl5/LWP/UserAgent.pm 6.05

Comment 2 Sidney Sedlak 2014-10-17 08:31:36 UTC
Thanks,

here comes the result:

$ perl -e 'require LWP::UserAgent; print qq{$INC{q{LWP/UserAgent.pm}}
> $LWP::UserAgent::VERSION\n}'
/usr/lib64/perl5/LWP/UserAgent.pm
2.033

# yum whatprovides /usr/lib64/perl5/LWP/UserAgent.pm
Loaded plugins: fastestmirror, langpacks, ps, refresh-packagekit, verify, versionlock
Loading mirror speeds from cached hostfile
 * fedora: ftp.nluug.nl
 * rpmfusion-free: ftp.nluug.nl
 * rpmfusion-free-updates: ftp.nluug.nl
 * rpmfusion-nonfree: ftp.nluug.nl
 * rpmfusion-nonfree-updates: ftp.nluug.nl
 * updates: ftp.nluug.nl
No matches found

I tried to check the file timestamp and found some odd VMware Perl SDK installation stuff, which I removed.

And it works now. I feel a bit stupid, I could checked this first :-(

However, this works now, so the bug may be closed...


Note You need to log in before you can comment on or make changes to this bug.