S3Sync.net

General Category => Questions => Topic started by: npvincent on March 31, 2007, 03:10:56 PM



Title: NoMethodError when running sync
Post by: npvincent on March 31, 2007, 03:10:56 PM
Hi,

I'm trying to get s3sync/s3cmd working under OSX to backup my music collection.

I've installed ruby 1.8.5 from darwinports but am seeing the following behaviour when I try to send a file to s3 with s3cmd:

Code:
buster:~/Desktop/s3sync nick$ ./s3cmd.rb list testnpv:test
--------------------
buster:~/Desktop/s3sync nick$ ./s3cmd.rb put testnpv:test ../gems.pdf
./HTTPStreaming.rb:42:in `request': undefined method `body_stream=' for #<Net::HTTP::Put PUT> (NoMethodError)
        from ./S3_s3sync_mod.rb:50:in `make_request'
        from ./S3.rb:152:in `put'
        from ./s3try.rb:57:in `send'
        from ./s3try.rb:57:in `S3try'
        from ./s3cmd.rb:172:in `s3cmdMain'
        from ./s3cmd.rb:207

s3cmd reports that it is version 1.0.5

I'm not sure what might be causing this, perhaps it's my ruby setup, but if anyone could give me a pointer it would be much appreciated.

Cheers,

Nick


Title: Re: NoMethodError when running sync
Post by: ferrix on April 01, 2007, 01:42:31 AM
I don't habeeb it.  It seems like your ruby libs are something pre 1.8.4


Title: Re: NoMethodError when running sync
Post by: npvincent on April 01, 2007, 08:07:28 AM
Hi Ferrix,

Thanks for responding so quickly, I was actually visiting this morning to add a post to say I actually cracked this last night, it seems that you need to get the macports version of ruby first in the PATH even if you explicitly point to the ruby interpreter in the macports dir.  All working splendidly now.  Thanks for such a great tool.