S3Sync.net
February 02, 2014, 01:22:45 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: NoMethodError when running sync  (Read 3223 times)
npvincent
Newbie
*
Posts: 2


View Profile
« 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
Logged
ferrix
Sr. Member
****
Posts: 363


(I am greg13070 on AWS forum)


View Profile
« Reply #1 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
Logged
npvincent
Newbie
*
Posts: 2


View Profile
« Reply #2 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.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!