semifor / Net-Twitter

A Perl interface to the Twitter APIs
83 stars 37 forks source link

"Invalid version format (non-numeric data) ..." #20

Closed gatlin closed 11 years ago

gatlin commented 11 years ago

I have Perl 5.16.0 installed with perlbrew, and cpanminus v1.5014.

esther:~ gatlinjohnson$ cpanm Net::Twitter
--> Working on Net::Twitter
Fetching http://www.cpan.org/authors/id/M/MM/MMIMS/Net-Twitter-4.00004.tar.gz ... OK
Configuring Net-Twitter-4.00004 ... OK
Invalid version format (non-numeric data) at /loader/0x7f9dcc031238/App/cpanminus/script.pm line 1147.

Mac OS X 10.7.5, MacBook Air if that's useful. I'm sure it's an easy thing, but you might be able to fix it faster than I.

gatlin commented 11 years ago

I checked out branch api-v1.1 and ran

dzil authordeps | cpanm
cpanm Crypt::SSLeay
cpanm Data::Visitor::Callback
cpanm Net::OAuth
perl Makefile.PL
make
cpanm . --force

to get it to build and install. I don't know what caused the initial problem but it may only be present in master. The failed tests causing me to use --force may be a different matter :)

semifor commented 11 years ago

I think you'll find an upgrade to cpanm resolves that issue. I have the following dependency:

Net::HTTP = >=0,!=6.04,!=6.05

Only very recent versons of cpanm handle that.

gatlin commented 11 years ago

CPAN says the latest version of cpanm is 1.6902, and that's what I have installed on my system. What version are you using?

On Mon, Apr 22, 2013 at 1:22 PM, Marc Mims notifications@github.com wrote:

I think you'll find an upgrade to cpanm resolves that issue. I have the following dependency:

Net::HTTP = >=0,!=6.04,!=6.05

Only very recent versons of cpanm handle that.

On Mon, Apr 22, 2013 at 8:55 AM, Gatlin Johnson notifications@github.comwrote:

I checked out branch api-v1.1 and ran

cpanm Crypt::SSLeay cpanm Data::Visitor::Callback cpanm Net::OAuth perl Makefile.PL make cpanm . --force

to get it to build and install. I don't know what caused the initial problem but it may only be present in master. The failed tests causing me to use --force may be a different matter :)

— Reply to this email directly or view it on GitHub< https://github.com/semifor/Net-Twitter/issues/20#issuecomment-16796621> .

— Reply to this email directly or view it on GitHubhttps://github.com/semifor/Net-Twitter/issues/20#issuecomment-16811283 .

semifor commented 11 years ago

I think the issue was a crufty Makefile.PL. It shouldn't have been in the distribution at all since I've moved to Module::Build. I just released Net::Twitter 4.00005. See if that builds successfully for you, now.

bestscarper commented 11 years ago

FWIW I just hit the same problem with 4.00005. Upgrading cpanm fix it.