Subject: | S3 now broken on Win32 due to Moose? |
Date: | Wed, 1 Jul 2009 10:24:50 +0100 |
To: | bug-Net-Amazon-S3 [...] rt.cpan.org |
From: | roger.moffatt [...] gmail.com |
I had to upgrade Net::Amazon::S3 today to add in the
query_authentication_uri method so using PPM manager on a windows
installation of Perl 5.10.0 I upgraded to version 0.51.
I was a bit shocked to start with at the number of extra dependencies
that had arrived, and with some trepidation I went ahead and installed
the modules listed below.
The installation went fine, but sadly now NOTHING on S3 works :(
use Net::Amazon::S3 causes the following error;
(This is with moose 0.85, I've also tried with 0.79 and 0.55 but that
just pushes the error elsewhere.)
As I only need about 6 lines of code from
Net::Amazon::S3::Client::Object I'm going to rewind my server to
before this point and fork my own Net::Amazon::S3 library until there
is a fix.
The attributes method has been made private. The public version is
deprecated and will be removed in a future release.
at C:/Perl/site/lib/Class/MOP/Method/Constructor.pm line 74
Class::MOP::Method::Constructor::attributes('Class::MOP::Class::__ANON__::SERIAL::1=HASH(0x2e69814)')
called at C:/Perl/site/lib/MooseX/StrictConstructor/Role/Meta/Method/Constructor.pm
line 22
Class::MOP::Class:::around('CODE(0x298046c)',
'Class::MOP::Class::__ANON__::SERIAL::1=HASH(0x2e69814)') called at
C:/Perl/site/lib/Class/MOP/Method/Wrapped.pm line 139
Class::MOP::Method::Wrapped::__ANON__('Class::MOP::Class::__ANON__::SERIAL::1=HASH(0x2e69814)')
called at C:/Perl/site/lib/Class/MOP/Method/Wrapped.pm line 89
Class::MOP::Class::__ANON__::SERIAL::1::_generate_BUILDALL('Class::MOP::Class::__ANON__::SERIAL::1=HASH(0x2e69814)')
called at C:/Perl/site/lib/Moose/Meta/Method/Constructor.pm line 74
Moose::Meta::Method::Constructor::_initialize_body('Class::MOP::Class::__ANON__::SERIAL::1=HASH(0x2e69814)')
called at C:/Perl/site/lib/Moose/Meta/Method/Constructor.pm line 41
Moose::Meta::Method::Constructor::new('Class::MOP::Class::__ANON__::SERIAL::1',
'options', 'HASH(0x2dd8264)', 'metaclass',
'Moose::Meta::Class=HASH(0x2e09f6c)', 'is_inline', 1, 'package_name',
'Net::Amazon::S3::Bucket', ...) called at
C:/Perl/site/lib/Class/MOP/Class.pm line 1185
Class::MOP::Class::_inline_constructor('Moose::Meta::Class=HASH(0x2e09f6c)',
'inline_accessors', 0, 'immutable_trait',
'Moose::Meta::Class::Immutable::Trait', 'constructor_name', 'new',
'debug', 0, ...) called at C:/Perl/site/lib/Class/MOP/Class.pm line
1146
Class::MOP::Class::_install_inlined_code('Moose::Meta::Class=HASH(0x2e09f6c)',
'inline_accessors', 0, 'immutable_trait',
'Moose::Meta::Class::Immutable::Trait', 'constructor_name', 'new',
'debug', 0, ...) called at C:/Perl/site/lib/Class/MOP/Class.pm line
1138
Class::MOP::Class::_initialize_immutable('Moose::Meta::Class=HASH(0x2e09f6c)',
'inline_accessors', 1, 'inline_constructor', 1, 'inline_destructor',
0, 'debug', 0, ...) called at C:/Perl/site/lib/Class/MOP/Class.pm line
1041
Class::MOP::Class::make_immutable('Moose::Meta::Class=HASH(0x2e09f6c)')
called at C:/Perl/site/lib/Net/Amazon/S3/Bucket.pm line 12
require Net/Amazon/S3/Bucket.pm called at
C:/Perl/site/lib/Net/Amazon/S3.pm line 109
Net::Amazon::S3::BEGIN() called at
C:/Perl/site/lib/Net/Amazon/S3/Bucket.pm line 0
eval {...} called at C:/Perl/site/lib/Net/Amazon/S3/Bucket.pm line 0
require Net/Amazon/S3.pm called at D:\backupsdb\home.cgi line 16
main::BEGIN() called at C:/Perl/site/lib/Net/Amazon/S3/Bucket.pm line 0
eval {...} called at C:/Perl/site/lib/Net/Amazon/S3/Bucket.pm line 0
The attributes method has been made private. The public version is
deprecated and will be removed in a future release.
at C:/Perl/site/lib/Class/MOP/Method/Constructor.pm line 74
Class::MOP::Method::Constructor::attributes('Class::MOP::Class::__ANON__::SERIAL::1=HASH(0x2eadd2c)')
called at C:/Perl/site/lib/MooseX/StrictConstructor/Role/Meta/Method/Constructor.pm
line 22
Class::MOP::Class:::around('CODE(0x298046c)',
'Class::MOP::Class::__ANON__::SERIAL::1=HASH(0x2eadd2c)') called at
C:/Perl/site/lib/Class/MOP/Method/Wrapped.pm line 139
Class::MOP::Method::Wrapped::__ANON__('Class::MOP::Class::__ANON__::SERIAL::1=HASH(0x2eadd2c)')
called at C:/Perl/site/lib/Class/MOP/Method/Wrapped.pm line 89
Class::MOP::Class::__ANON__::SERIAL::1::_generate_BUILDALL('Class::MOP::Class::__ANON__::SERIAL::1=HASH(0x2eadd2c)')
called at C:/Perl/site/lib/Moose/Meta/Method/Constructor.pm line 74
Moose::Meta::Method::Constructor::_initialize_body('Class::MOP::Class::__ANON__::SERIAL::1=HASH(0x2eadd2c)')
called at C:/Perl/site/lib/Moose/Meta/Method/Constructor.pm line 41
Moose::Meta::Method::Constructor::new('Class::MOP::Class::__ANON__::SERIAL::1',
'options', 'HASH(0x2e76f84)', 'metaclass',
'Moose::Meta::Class=HASH(0x2e918ac)', 'is_inline', 1, 'package_name',
'Net::Amazon::S3::Client', ...) called at
C:/Perl/site/lib/Class/MOP/Class.pm line 1185
Class::MOP::Class::_inline_constructor('Moose::Meta::Class=HASH(0x2e918ac)',
'inline_accessors', 0, 'immutable_trait',
'Moose::Meta::Class::Immutable::Trait', 'constructor_name', 'new',
'debug', 0, ...) called at C:/Perl/site/lib/Class/MOP/Class.pm line
1146
Class::MOP::Class::_install_inlined_code('Moose::Meta::Class=HASH(0x2e918ac)',
'inline_accessors', 0, 'immutable_trait',
'Moose::Meta::Class::Immutable::Trait', 'constructor_name', 'new',
'debug', 0, ...) called at C:/Perl/site/lib/Class/MOP/Class.pm line
1138
Class::MOP::Class::_initialize_immutable('Moose::Meta::Class=HASH(0x2e918ac)',
'inline_accessors', 1, 'inline_constructor', 1, 'inline_destructor',
0, 'debug', 0, ...) called at C:/Perl/site/lib/Class/MOP/Class.pm line
1041
Class::MOP::Class::make_immutable('Moose::Meta::Class=HASH(0x2e918ac)')
called at C:/Perl/site/lib/Net/Amazon/S3/Client.pm line 13
require Net/Amazon/S3/Client.pm called at
C:/Perl/site/lib/Net/Amazon/S3.pm line 110
Net::Amazon::S3::BEGIN() called at
C:/Perl/site/lib/Net/Amazon/S3/Client.pm line 0
eval {...} called at C:/Perl/site/lib/Net/Amazon/S3/Client.pm line 0
require Net/Amazon/S3.pm called at D:\backupsdb\home.cgi line 16
main::BEGIN() called at C:/Perl/site/lib/Net/Amazon/S3/Client.pm line 0
eval {...} called at C:/Perl/site/lib/Net/Amazon/S3/Client.pm line 0
These are the modules that were installed.
Downloading Net-Amazon-S3-0.51 ... done
Downloading DateTime-Format-HTTP-0.38 ... done
Downloading MooseX-Types-DateTimeX-0.06 ... done
Downloading Time-Duration-Parse-0.06 ... done
Downloading MooseX-Types-0.14 ... done
Downloading DateTimeX-Easy-0.087 ... done
Downloading MooseX-Types-DateTime-ButMaintained-0.06 ... done
Downloading Time-Duration-1.06 ... done
Downloading DateTime-Format-Flexible-0.09 ... done
Downloading DateTime-Format-DateParse-0.04 ... done
Downloading DateTime-Format-Natural-0.77 ... done
Downloading Test-Most-0.21 ... done
Downloading DateTime-Format-ICal-0.09 ... done
Downloading DateTime-Format-DateManip-0.04 ... done
Downloading Olson-Abbreviations-0.02 ... done
Downloading Test-Pod-Coverage-1.08 ... done
Downloading Test-Pod-1.26 ... done
Downloading Readonly-1.03 ... done
Downloading TimeDate-1.16 ... done
Downloading Test-MockTime-0.12 ... done
Downloading boolean-0.20 ... done
Downloading Exception-Class-1.29 ... done
Downloading Test-Harness-3.17 ... done
Downloading Test-Warn-0.11 ... done
Downloading Test-Deep-0.104 ... done
Downloading DateTime-Event-ICal-0.09 ... done
Downloading DateTime-Set-0.27 ... done
Downloading Date-Manip-5.54 ... done
Downloading MooseX-AttributeHelpers-0.20 ... done
Downloading MooseX-ClassAttribute-0.08 ... done
Downloading Pod-Coverage-0.20 ... done
Downloading Devel-StackTrace-1.20 ... done
Downloading Class-Data-Inheritable-0.08 ... done
Downloading Array-Compare-1.17 ... done
Downloading Tree-DAG_Node-1.06 ... done
Downloading Test-Tester-0.107 ... done
Downloading Test-NoWarnings-0.084 ... done
Downloading DateTime-Event-Recurrence-0.16 ... done
Downloading Set-Infinite-0.63 ... done
Downloading Moose-0.85 ... done
Downloading Devel-Symdump-2.08 ... done
Downloading Class-MOP-0.88 ... done
Help appreciated!!!