Error on project generation

3 views
Skip to first unread message

Tolmark

unread,
Jun 25, 2008, 11:38:40 AM6/25/08
to ProjectSprouts
First of all, great work on Sprouts!

I've recently wiped my hard drive and installed a fresh installation
of OSX. I've re-installed sprouts, and this is the error I get when
trying to generate a new project:

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
gems/1.8/gems/net-sftp-1.1.0/lib/net/sftp.rb:37: undefined method
`register_service' for Net::SSH:Module (NoMethodError)
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in
`require'
from /Library/Ruby/Gems/1.8/gems/sprout-0.7.183-darwin/lib/sprout/
tasks/sftp_task.rb:34
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in
`require'
from /Library/Ruby/Gems/1.8/gems/sprout-0.7.183-darwin/lib/sprout/
general_tasks.rb:2
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in
`require'
from /Library/Ruby/Gems/1.8/gems/sprout-0.7.183-darwin/lib/sprout.rb:
35
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in
`require'
from /Library/Ruby/Gems/1.8/gems/sprout-0.7.183-darwin/bin/sprout:13
from /usr/bin/sprout:19:in `load'
from /usr/bin/sprout:19


I'm sure I'm probably missing something simple. If anyone has any
ideas, I'd be very appreciative.

Thanks,
-Mark

Luke Bayes

unread,
Jun 27, 2008, 2:51:18 PM6/27/08
to project...@googlegroups.com
Crap!

It looks like our dependencies may have gotten out of whack.

You'll need to install net-ssh manually.

sudo gem install net-ssh

I just added the dependency in version control, any subsequent errors
will likely be other missing gems.


Thanks,


Luke Bayes

Tolmark

unread,
Jun 30, 2008, 9:50:27 AM6/30/08
to ProjectSprouts
Thanks for the quick reply Luke.

I tried the manual install and am getting the same error. I've checked
the path:

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
gems/1.8/gems/net-sftp-1.1.0/lib/net/sftp.rb:37: (see above error)

and the sftp.rb file is there with the Net::SSH.register_service
method intact. Not being familiar with ruby, is the ":37:" on the end
of the path look right?

Thanks again!
-Mark

Luke Bayes

unread,
Jun 30, 2008, 12:01:52 PM6/30/08
to project...@googlegroups.com
Sorry I'm not clear here, did you manually install 'net-ssh'?

It looks to me like that's the missing dependency, not net-sftp.

It's a little confusing with the net-* packages.


Thanks,

Luke

Tolmark

unread,
Jun 30, 2008, 12:07:22 PM6/30/08
to ProjectSprouts
yeah, ran the: sudo gem install net-ssh

Tolmark

unread,
Jun 30, 2008, 12:32:20 PM6/30/08
to ProjectSprouts
I just did a fresh install of gems and it's working fine now.

Thanks for the help and the time!
-Mark

Luke Bayes

unread,
Jun 30, 2008, 1:33:15 PM6/30/08
to project...@googlegroups.com
OK - I recently ran across an article somewhere (can't find it now)
where some platform or another got crossed up on where gems were
installed (I believe it was OS X).

It seems that gems can set up a system variable based on the last gem
installation that has occurred, and tools like apt-get, Eclipse,
X-Code and/or Mac Ports can change where you think gems are installed.
Now that you mention it, I believe the recommended fix was to
reinstall gems where you want it, which would supercede the other
location.

I'm glad you figured it out, and thanks for posting to the list!

Luke Bayes

reach...@gmail.com

unread,
Aug 25, 2008, 7:27:28 AM8/25/08
to ProjectSprouts
I think its because net-ssh(1.1.2) is dependent on net-sftp(1.1.0)
& net-ssh(2.0.3) is dependent on net-sftp(2.0.1)

The script ran perfectly when i had both the versions of net-ssh & net-
sftp gems installed.

Alex Chacko

Luke Bayes

unread,
Aug 25, 2008, 4:21:17 PM8/25/08
to project...@googlegroups.com
Hmmm...

Hey Alex,

Would you mind filing a bug on this one, that way I'll remember to dig
a little deeper before the next release.


Thanks!

Luke

Luke Bayes

unread,
Aug 25, 2008, 4:21:44 PM8/25/08
to project...@googlegroups.com
Sorry -

The bug list is here:

http://code.google.com/p/projectsprouts/issues/list

lb.

Reply all
Reply to author
Forward
0 new messages